/* =============================================
   AlbumFr - Main Stylesheet
   Generated from index.php
============================================= */


        :root {
            --primary-color: #36db85;
            --primary-color-deep: #00c35e;
            --text-color: #374151;
            --bg-light: #fff;
            --bg-dark: #273d52;
        }
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: #f1f1f1;
            line-height: 1.5;
            color: #333;
            -webkit-text-size-adjust: 100%;
            -webkit-tap-highlight-color: transparent;
        }
        body {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* Header Styles (Desktop) */
        .header-container {
            width: 1200px;
            margin: 0 auto;
            padding: 0;
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        .main-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background-color: white;
            border-radius: 10px;
            padding: 10px 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            width: 1200px;
            height: 82px;
            box-sizing: border-box;
        }
        .logo {
            display: flex;
            align-items: center;
            cursor: pointer; /* Added cursor pointer for logo */
        }
        .logo img {
            height: 105px;
            margin-right: 10px;
        }
        .nav-items {
            display: flex;
            align-items: center;
        }
        .nav-item {
            display: flex;
            align-items: center;
            margin-right: 42px;
            text-decoration: none;
            color: #333;
            font-weight: 500;
            font-size: 14px;
        }
        .nav-item:last-child {
            margin-right: 0;
        }
        .nav-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            margin-right: 6px;
        }
        .home .nav-icon { background-color: #e6f3ff; color: #2196f3; }
        .games .nav-icon { background-color: #ffe6e6; color: #f44336; }
        .apps .nav-icon { background-color: #f0e6ff; color: #9c27b0; }
        .blog .nav-icon { background-color: #fff9e6; color: #ff9800; }
        .faq .nav-icon { background-color: #e6FFE6; color: #4caf50; }
        .search .nav-icon { background-color: #e6e6ff; color: #673ab7; }

        /* Mobile Header Styles */
        .mobile-header {
            display: none;
        }
        @media (max-width: 768px) {
            .mobile-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                background-color: #e6f0fa;
                padding: 10px 15px;
                border-radius: 15px;
                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
                width: 100%;
                max-width: 100%;
                position: sticky;
                top: 0;
                z-index: 1000;
            }
            .mobile-header .menu-icon,
            .mobile-header .search-icon {
                width: 30px;
                height: 30px;
                display: flex;
                justify-content: center;
                align-items: center;
                border-radius: 50%;
                cursor: pointer;
            }
            .mobile-header .menu-icon {
                background-color: #d4f1d4;
                font-size: 18px;
                color: #4CAF50;
            }
            .mobile-header .search-icon {
                background: linear-gradient(145deg, #d4f1d4, #c0e0c0);
                box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.8), 
                            inset -2px -2px 5px rgba(0, 0, 0, 0.1);
                font-size: 16px;
                color: #388E3C;
                transition: all 0.3s ease;
            }
            .mobile-header .search-icon:hover {
                background: linear-gradient(145deg, #c0e0c0, #d4f1d4);
                box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1),
                            -2px -2px 5px rgba(255, 255, 255, 0.8);
            }
            .mobile-header .logo {
                display: flex;
                align-items: center;
                cursor: pointer; /* Added cursor pointer for mobile logo */
            }
            .mobile-header .logo img {
                height: 40px;
            }
            .mobile-nav {
                display: none;
                position: absolute;
                top: 60px;
                left: 0;
                width: 100%;
                background-color: #fff;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
                z-index: 999;
                border-radius: 0 0 10px 10px;
                padding: 10px 0;
                opacity: 0;
                transform: translateY(-10px);
                transition: opacity 0.3s ease, transform 0.3s ease;
            }
            .mobile-nav.show {
                display: block;
                opacity: 1;
                transform: translateY(0);
            }
            .mobile-nav-item {
                display: flex;
                align-items: center;
                padding: 12px 20px;
                text-decoration: none;
                color: #333;
                font-size: 16px;
                font-weight: 500;
                transition: background-color 0.2s;
            }
            .mobile-nav-item:hover {
                background-color: #f1f1f1;
            }
            .mobile-nav-item .nav-icon {
                width: 30px;
                height: 30px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                margin-right: 10px;
            }
        }

        @media (min-width: 769px) {
            .mobile-nav {
                display: none !important;
            }
        }

        /* Search Modal Styles */
        .search-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.95);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            padding: 20px;
        }
        .search-modal.show {
            display: flex;
        }
        .search-modal .close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 30px;
            height: 30px;
            background-color: #e0f7fa;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            font-size: 18px;
            color: #00c35e;
        }
        .search-modal h2 {
            font-size: 2rem;
            color: #entication374151;
            margin-bottom: 10px;
        }
        .search-modal p {
            font-size: 1rem;
            color: #666;
            margin-bottom: 20px;
        }
        .search-modal form {
            display: flex;
            width: 100%;
            max-width: 600px;
            position: relative;
        }
        .search-modal input {
            width: 100%;
            padding: 12px 50px 12px 40px;
            border: none;
            border-radius: 50px;
            background-color: #00c35e;
            color: white;
            font-size: 1rem;
            outline: none;
        }
        .search-modal input::placeholder {
            color: #fff;
            opacity: 0.8;
        }
        .search-modal button {
            position: absolute;
            right: 0;
            top: 0;
            height: 100%;
            padding: 0 20px;
            border: none;
            background-color: white;
            color: #00c35e;
            font-weight: bold;
            border-radius: 0 50px 50px 0;
            cursor: pointer;
            font-size: 1rem;
        }
        .search-modal .search-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: white;
            font-size: 1.2rem;
        }
        @media (max-width: 1200px) {
            .header-container, .main-header {
                width: 100%;
                padding: 10px;
            }
            .nav-item {
                margin-right: 20px;
                font-size: 12px;
            }
            .nav-icon {
                width: 24px;
                height: 24px;
            }
            .logo img {
                height: 40px;
            }
        }

        /* Desktop Styles */
        @media (min-width: 769px) {
            .desktop-only { display: block; }
            .mobile-only { display: none; }
            .mobile-header { display: none; }
            main { flex: 1 0 auto; padding-bottom: 60px; }
            .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
            .section { padding: 2rem 0; }
            .section-head { font-size: 1.5rem; font-weight: 700; color: #374151; margin-bottom: 1.25rem; text-align: left; }
            .section-header { display: flex; align-items: center; margin-bottom: 15px; }
            .section-title { display: flex; align-items: center; color: #444; font-size: 22px; font-weight: bold; }
            .section-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 10px; }
            .game-icon { background-color: rgba(255, 99, 99, 0.2); color: #ff3333; }
            .games-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
            .app-card { width: 180px; height: 340px; border-radius: 12px; overflow: hidden; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1); font-family: Arial, sans-serif; cursor: pointer; transition: transform 0.3s; display: flex; flex-direction: column; }
            .app-card:hover { transform: translateY(-5px); }
            .app-image-container { width: 100%; height: 180px; overflow: hidden; background: linear-gradient(135deg, #e0f7ff 0%, #c2e9ff 100%); position: relative; }
            .app-image-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%23FFFFFF" d="M10,0L12,8L20,10L12,12L10,20L8,12L0,10L8,8Z"/></svg>'), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><path fill="%23FFFFFF" d="M5,0L6,4L10,5L6,6L5,10L4,6L0,5L4,4Z"/></svg>'); background-position: 0 0, 10px 10px; background-size: 30px 30px, 15px 15px; opacity: 0.5; z-index: 1; }
            .app-image { width: 100%; height: 100%; object-fit: cover; border: none; position: relative; z-index: 2; }
            .app-info { padding: 10px; text-align: center; position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; height: 90px; }
            .app-name { margin: 0; font-size: 16px; color: #333; font-weight: bold; line-height: 1.2; max-height: 38px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
            .app-artist { margin: 5px 0 0; font-size: 14px; color: var(--primary-color); font-style: normal; }
            .mod-badge { background-color: #ff9800; color: white; font-weight: bold; padding: 2px 8px; border-radius: 10px; font-size: 12px; display: inline-block; margin-top: 5px; }
            .app-rating { margin: 5px 0; display: flex; justify-content: center; align-items: center; font-size: 14px; }
            .rating-number { margin-left: 5px; color: #555; font-weight: bold; }
            .stars { display: flex; direction: ltr; }
            .star { color: #FFD700; font-size: 14px; }
            .app-meta { display: flex; border-top: 1px solid #eee; }
            .app-version, .app-size { flex: 1; padding: 8px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; color: #666; }
            .app-version { border-right: 1px solid #eee; }
            .icon-container { display: flex; align-items: center; margin-bottom: 5px; }
            .icon-mp3, .icon-download { width: 16px; height: 16px; margin-right: 5px; vertical-align: middle; }
            .tags-container { display: flex; border-top: 1px solid #eee; }
            .tag-box { flex: 1; padding: 6px 0; text-align: center; font-size: 10px; font-weight: bold; color: white; }
            .tag-box:first-child { border-right: 1px solid #eee; }
            .tag-red { background-color: #2196f3; }
            .tag-green { background-color: #00c35e; }
            .no-games { text-align: center; color: #666; font-size: 18px; padding: 2rem; }
            .categories-section { margin-bottom: 30px; }
            .categories-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
            .category-item { background-color: white; border-radius: 8px; padding: 12px; text-align: center; color: #1db954; font-weight: bold; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); transition: transform 0.2s; cursor: pointer; text-decoration: none; }
            .category-item:hover { transform: translateY(-5px); }
            .category-item.active { background-color: #1db954; color: white; }
            footer { flex-shrink: 0; width: 100%; border-top: 1px solid #e5e7eb; padding: 1.5rem 0; text-align: center; background: var(--bg-light); z-index: 1000; }
        }

        /* Mobile Styles */
        @media (max-width: 768px) {
            .desktop-only { display: none; }
            .mobile-only { display: block; }
            .header-container, .main-header { display: none; }
            main { flex: 1; padding: 15px; }
            .section { margin-bottom: 25px; }
            .section-head { font-size: 18px; font-weight: bold; color: #333; margin-bottom: 15px; padding-bottom: 5px; border-bottom: 2px solid var(--primary-color); }
            .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
            .section-title { display: flex; align-items: center; font-size: 16px; font-weight: bold; }
            .section-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 8px; }
            .game-icon { background-color: rgba(255, 99, 99, 0.2); color: #ff3333; }
            .games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
            .app-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.2s; }
            .app-card:hover { transform: translateY(-3px); }
            .app-image-container { width: 100%; height: 150px; overflow: hidden; background: linear-gradient(135deg, #e0f7ff 0%, #c2e9ff 100%); position: relative; }
            .app-image-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%23FFFFFF" d="M10,0L12,8L20,10L12,12L10,20L8,12L0,10L8,8Z"/></svg>'), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><path fill="%23FFFFFF" d="M5,0L6,4L10,5L6,6L5,10L4,6L0,5L4,4Z"/></svg>'); background-position: 0 0, 10px 10px; background-size: 30px 30px, 15px 15px; opacity: 0.5; z-index: 1; }
            .app-image { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; }
            .app-info { padding: 10px; text-align: center; position: relative; }
            .app-name { font-size: 14px; font-weight: bold; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
            .app-artist { font-size: 12px; color: var(--primary-color); font-style: normal; margin-bottom: 5px; }
            .mod-badge { background-color: #ff9800; color: white; font-weight: bold; padding: 2px 6px; border-radius: 10px; font-size: 10px; display: inline-block; margin-top: 5px; }
            .app-rating { display: flex; justify-content: center; align-items: center; margin: 5px 0; }
            .rating-number { margin-left: 5px; font-weight: bold; font-size: 12px; }
            .stars { display: flex; }
            .star { color: #FFD700; font-size: 12px; }
            .app-meta { display: flex; border-top: 1px solid #eee; font-size: 11px; }
            .app-version, .app-size { flex: 1; padding: 8px 0; display: flex; flex-direction: column; align-items: center; color: #666; }
            .app-version { border-right: 1px solid #eee; }
            .icon-container { display: flex; align-items: center; margin-bottom: 3px; }
            .icon-mp3, .icon-download { width: 14px; height: 14px; margin-right: 5px; }
            .tags-container { display: flex; border-top: 1px solid #eee; }
            .tag-box { flex: 1; padding: 5px 0; text-align: center; font-size: 9px; font-weight: bold; color: white; }
            .tag-box:first-child { border-right: 1px solid #eee; }
            .tag-red { background-color: #2196f3; }
            .tag-green { background-color: #00c35e; }
            .no-games { text-align: center; color: #666; padding: 20px; font-size: 16px; }
            .categories-section { margin-bottom: 20px; }
            .categories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
            .category-item { background-color: white; border-radius: 8px; padding: 10px; text-align: center; color: #1db954; font-weight: bold; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); font-size: 13px; }
            footer { background-color: white; padding: 15px; text-align: center; font-size: 12px; color: #666; border-top: 1px solid #eee; }
            @media only screen and (max-width: 320px) {
                .games-grid { grid-template-columns: 1fr; }
                .categories-grid { grid-template-columns: 1fr; }
                .app-image-container { height: 120px; }
            }
        }

        /* Dark mode styles */
        @media (prefers-color-scheme: dark) {
            body { background-color: #121212; color: #e0e0e0; }
            .header-container, .app-card, .category-item, footer { background-color: #1e1e1e; color: #e0e0e0; }
            .mobile-header { background-color: #2a2a2a; }
            .mobile-nav { background-color: #1e1e1e; }
            .mobile-nav-item { color: #e0e0e0; }
            .mobile-nav-item:hover { background-color: #333; }
            .section-head, .app-name { color: #e0e0e0; }
            .app-artist { color: #36db85; }
            .search-modal { background-color: rgba(30, 30, 30, 0.95); }
            .search-modal h2, .search-modal p { color: #e0e0e0; }
            .search-modal input { background-color: #00c35e; color: #fff; }
            .search-modal button { background-color: #333; color: #00c35e; }
            .search-modal .close-btn { background-color: #444; color: #00c35e; }
            .app-meta, .tags-container, .app-version { border-color: #444; }
            .rating-number, .app-version, .app-size { color: #aaa; }
        }
    


    /* Base footer styles */
    footer {
        flex-shrink: 0;
        width: 100%;
        border-top: 1px solid #e5e7eb;
        padding: 1.5rem 0;
        text-align: center;
        background: #fff;
        z-index: 1000;
        font-size: 14px;
        color: #666;
        box-sizing: border-box;
    }
    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .footer-brand {
        margin-bottom: 0.5rem;
    }
    .footer-logo {
        color: #666;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
    }
    .footer-logo:hover {
        color: #36db85;
    }
    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }
    .footer-link {
        color: #666;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        transition: color 0.2s;
    }
    .footer-link:hover {
        color: #36db85;
    }
    .footer-social {
        display: flex;
        gap: 0.8rem;
        justify-content: center;
    }
    .social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        background-color: #f1f1f1;
        border-radius: 50%;
        color: #666;
        text-decoration: none;
        font-size: 14px;
        transition: background-color 0.2s, color 0.2s;
        position: relative;
    }
    .social-link i {
        line-height: 1;
    }
    .fallback-svg {
        display: none;
        width: 16px;
        height: 16px;
        fill: #666;
    }
    .social-link.facebook:hover {
        background-color: #1877F2;
        color: #fff;
    }
    .social-link.facebook:hover .fallback-svg {
        fill: #fff;
    }
    .social-link.twitter:hover {
        background-color: #1DA1F2;
        color: #fff;
    }
    .social-link.twitter:hover .fallback-svg {
        fill: #fff;
    }
    .social-link.instagram:hover {
        background-color: #E4405F;
        color: #fff;
    }
    .social-link.instagram:hover .fallback-svg {
        fill: #fff;
    }
    .social-link.youtube:hover {
        background-color: #FF0000;
        color: #fff;
    }
    .social-link.youtube:hover .fallback-svg {
        fill: #fff;
    }
    .social-link.linkedin:hover {
        background-color: #0A66C2;
        color: #fff;
    }
    .social-link.linkedin:hover .fallback-svg {
        fill: #fff;
    }
    .social-link.no-font-awesome i {
        display: none !important;
    }
    .social-link.no-font-awesome .fallback-svg {
        display: block !important;
    }
    @media (max-width: 768px) {
        footer {
            padding: 1rem 0;
            font-size: 12px;
            border-top: 1px solid #eee;
            background: #fff;
            width: 100%;
            overflow-x: hidden;
        }
        .footer-content {
            padding: 0 0.5rem;
            gap: 1rem;
            max-width: 100%;
            box-sizing: border-box;
            align-items: center;
        }
        .footer-brand {
            margin-bottom: 0.75rem;
        }
        .footer-logo {
            font-size: 12px;
            line-height: 1.5;
            display: block;
            text-align: center;
        }
        .footer-nav {
            flex-direction: column !important;
            gap: 0.8rem;
            align-items: center;
            width: 100%;
        }
        .footer-link {
            font-size: 12px;
            line-height: 1.5;
            display: block;
            text-align: center;
        }
        .footer-social {
            gap: 0.6rem;
            flex-wrap: wrap;
            justify-content: center;
            width: 100%;
            padding: 0.5rem 0;
        }
        .social-link {
            width: 24px;
            height: 24px;
            font-size: 12px;
            flex-shrink: 0;
        }
        .fallback-svg {
            width: 14px;
            height: 14px;
        }
    }
    @media (prefers-color-scheme: dark) {
        footer {
            background-color: #1e1e1e;
            color: #e0e0e0;
            border-top: 1px solid #444;
        }
        .footer-logo,
        .footer-link {
            color: #e0e0e0;
        }
        .footer-logo:hover,
        .footer-link:hover {
            color: #36db85;
        }
        .social-link {
            background-color: #333;
            color: #e0e0e0;
        }
        .fallback-svg {
            fill: #e0e0e0;
        }
        .social-link.facebook:hover {
            background-color: #1877F2;
            color: #fff;
        }
        .social-link.facebook:hover .fallback-svg {
            fill: #fff;
        }
        .social-link.twitter:hover {
            background-color: #1DA1F2;
            color: #fff;
        }
        .social-link.twitter:hover .fallback-svg {
            fill: #fff;
        }
        .social-link.instagram:hover {
            background-color: #E4405F;
            color: #fff;
        }
        .social-link.instagram:hover .fallback-svg {
            fill: #fff;
        }
        .social-link.youtube:hover {
            background-color: #FF0000;
            color: #fff;
        }
        .social-link.youtube:hover .fallback-svg {
            fill: #fff;
        }
        .social-link.linkedin:hover {
            background-color: #0A66C2;
            color: #fff;
        }
        .social-link.linkedin:hover .fallback-svg {
            fill: #fff;
        }
    }
    