/* AUTH SYSTEM STYLES */

/* Header Authentication Area */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-btn {
    padding: 8px 20px;
    background: var(--neon-cyan, #00f0ff);
    border: none;
    border-radius: 4px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 13px;
}

.auth-btn:hover {
    opacity: 0.9;
    box-shadow: 0 0 10px var(--neon-cyan, #00f0ff);
}

.auth-btn.logout {
    background: #444;
    color: #fff;
}

.auth-btn.logout:hover {
    background: #666;
    box-shadow: none;
}

.user-info {
    color: var(--neon-cyan, #00f0ff);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-info strong {
    color: var(--neon-yellow, #fcee0a);
}

/* AUTH MODAL */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.auth-modal.active {
    display: flex;
}

.auth-box {
    background: var(--card-bg, #141414);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.auth-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
}

.auth-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.auth-tab:hover {
    color: #ddd;
}

.auth-tab.active {
    color: var(--neon-cyan, #00f0ff);
    border-bottom-color: var(--neon-cyan, #00f0ff);
}

.auth-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--neon-cyan, #00f0ff);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.auth-form button {
    width: 100%;
    padding: 14px;
    background: var(--neon-cyan, #00f0ff);
    border: none;
    border-radius: 6px;
    color: #000;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-form button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.auth-error {
    color: #ff4444;
    font-size: 13px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 4px;
    display: none;
}

/* ADMIN BADGE */
.admin-badge {
    background: linear-gradient(135deg, var(--neon-yellow, #fcee0a), #cc9900);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
    box-shadow: 0 0 5px rgba(252, 238, 10, 0.5);
}

/* PROTECTED CONTENT OVERLAY */
.protected-overlay {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
}

.protected-overlay p {
    color: var(--text-dim, #888);
    margin-bottom: 20px;
    font-size: 16px;
}

.protected-overlay .auth-btn {
    padding: 12px 30px;
    font-size: 15px;
}

/* MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    .auth-modal {
        align-items: flex-end;
        /* Show bottom sheet on mobile if desired, or center */
        padding: 0;
    }

    .auth-box {
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        /* Rounded top corners only */
        margin: 0;
        animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .header-right {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    /* Adjust index page specific mobile styles if needed here */
}


.logo img {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5)) !important;
}

/* --- LIGHT MODE GLOBALS --- */
body.light-theme {
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-main: #111111;
    --text-dim: #555555;
    --neon-green: #009900;
}

body.light-theme header {
    background-color: #ffffff !important;
    border-bottom: 2px solid var(--dark-green) !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .search-box input {
    background-color: #eeeeee;
    border: 1px solid #cccccc;
    color: #111;
}

body.light-theme .game-card,
body.light-theme .main-content,
body.light-theme .info-card,
body.light-theme .req-box,
body.light-theme .download-section,
body.light-theme .comment-form,
body.light-theme .comment,
body.light-theme .no-comments {
    background-color: #ffffff;
    border-color: #dddddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

body.light-theme .game-card:hover {
    border-color: var(--dark-green);
    box-shadow: 0 5px 15px rgba(0, 153, 0, 0.2);
}

body.light-theme .sidebar-header {
    border-bottom-color: #ddd;
}

body.light-theme .sidebar-menu li {
    border-bottom-color: #eee;
}

body.light-theme .sidebar-footer {
    border-top-color: #ddd;
}

body.light-theme .social-icon {
    background: #eee;
    border-color: #ddd;
}

body.light-theme .iban-box {
    background: #f9f9f9;
    border-color: #ddd;
}

body.light-theme section h2,
body.light-theme .comments-section h2 {
    color: var(--text-main) !important;
}

body.light-theme .comment-form input,
body.light-theme .comment-form textarea {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #ccc !important;
}

body.light-theme footer {
    background-color: #eeeeee !important;
    color: #333 !important;
}

 / *   = = = = = = =   G L O B A L   M O B I L E   F I X E S   F O R   H E A D E R   &   P O P U P   = = = = = = =   * /   @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )    {

               / *   H e a d e r   s t r u c t u r e s   f i x   * /           . h e a d e r - c o n t r o l s ,
       . h e a d e r - r i g h t    {
                           d i s p l a y :    f l e x    ! i m p o r t a n t ;
                           f l e x - w r a p :    w r a p    ! i m p o r t a n t ;
                           g a p :    1 0 p x    ! i m p o r t a n t ;
                           w i d t h :    1 0 0 %    ! i m p o r t a n t ;
                           j u s t i f y - c o n t e n t :    c e n t e r    ! i m p o r t a n t ;
                   
    }

               / *   B u t t o n s   a n d   c o n t a i n e r s   2 - c o l u m n   g r i d - l i k e   l a y o u t   * /           . h e a d e r - c o n t r o l s   >   * ,
       . h e a d e r - r i g h t   >   * ,
       . h e a d e r - c o n t r o l s   >   a ,
       . h e a d e r - r i g h t   >   a    {
                           f l e x :    1   1   c a l c ( 5 0 %   -   5 p x )    ! i m p o r t a n t ;
                           m i n - w i d t h :    1 3 0 p x    ! i m p o r t a n t ;
                           m a r g i n :    0    ! i m p o r t a n t ;
                   
    }

               / *   S e a r c h   b o x   s h o u l d   a l w a y s   b e   f u l l   w i d t h   * /           . s e a r c h - b o x    {
                           f l e x :    1   1   1 0 0 %    ! i m p o r t a n t ;
                           m i n - w i d t h :    1 0 0 %    ! i m p o r t a n t ;
                           m a r g i n - b o t t o m :    5 p x    ! i m p o r t a n t ;
                   
    }

               / *   A u t h   a r e a   i n t e r n a l   a l i g n m e n t   * /           # a u t h A r e a    {
                           d i s p l a y :    f l e x    ! i m p o r t a n t ;
                           f l e x - d i r e c t i o n :    c o l u m n    ! i m p o r t a n t ;
                           g a p :    5 p x    ! i m p o r t a n t ;
                           j u s t i f y - c o n t e n t :    c e n t e r    ! i m p o r t a n t ;
                           a l i g n - i t e m s :    c e n t e r    ! i m p o r t a n t ;
                           b a c k g r o u n d :    t r a n s p a r e n t    ! i m p o r t a n t ;
                           p a d d i n g :    0    ! i m p o r t a n t ;
                   
    }

               # a u t h A r e a   . u s e r - i n f o    {
                           f o n t - s i z e :    1 1 p x    ! i m p o r t a n t ;
                           t e x t - a l i g n :    c e n t e r    ! i m p o r t a n t ;
                           w i d t h :    1 0 0 %    ! i m p o r t a n t ;
                           w h i t e - s p a c e :    n o w r a p    ! i m p o r t a n t ;
                           o v e r f l o w :    h i d d e n    ! i m p o r t a n t ;
                           t e x t - o v e r f l o w :    e l l i p s i s    ! i m p o r t a n t ;
                           l i n e - h e i g h t :    1    ! i m p o r t a n t ;
                           j u s t i f y - c o n t e n t :    c e n t e r    ! i m p o r t a n t ;
                   
    }

               # a u t h A r e a   . a u t h - b t n    {
                           w i d t h :    1 0 0 %    ! i m p o r t a n t ;
                           h e i g h t :    3 8 p x    ! i m p o r t a n t ;
                           f o n t - s i z e :    1 3 p x    ! i m p o r t a n t ;
                           p a d d i n g :    0   1 0 p x    ! i m p o r t a n t ;
                           d i s p l a y :    f l e x    ! i m p o r t a n t ;
                           a l i g n - i t e m s :    c e n t e r    ! i m p o r t a n t ;
                           j u s t i f y - c o n t e n t :    c e n t e r    ! i m p o r t a n t ;
                   
    }

                         / *   S t a n d a r d i z e   a l l   h e a d e r   a c t i o n   b u t t o n s   * /           . d i s c o r d - b t n ,
       . f o r u m - b t n ,
       . s u p p o r t - b t n ,
       . b a c k - b t n    {
                           w i d t h :    1 0 0 %    ! i m p o r t a n t ;
                           h e i g h t :    4 2 p x    ! i m p o r t a n t ;
                           f o n t - s i z e :    1 3 p x    ! i m p o r t a n t ;
                           p a d d i n g :    0   1 0 p x    ! i m p o r t a n t ;
                           d i s p l a y :    f l e x    ! i m p o r t a n t ;
                           a l i g n - i t e m s :    c e n t e r    ! i m p o r t a n t ;
                           j u s t i f y - c o n t e n t :    c e n t e r    ! i m p o r t a n t ;
                           w h i t e - s p a c e :    n o w r a p    ! i m p o r t a n t ;
                   
    }

                 / *   S u p p o r t   P o p u p   M o b i l e   V i e w   * /           . s u p p o r t - c o n t a i n e r    {
                           p o s i t i o n :    s t a t i c    ! i m p o r t a n t ;
                   
    }

               . s u p p o r t - p o p u p    {
                           d i s p l a y :    n o n e    ! i m p o r t a n t ;
                           p o s i t i o n :    f i x e d    ! i m p o r t a n t ;
                           t o p :    5 0 %    ! i m p o r t a n t ;
                           l e f t :    5 0 %    ! i m p o r t a n t ;
                           t r a n s f o r m :    t r a n s l a t e ( - 5 0 % ,    - 5 0 % )    ! i m p o r t a n t ;
                           w i d t h :    9 0 %    ! i m p o r t a n t ;
                           m a x - w i d t h :    3 2 0 p x    ! i m p o r t a n t ;
                           z - i n d e x :    9 9 9 9 9    ! i m p o r t a n t ;
                           b o x - s h a d o w :    0   0   0   2 0 0 0 p x   r g b a ( 0 ,  0 ,  0 ,  0 . 8 ) ,    0   0   2 0 p x   r g b a ( 0 ,  0 ,  0 ,  0 . 9 )    ! i m p o r t a n t ;
                   
    }

               . s u p p o r t - c o n t a i n e r : f o c u s - w i t h i n   . s u p p o r t - p o p u p ,
               . s u p p o r t - c o n t a i n e r : a c t i v e   . s u p p o r t - p o p u p ,
               . s u p p o r t - c o n t a i n e r : h o v e r   . s u p p o r t - p o p u p    {
                           d i s p l a y :    b l o c k    ! i m p o r t a n t ;
                           o p a c i t y :    1    ! i m p o r t a n t ;
                           v i s i b i l i t y :    v i s i b l e    ! i m p o r t a n t ;
                   
    }

       
}

       
/* =========================================
   GAME PAGES LIGHT THEME OVERRIDES 
   ========================================= */

/* Replace dark vars with light equivalents where used */
body.light-theme {
    --dark-bg: #f5f5f5;
    --card-bg: #ffffff;
    --text-main: #111111;
    --text-dim: #555555;
    --neon-cyan: #007777;
    /* Darker cyan for readability */
    --neon-yellow: #d4a000;
    /* Darker yellow for readability */
    --neon-green: #009900;
}

/* Fix undefined variables in auth.css across pages */
body.light-theme header {
    border-bottom: 2px solid #009900 !important;
}

body.light-theme .game-card:hover {
    border-color: #009900 !important;
}

/* Specific Game Page Element Overrides */
body.light-theme .hero {
    background-color: #ffffff !important;
    border-bottom: 1px solid #dddddd !important;
}

body.light-theme .section h2 {
    color: #111111 !important;
    border-left-color: #009900 !important;
}

body.light-theme .features-list li {
    border-bottom: 1px solid #eeeeee !important;
    color: #333333 !important;
}

body.light-theme .features-list li::before {
    color: #009900 !important;
}

body.light-theme .req-box.minimum h3 {
    color: #d4a000 !important;
}

body.light-theme .info-box {
    background: rgba(0, 153, 0, 0.05) !important;
    border-color: #009900 !important;
}

body.light-theme .info-box h4 {
    color: #009900 !important;
}

body.light-theme .info-box strong {
    color: #111111 !important;
}

body.light-theme .qbit-btn {
    border-color: #009900 !important;
    color: #009900 !important;
    background: #ffffff !important;
}

body.light-theme .qbit-btn:hover {
    background: #009900 !important;
    color: #ffffff !important;
}

body.light-theme .download-section h2 {
    color: #009900 !important;
}

body.light-theme .also-check {
    border-color: #dddddd !important;
}

body.light-theme .also-check h3 {
    color: #009900 !important;
}

body.light-theme .also-check-game {
    background: #f9f9f9 !important;
    border-color: #cccccc !important;
}

body.light-theme .also-check-game:hover {
    border-color: #009900 !important;
}

body.light-theme .also-check-game-info h4 {
    color: #111111 !important;
}

body.light-theme .security-box {
    background: rgba(0, 153, 0, 0.05) !important;
    border-color: #009900 !important;
}

body.light-theme .security-box h4 {
    color: #009900 !important;
}

body.light-theme .checksum-box {
    background: #f9f9f9 !important;
    border-color: #dddddd !important;
}

body.light-theme .checksum-box .checksum-value {
    color: #009900 !important;
}

body.light-theme .reply-form textarea {
    background: #ffffff !important;
    border-color: #cccccc !important;
    color: #111111 !important;
}

body.light-theme .comment-replies .comment {
    background: #fdfdfd !important;
    border-left-color: #cccccc !important;
}

body.light-theme .comment-author {
    color: #007777 !important;
}

body.light-theme .reply-btn {
    border-color: #007777 !important;
    color: #007777 !important;
}

body.light-theme .reply-btn:hover {
    background: #007777 !important;
    color: #ffffff !important;
}

body.light-theme .comment-form h3 {
    color: #007777 !important;
}