/* ============================================
   VidGrab - Main Style Sheet
   Cyberpunk theme with animated menu items
   ============================================ */

/* ----- GLOBAL RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a14;
    color: #f0f0f5;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 800px 600px at 10% 10%, rgba(108, 92, 231, 0.08), transparent 50%),
        radial-gradient(ellipse 700px 600px at 90% 80%, rgba(162, 155, 254, 0.05), transparent 50%),
        #0a0a14;
}

/* ----- ANIMATED MENU ITEM ----- */
.menu-item {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    border-radius: 999px;
    transition:
        width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-item:hover {
    width: 160px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.22);
    border-color: rgba(0, 229, 255, 0.3);
}

.menu-item .menu-icon {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.12);
    flex-shrink: 0;
}

.menu-label {
    opacity: 0;
    max-width: 0;
    transform: translateX(-8px);
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #f0f0f5;
    transition:
        opacity 0.25s ease,
        max-width 0.45s ease,
        transform 0.35s ease;
}

.menu-item:hover .menu-label {
    opacity: 1;
    max-width: 100px;
    transform: translateX(0);
}

/* ----- CYBER BUTTONS ----- */
.cyber-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.cyber-btn-primary {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.cyber-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.45);
}

.cyber-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #a29bfe;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.cyber-btn-secondary:hover {
    background: rgba(108, 92, 231, 0.15);
    border-color: rgba(108, 92, 231, 0.4);
}

.cyber-btn-danger {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.25);
}

.cyber-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.4);
}

.cyber-btn-success {
    background: linear-gradient(135deg, #2ed573, #7bed9f);
    color: #fff;
    box-shadow: 0 4px 20px rgba(46, 213, 115, 0.25);
}

.cyber-btn-success:hover {
    transform: translateY(-2px);
}

.cyber-btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 8px;
}

.cyber-btn-outline {
    background: transparent;
    border: 1.5px solid rgba(108, 92, 231, 0.3);
    color: #a29bfe;
}

.cyber-btn-outline:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: #6c5ce7;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.15);
}

/* ----- AVATAR PILL ----- */
.user-avatar-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 10px;
    position: relative;
}

.avatar-frame {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    position: relative;
    background: rgba(108, 92, 231, 0.12);
    border: 2px solid rgba(108, 92, 231, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.avatar-frame:hover {
    border-color: #6c5ce7;
    box-shadow: 0 0 24px rgba(108, 92, 231, 0.3);
    transform: scale(1.05);
}

.avatar-frame .avatar-svg {
    width: 100%;
    height: 100%;
    padding: 8px;
}

.avatar-frame .status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2ed573;
    border: 2px solid #0a0a14;
    z-index: 3;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(46, 213, 115, 0); }
}

.avatar-username {
    font-size: 14px;
    font-weight: 700;
    color: #f0f0f5;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- AVATAR UPLOAD BUTTON ----- */
.avatar-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.15);
    color: #a29bfe;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.avatar-upload-btn:hover {
    background: rgba(108, 92, 231, 0.2);
    border-color: #6c5ce7;
    box-shadow: 0 0 16px rgba(108, 92, 231, 0.15);
}

/* ----- CARDS / CONTAINERS ----- */
.glass-card {
    background: rgba(22, 22, 38, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(108, 92, 231, 0.12);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.glass-card-sm {
    background: rgba(22, 22, 38, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(108, 92, 231, 0.12);
    border-radius: 16px;
    padding: 24px;
}

/* ----- GRADIENT TEXT ----- */
.gradient-text {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- INPUT FIELDS ----- */
.cyber-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(108, 92, 231, 0.12);
    background: rgba(12, 12, 22, 0.6);
    color: #f0f0f5;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.cyber-input:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.08);
}

.cyber-input::placeholder {
    color: #68658a;
}

/* ----- TABS ----- */
.cyber-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 4px;
}

.cyber-tab {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    background: transparent;
    color: #8885aa;
    transition: all 0.2s ease;
}

.cyber-tab.active {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.2);
}

.cyber-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: #a29bfe;
}

/* ----- FORM GROUP ----- */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 11px;
    color: #8885aa;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ----- AVATAR GRID (EMOJI PICKER) ----- */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.avatar-opt {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.15s ease;
}

.avatar-opt:hover {
    border-color: #a29bfe;
    background: rgba(162, 155, 254, 0.08);
    transform: scale(1.1);
}

.avatar-opt.selected {
    border-color: #6c5ce7;
    background: rgba(108, 92, 231, 0.12);
}

/* ----- ERROR MESSAGE ----- */
.error-msg {
    color: #ff6b6b;
    font-size: 13px;
    padding: 8px 14px;
    background: rgba(255, 107, 107, 0.06);
    border: 1px solid rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    margin-bottom: 12px;
}

.success-msg {
    color: #2ed573;
    font-size: 13px;
    padding: 8px 14px;
    background: rgba(46, 213, 115, 0.06);
    border: 1px solid rgba(46, 213, 115, 0.1);
    border-radius: 8px;
    margin-bottom: 12px;
}

/* ----- LOGOUT BUTTON ----- */
.logout-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #a0a0b8;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.logout-link:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.06);
}

/* ----- BANNED PAGE ----- */
.banned-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: radial-gradient(ellipse 800px 600px at 10% 10%, rgba(255, 71, 87, 0.05), transparent 50%), #0a0a14;
}

.banned-card {
    background: rgba(22, 22, 38, 0.9);
    border: 1px solid rgba(255, 71, 87, 0.15);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
}

.banned-icon {
    font-size: 72px;
    margin-bottom: 16px;
}

.banned-card h1 {
    color: #ff4757;
    font-size: 26px;
    margin-bottom: 10px;
}

.banned-card p {
    color: #8885aa;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.banned-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 16px 0;
}

/* ----- ANIMATIONS ----- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(108, 92, 231, 0.2); }
    50% { box-shadow: 0 0 25px rgba(108, 92, 231, 0.4); }
}

.glow-pulse {
    animation: glow-pulse 2s infinite;
}

/* ----- SCROLLBAR ----- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a14;
}

::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 92, 231, 0.5);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 480px) {
    .glass-card {
        padding: 24px 20px;
        border-radius: 20px;
    }
    .avatar-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    .avatar-opt {
        font-size: 16px;
    }
}
