/*
Theme Name: APK Store Pro
Description: Modern APK store theme with beautiful design, featuring custom post types for apps.
Version: 1.0.0
Author: Your Name
Text Domain: apk-store-pro
*/

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: "📱";
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #667eea;
}

.search-form {
    display: flex;
    background: white;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-form:focus-within {
    border-color: #667eea;
    transform: translateY(-2px);
}

.search-form input {
    border: none;
    outline: none;
    padding: 0.5rem;
    min-width: 300px;
    background: transparent;
}

.search-form button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-form button:hover {
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    margin-top: 100px; /* Adjust based on header height */
    padding: 2rem 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    color: white;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* App Cards */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.app-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.app-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.app-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #718096;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stars {
    color: #f6e05e;
}

.app-description {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.download-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Categories */
.categories-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.category-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: transform 0.3s ease;
    transform: scale(0);
}

.category-card:hover::before {
    transform: scale(1);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Footer */
.site-footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

/* Single App Page Styles */
.app-detail-page {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.app-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.app-icon-large {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.app-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.app-meta-large {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.download-btn-large {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.download-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.app-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.app-description h2,
.app-details h2 {
    margin-bottom: 1rem;
    color: #2d3748;
}

.app-details ul {
    list-style: none;
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 12px;
}

.app-details li {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

/* Archive & Search Page Styles */
.archive-header, .search-header {
    text-align: center;
    padding: 2rem 0;
    color: white;
    margin-bottom: 2rem;
}

.archive-header h1, .search-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.filter-bar {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.filter-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-options select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    min-width: 150px;
    transition: border-color 0.3s ease;
}

.filter-options select:focus {
    outline: none;
    border-color: #667eea;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}


/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-form input {
        min-width: 250px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .app-header {
        flex-direction: column;
        text-align: center;
    }
    
    .app-content {
        grid-template-columns: 1fr;
    }

    .filter-options {
        flex-direction: column;
    }
    
    .filter-options select {
        min-width: 100%;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-card {
    animation: fadeInUp 0.6s ease forwards;
}

.app-card:nth-child(2) { animation-delay: 0.1s; }
.app-card:nth-child(3) { animation-delay: 0.2s; }
.app-card:nth-child(4) { animation-delay: 0.3s; }



/* Additional CSS for Latest Apps & Games Layout */
/* Add this to your existing style.css file */

/* Section Headers */
.latest-apps-section h2,
.latest-games-section h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Updated App Card Structure */
.app-card {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 200px;
}

/* Remove the old ::before pseudo-element styling */
.app-card::before {
    display: none;
}

/* App Card Hover Effect */
.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* App Icon Styling */
.app-card .app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    box-shadow: none;
    flex-shrink: 0;
}

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

/* App Info Section */
.app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #2d3748;
    line-height: 1.3;
}

.app-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.app-card h3 a:hover {
    color: #667eea;
}

/* App Category */
.app-category {
    font-size: 0.8rem;
    color: #718096;
    text-transform: capitalize;
    margin-bottom: 0.75rem;
    display: block;
}

/* App Stats (Rating & Downloads) */
.app-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.app-stats .rating,
.app-stats .downloads {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #4a5568;
}

.rating-icon,
.download-icon {
    font-size: 0.9rem;
}

.rating-value {
    font-weight: 600;
    color: #2d3748;
}

.download-count {
    font-weight: 500;
    color: #667eea;
}

/* App Meta (Version & Size) */
.app-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #718096;
}

.app-meta .version,
.app-meta .size {
    background: #f7fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Download Button */
.app-card .download-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    margin-top: auto;
}

.app-card .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Grid Layout Updates */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Section Spacing */
.latest-apps-section,
.latest-games-section {
    margin-bottom: 4rem;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .app-card {
        min-height: 180px;
    }
    
    .latest-apps-section h2,
    .latest-games-section h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .app-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .app-card {
        margin: 0 auto;
        max-width: 300px;
    }
}

/* Animation Enhancements */
.latest-apps-section,
.latest-games-section {
    animation: fadeInUp 0.8s ease forwards;
}

.latest-games-section {
    animation-delay: 0.2s;
}

/* Custom styling for MOD badge (if you want to add it later) */
.mod-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #f56565;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Optional: Loading skeleton for better UX */
.app-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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










/* Additional CSS for Latest Apps & Games Layout */
/* Add this to your existing style.css file */

/* Section Headers */
.latest-apps-section h2,
.latest-games-section h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Updated App Card Structure */
.app-card {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 200px;
}

/* Remove the old ::before pseudo-element styling */
.app-card::before {
    display: none;
}

/* App Card Hover Effect */
.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* App Icon Styling */
.app-card .app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.app-card .app-icon .app-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.app-card .app-icon .icon-placeholder {
    font-size: 2.2rem;
    line-height: 1;
    display: block;
}

/* App Info Section */
.app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #2d3748;
    line-height: 1.3;
}

.app-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.app-card h3 a:hover {
    color: #667eea;
}

/* App Category */
.app-category {
    font-size: 0.8rem;
    color: #718096;
    text-transform: capitalize;
    margin-bottom: 0.75rem;
    display: block;
}

/* App Stats (Rating & Downloads) */
.app-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.app-stats .rating,
.app-stats .downloads {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #4a5568;
}

.rating-icon,
.download-icon {
    font-size: 0.9rem;
}

.rating-value {
    font-weight: 600;
    color: #2d3748;
}

.download-count {
    font-weight: 500;
    color: #667eea;
}

/* App Meta (Version & Size) */
.app-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #718096;
}

.app-meta .version,
.app-meta .size {
    background: #f7fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Download Button */
.app-card .download-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    margin-top: auto;
}

.app-card .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Grid Layout Updates */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Section Spacing */
.latest-apps-section,
.latest-games-section {
    margin-bottom: 4rem;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .app-card {
        min-height: 180px;
    }
    
    .latest-apps-section h2,
    .latest-games-section h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .app-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .app-card {
        margin: 0 auto;
        max-width: 300px;
    }
}

/* Animation Enhancements */
.latest-apps-section,
.latest-games-section {
    animation: fadeInUp 0.8s ease forwards;
}

.latest-games-section {
    animation-delay: 0.2s;
}

/* Custom styling for MOD badge (if you want to add it later) */
.mod-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #f56565;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Optional: Loading skeleton for better UX */
.app-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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





















/* Updated App Card Layout to Match Reference Image */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.app-card {
    background: white;
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 120px;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* App Icon - Fixed Size and Position */
.app-card .app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.app-card .app-icon .app-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.app-card .app-icon .icon-placeholder {
    font-size: 2.5rem;
    line-height: 1;
    display: block;
}

/* App Info Section - Flexible Layout */
.app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
}

/* App Title */
.app-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #2d3748;
    line-height: 1.3;
}

.app-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.app-card h3 a:hover {
    color: #667eea;
}

/* App Category */
.app-category {
    font-size: 0.85rem;
    color: #718096;
    text-transform: capitalize;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
}

/* App Stats Container */
.app-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.app-stats .rating,
.app-stats .downloads {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.rating-icon {
    color: #fbbf24;
    font-size: 0.9rem;
}

.rating-value {
    font-weight: 600;
    color: #374151;
}

.download-icon {
    color: #10b981;
    font-size: 0.9rem;
}

.download-count {
    font-weight: 600;
    color: #374151;
}

/* App Meta (Version & Size) */
.app-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.app-meta .version,
.app-meta .size {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Download Button - Positioned on Right */
.app-card .download-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    min-width: 90px;
}

.app-card .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* MOD Badge (if needed) */
.mod-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #f59e0b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0 20px 0 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Headers */
.latest-apps-section h2,
.latest-games-section h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Section Spacing */
.latest-apps-section,
.latest-games-section {
    margin-bottom: 4rem;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

    










/* Grid Layout */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* App Card */
.app-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* App Icon */
.app-icon-container {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 20px;
    padding: 10px;
}

.app-icon-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.icon-placeholder {
    font-size: 40px;
    color: #aaa;
}

/* App Info */
.app-info {
    width: 100%;
}

.app-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.3;
}

.app-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #555;
}

.meta-icon {
    opacity: 0.7;
}

.app-category {
    font-size: 12px;
    color: #888;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    width: 100%;
	}













/* App Card Link */
.app-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Meta Separator */
.meta-separator {
    margin: 0 8px;
    color: #ddd;
}

/* App Meta */
.app-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
















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

/* Header Styles */
header#masthead {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Main Content */
.main-content {
    margin-top: 80px; /* Adjust based on header height */
    margin-bottom: 60px; /* Adjust based on footer height */
    padding: 20px 0;
}

/* Mobile-First Grid */
.apps-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px 0;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.apps-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.app-card {
    flex: 0 0 auto;
    width: 150px; /* Fixed width for cards */
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

/* Footer Styles */
footer#colophon {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    .apps-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        overflow-x: visible;
        gap: 20px;
    }
    
    .app-card {
        width: auto;
    }
    
    .main-content {
        margin-top: 100px;
        margin-bottom: 80px;
    }
}

/* Header/Footer Elements Adjustment */
@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    section.latest-apps-section, 
    section.latest-games-section {
        margin-bottom: 30px;
    }
    
    h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
}








/* Single App Page Styles */
.app-single-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.app-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.app-icon {
    flex: 0 0 120px;
}

.app-icon-img, .app-icon-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    object-fit: contain;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.app-meta {
    flex: 1;
}

.app-title {
    font-size: 28px;
    margin: 0 0 15px 0;
    color: #333;
}

.version-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.app-version {
    font-size: 12.8px;
    color: #555;
}

.stats-list {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-list li {
    font-size: 14px;
    color: #666;
}

.app-description {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.download-section {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.download-button {
    display: inline-block;
    padding: 12px 30px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    transition: background 0.3s;
}

.download-button:hover {
    background: #3e8e41;
}

.app-content {
    margin: 30px 0;
    line-height: 1.7;
}

.app-categories {
    margin-top: 30px;
}

.app-category {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 14px;
    color: #555;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .app-icon {
        align-self: center;
    }
    
    .version-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}









/* Single App Template Background */
.app-single-template {
    background-color: #F7F4E9 !important;
    min-height: 100vh;
    padding: 40px 0;
}

/* Container */
.app-single-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.app-single-header {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    align-items: center;
}

.app-single-icon {
    flex: 0 0 120px;
}

.app-single-icon-img,
.app-single-icon-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-single-icon-placeholder {
    font-size: 40px;
    color: #100C08;
}

.app-single-info h1 {
    font-size: 28px;
    color: #100C08;
    margin: 0 0 10px 0;
}

/* Meta Information */
.app-single-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-single-version-number {
    font-size: 18px;
    font-weight: bold;
    color: #100C08;
}

.app-single-stats {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Description */
.app-single-description {
    font-size: 16px;
    line-height: 1.6;
    color: #100C08;
    margin-bottom: 30px;
}

/* Download Button */
.app-single-download {
    margin: 30px 0;
}

.app-single-download-btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #100C08;
    border: 2px solid #100C08;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Ancola', sans-serif;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
}

.app-single-download-btn:hover {
    background: #100C08;
    color: #F7F4E9;
}

/* Divider */
.app-single-divider {
    height: 1px;
    background: #E0D9C8;
    margin: 30px 0;
}

/* Content Section */
.app-single-content {
    color: #100C08;
    line-height: 1.7;
}

.app-single-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Specifications */
.app-single-specs {
    margin-top: 40px;
}

.app-single-specs h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

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

.app-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.app-spec-label {
    color: #666;
    font-weight: bold;
}

.app-spec-value {
    color: #100C08;
}

/* Responsive */
@media (max-width: 768px) {
    .app-single-header {
        flex-direction: column;
        text-align: center;
    }
    
    .app-single-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .app-single-stats {
        justify-content: center;
    }
    
    .app-specs-grid {
        grid-template-columns: 1fr;
    }
}



