/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #202124;
    background-color: #ffffff;
    padding-bottom: 60px; /* Space for bottom navigation */
}

a {
    text-decoration: none;
    color: #1a73e8;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles - Modern & Professional */
.site-header {
    background-color: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    height: 60px;
    display: flex;
    align-items: center; /* Center content vertically */
}

/* Main Content Area */
.site-main {
    margin-top: 15px; /* Add space between header and content */
    padding-bottom: 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    color: #202124;
    font-size: 1.1rem;
    font-weight: 600;
}

.play-logo {
    width: auto;
    height: 36px;
    
    border-radius: 8px;
}

.logo-text {
    background: linear-gradient(90deg, #1a73e8, #34a853);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Main Header Navigation - Centered */
.main-header-nav {
    display: flex;
    align-items: center;
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-header-nav .nav-item {
    color: #5f6368;
    font-size: 0.95rem;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.2s, background-color 0.2s;
    font-weight: 500;
}

.main-header-nav .nav-item:hover {
    color: #1a73e8;
    background-color: rgba(26, 115, 232, 0.05);
}

.main-header-nav .nav-item.active {
    color: #1a73e8;
    font-weight: 600;
}

.main-header-nav .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1a73e8;
}

/* Dropdown Menu - Enhanced */
.dropdown {
    position: relative;
    height: 100%;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: none;
    z-index: 1001;
    padding: 8px 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 4px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

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

.dropdown-content a {
    color: #5f6368;
    padding: 12px 18px;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
    border-left: 3px solid transparent;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #1a73e8;
    border-left: 3px solid #1a73e8;
}

/* Search Styles */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.search-icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    cursor: pointer;
    transition: background-color 0.2s;
    outline: none;
}

.search-icon-button:hover,
.search-icon-button:focus {
    background-color: rgba(0, 0, 0, 0.05);
    color: #1a73e8;
}

/* Search box styles - simplified */
.search-box-expanded {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    width: 300px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 12px;
    display: none;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.search-box-expanded.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.search-box-expanded form {
    display: flex;
    align-items: center;
    width: 100%;
}

.search-box-expanded input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 0.95rem;
    color: #202124;
    outline: none;
    background-color: #f5f5f5;
    border-radius: 4px 0 0 4px;
    height: 40px;
}

.search-box-expanded button {
    background-color: #1a73e8;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.search-box-expanded button:hover {
    background-color: #1765cc;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: #5f6368;
    font-size: 1.2rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.mobile-menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #1a73e8;
}

/* Mobile Menu - Improved */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background-color: #fff;
    z-index: 1001;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #f1f3f4;
}

.mobile-menu-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #1a73e8;
}

.mobile-menu-close {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: #5f6368;
    font-size: 1.1rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.mobile-menu-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #ea4335;
}

.mobile-menu-nav {
    padding: 16px;
}

.mobile-nav-item {
    display: block;
    padding: 12px 16px;
    color: #5f6368;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background-color: rgba(26, 115, 232, 0.1);
    color: #1a73e8;
}

.mobile-dropdown {
    margin-bottom: 4px;
}

.mobile-dropdown-header {
    display: flex;
    align-items: center;
}

.mobile-dropdown-header .mobile-nav-item {
    flex: 1;
    margin-bottom: 0;
    border-radius: 8px 0 0 8px;
}

/* Mobile dropdown styles - fixed */
.mobile-dropdown-toggle {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: #5f6368;
    font-size: 0.9rem;
    border-radius: 0 8px 8px 0;
    background-color: rgba(0, 0, 0, 0.03);
    transition: transform 0.3s, background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-dropdown-toggle:hover {
    background-color: rgba(26, 115, 232, 0.1);
    color: #1a73e8;
}

.mobile-dropdown-toggle.active {
    transform: rotate(180deg);
    background-color: rgba(26, 115, 232, 0.1);
    color: #1a73e8;
}

.mobile-dropdown-content {
    display: none;
    padding: 5px 0 5px 16px;
}

.mobile-dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: #5f6368;
    font-size: 0.95rem;
    border-radius: 8px;
    margin-top: 4px;
    transition: background-color 0.2s, color 0.2s;
    border-left: 2px solid #e8eaed;
}

.mobile-dropdown-content a:hover {
    background-color: rgba(26, 115, 232, 0.05);
    color: #1a73e8;
    border-left: 2px solid #1a73e8;
}

.mobile-search {
    margin-top: 20px;
    padding: 0 16px;
}

.mobile-search form {
    display: flex;
    align-items: center;
    background-color: #f1f3f4;
    border-radius: 24px;
    padding: 6px 12px;
}

.mobile-search input {
    flex: 1;
    border: none;
    background: none;
    padding: 8px 12px;
    font-size: 0.95rem;
    color: #202124;
    outline: none;
}

.mobile-search button {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: #5f6368;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.mobile-search button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #1a73e8;
}

/* Top Navigation */
.top-nav {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.main-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
    padding: 0 10px;
}

.main-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.nav-item {
    padding: 16px 20px;
    color: #5f6368;
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
    text-transform: none;
    font-weight: 500;
}

.nav-item.active {
    color: #1a73e8;
    font-weight: 500;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1a73e8;
}

/* App Section */
.app-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #202124;
}

.section-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #202124;
    margin: 0;
}

.view-all {
    color: #1a73e8;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.view-all i {
    font-size: 0.8rem;
    margin-left: 4px;
}

/* App Grid Styles */
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.app-card {
    background-color: white;
    border-radius: 12px;
    padding: 2px;
    position: relative;
}

.app-card > a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.app-icon {
    margin-bottom: 8px;
    position: relative;
    width: 100%;
    text-align: center;
}

.app-icon img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
}

.app-info {
    width: 100%;
}

.app-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.2;
    color: #202124;
}

.app-category {
    font-size: 0.8rem;
    color: #5f6368;
}

/* App Grid Scroll */
.app-grid-scroll {
    display: flex;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
}

.app-grid-scroll::-webkit-scrollbar {
    display: none;
}

.app-grid-scroll .app-card {
    min-width: 135px;
    max-width: 135px;
}

/* App Card - Modern Google Play Style */
.app-card {
    min-width: 125px;
    max-width: 125px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #f44336;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 1;
}

.app-icon {
    margin-bottom: 8px;
    position: relative;
    width: 100%;
    text-align: center;
}

.app-icon img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.app-info {
    width: 100%;
    
}

.app-info h3 {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #202124;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 32px;
    max-width: 100%;
}

.app-info h3 a {
    color: #202124;
}

.app-category {
    font-size: 0.7rem;
    color: #5f6368;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-top: 0;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    color: #5f6368;
    font-size: 0.8rem;
    flex: 1;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.bottom-nav-item.active {
    color: #1a73e8;
}

/* Site Footer */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
    gap: 20px;
}

.footer-links a {
    color: #5f6368;
    font-size: 0.85rem;
}

.footer-copyright {
    color: #5f6368;
    font-size: 0.8rem;
    text-align: center;
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
    .main-header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .search-container {
        margin-left: auto;
        margin-right: 10px;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 1rem;
    }
    
    .search-box-expanded {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        border-radius: 0;
    }
}

/* Additional class for when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Updated for Modern Google Play Design */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    
    .logo {
        margin-bottom: 0;
    }
}

@media (min-width: 768px) {
    .app-card {
        min-width: 120px;
        max-width: 120px;
    }
    
    .app-icon img {
        width: 110px;
        height: 110px;
    }
    
    .app-info h3 {
        font-size: 0.85rem;
        max-width: 100%;
    }
    
    .app-category {
        max-width: 100%;
    }
}

/* App Details Page Styles */
.app-details {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.app-header {
    display: flex;
    padding: 2px;
}

.app-header-icon {
    margin-right: 20px;
}

.app-header-icon img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
}

.app-header-info {
    flex: 1;
}

.app-header-info h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #202124;
}

.app-developer {
    font-size: 0.9rem;
    color: #5f6368;
    margin-bottom: 10px;
}

.app-contains {
    font-size: 0.8rem;
    color: #5f6368;
    margin-bottom: 15px;
}

.app-meta {
    display: flex;
    margin-bottom: 20px;
}

.app-rating-box, .app-downloads-box, .app-age-box {
    text-align: center;
    margin-right: 24px;
}

.rating-big, .downloads-count, .age-rating {
    font-size: 1.2rem;
    font-weight: 500;
    color: #202124;
}

.rating-count, .downloads-label, .age-label {
    font-size: 0.75rem;
    color: #5f6368;
}

.app-meta-divider {
    width: 1px;
    background-color: #e0e0e0;
    margin: 0 12px;
    height: 40px;
    align-self: center;
}

.app-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-install {
    background-color: #1a73e8;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-install:hover {
    background-color: #1765cc;
}

.btn-install-secondary {
    background-color: #f1f3f4;
    color: #1a73e8;
}

.btn-install-secondary:hover {
    background-color: #e8eaed;
}

.btn-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f3f4;
    color: #5f6368;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-action i {
    font-size: 1.2rem;
}

.app-device-info {
    font-size: 0.85rem;
    color: #5f6368;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.app-device-info i {
    margin-right: 8px;
}

.app-screenshots-container {
    padding: 20px;
}

.app-screenshots-container h2 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #202124;
}

.app-screenshots {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
}

.app-screenshots::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.screenshot {
    flex: 0 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.screenshot img {
    height: 300px;
    width: auto;
    object-fit: cover;
}

.app-about {
    padding: 20px;
}

.app-about h2 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #202124;
}

.app-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5f6368;
    white-space: pre-line;
}

.app-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.app-detail-item h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #202124;
}

.app-detail-item p {
    font-size: 0.85rem;
    color: #5f6368;
}

.app-whats-new {
    padding: 20px;
}

.app-whats-new h2 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #202124;
}

.whats-new-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5f6368;
   
}

.app-similar {
    padding: 20px 0;
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
    }
    
    .app-header-icon {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .app-meta {
        justify-content: center;
    }
    
    .screenshot img {
        height: 200px;
    }
    
    .app-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .app-header-icon img {
        width: 120px;
        height: 120px;
    }
    
    .app-details-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.no-screenshots {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #5f6368;
    font-size: 0.9rem;
}

/* Mobile App Card Header */
.mobile-app-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.app-header-icon {
    margin-right: 15px;
}

.app-header-icon img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.app-header-info {
    flex: 1;
}

.app-header-info h1 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2px;
    color: #202124;
}

.app-developer {
    font-size: 0.85rem;
    color: #5f6368;
    margin-bottom: 2px;
}

.app-category {
    font-size: 0.75rem;
    color: #5f6368;
    border-radius: 4px;
    text-align: center;
    display: inline-block;
}

.app-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 10px;
}

.meta-item {
    text-align: center;
    min-width: 60px;
}

.meta-value {
    font-size: 1rem;
    font-weight: 500;
    color: #202124;
}

.meta-label {
    font-size: 0.7rem;
    color: #5f6368;
}

.meta-divider {
    width: 1px;
    height: 30px;
    background-color: #e0e0e0;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-section h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #202124;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

#apk-links-container {
    margin-bottom: 15px;
}

.apk-link-row {
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f3f4;
    padding-bottom: 15px;
}

.apk-link-row:last-child {
    border-bottom: none;
}

@media (min-width: 768px) {
    .app-header-icon img {
        width: 80px;
        height: 80px;
    }
    
    .app-header-info h1 {
        font-size: 1.3rem;
    }
}

/* Additional utility classes */
.no-apps {
    width: 100%;
    padding: 20px;
    text-align: center;
    color: #5f6368;
}

.preview-container {
    margin-top: 10px;
}

.preview-image {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.screenshots-preview {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin-bottom: 10px;
}

.file-upload input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    cursor: pointer;
    display: block;
}

.file-upload label {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f1f3f4;
    color: #5f6368;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Category Page Styles - Enhance with modern visuals */
.category-section {
    padding: 30px 0;
    background-color: #ffffff;
}

.category-section .section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.category-section h1 {
    font-size: 1.8rem;
    color: #202124;
    font-weight: 700;
    margin-right: 20px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.category-section h1::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a73e8, #34a853);
    border-radius: 3px;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.category-filter {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background-color: #f1f3f4;
    color: #5f6368;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin-left: 8px;
}

.category-filter i {
    margin-right: 6px;
    font-size: 0.9rem;
}

.category-filter:hover {
    background-color: #e8eaed;
    color: #202124;
}

.category-filter.active {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

/* App Card Enhancements */
.app-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}



.app-card:hover .app-info h3 a {
    color: #1a73e8;
}

.app-icon {
   
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.app-icon img {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    object-fit: cover;
}

.app-card:hover .app-icon img {
    transform: scale(1.05);
}

.app-info {
    padding: 12px 15px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.app-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-info h3 a {
    color: #202124;
    transition: color 0.2s ease;
}

.app-category {
    color: #5f6368;
    font-size: 0.8rem;
    margin-bottom: 6px;
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-rating {
    margin-top: auto;
    display: flex;
    align-items: center;
}

.rating-value {
    font-weight: 600;
    color: #202124;
    margin-right: 4px;
    font-size: 0.85rem;
}

.rating-star {
    color: #ffc107;
    font-size: 0.9rem;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background-color: #fff;
    color: #5f6368;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #dadce0;
}

.page-link:hover {
    background-color: #f1f3f4;
    color: #1a73e8;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.page-link.active {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
    box-shadow: 0 2px 5px rgba(26, 115, 232, 0.3);
}

/* No apps message */
.no-apps {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    grid-column: 1 / -1;
}

.no-apps p {
    color: #5f6368;
    font-size: 1rem;
    margin-bottom: 15px;
}

.no-apps .emoji {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* Responsive adjustments for category page */
@media (max-width: 992px) {
    .category-section h1 {
        font-size: 1.6rem;
    }
    
    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .category-section {
        padding: 20px 0;
    }
    
    .category-section .section-header {
        margin-bottom: 20px;
    }
    
    .category-section h1 {
        font-size: 1.4rem;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .category-filter {
        padding: 5px 12px;
        font-size: 0.85rem;
    }
    
    .app-icon img {
        width: 64px;
        height: 64px;
    }
    
    .app-info {
        padding: 10px 12px 12px;
    }
    
    .app-info h3 {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 5px;
        line-height: 1.1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }
    
    .category-section h1 {
        font-size: 1.3rem;
    }
    
    
    
    .app-icon img {
        width: 90px;
        height: 90px;
        border-radius: 12px;
    }
    
    .app-info {
        padding: 8px 10px 10px;
    }
    
    .app-info h3 {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 5px;
            line-height: 1.1;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
    }
    
    .app-category {
        font-size: 0.75rem;
    }
}

/* Loading Animation */
.app-card-skeleton {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    position: relative;
    min-width: 110px;
    max-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.skeleton-icon {
    width: 100px;
    height: 100px;
    background-color: #f1f3f4;
    border-radius: 20px;
    margin-bottom: 12px;
}

.skeleton-title {
    height: 10px;
    width: 90%;
    background-color: #f1f3f4;
    margin-bottom: 6px;
    border-radius: 4px;
}

.skeleton-title:last-of-type {
    width: 70%;
    margin-bottom: 12px;
}

.skeleton-category {
    height: 8px;
    width: 60%;
    background-color: #f1f3f4;
    margin-bottom: 0;
    border-radius: 4px;
    margin-top: 0;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.app-card-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@media (min-width: 768px) {
    .app-card-skeleton {
        min-width: 120px;
        max-width: 120px;
    }
    
    .skeleton-icon {
        width: 110px;
        height: 110px;
    }
}

/* Make sure category URLs work from category.php */
.category-section .section-header a {
    position: relative;
    z-index: 1;
}

/* Mobile responsiveness for section header */
@media (max-width: 576px) {
    .section-header {
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .section-header h1 {
        font-size: 1.3rem;
        flex: 1;
    }
    
    .category-filters {
        display: flex;
        white-space: nowrap;
    }
    
    .category-filter {
        padding: 4px 10px;
        font-size: 0.85rem;
    }
} 