/* App Store - Microsoft Store style, project colors & theme */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Roboto', sans-serif;
    line-height: 1.5;
    color: #333;
    overflow-x: hidden;
    background: #f3f3f3;
}

input, button, textarea, select {
    font-family: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- Navigation (project theme) ----- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 56px;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 120, 255, 0.15);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: #0078ff;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #0078ff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0078ff;
    border-radius: 1px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
}

.bar {
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* ----- Store Hero (MS Store style banner) ----- */
.store-hero {
    position: relative;
    padding: 80px 0 48px;
    margin-top: 56px;
    min-height: 200px;
    overflow: hidden;
}

.store-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #0a0a0a 0%, #1a1a2e 40%, #16213e 100%);
}

.store-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 120, 255, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.store-hero-inner {
    position: relative;
    z-index: 1;
}

.store-hero-content {
    max-width: 640px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0078ff;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.store-badge i {
    font-size: 1.1rem;
}

.store-hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.store-hero p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

/* ----- Main content (store shelf) ----- */
.store-main {
    padding: 32px 0 64px;
    background: #f3f3f3;
}

.store-section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 120, 255, 0.25);
}

.store-section-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.store-section-count {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

/* ----- Store grid (MS Store tile layout) ----- */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.store-tile {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.store-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.store-tile-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Large square icon (MS Store style) */
.store-tile-icon {
    aspect-ratio: 1;
    min-height: 180px;
    background: linear-gradient(145deg, #0078ff 0%, #0056cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-tile-icon i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.95);
}

.store-tile-icon--image {
    background: #fff;
}

.store-tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-tile-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.store-tile-name {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-tile-publisher {
    font-size: 0.8rem;
    color: #0078ff;
    font-weight: 500;
}

.store-tile-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.store-tile-platform {
    font-size: 0.7rem;
    color: #555;
    background: rgba(0, 120, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.store-tile-version {
    font-size: 0.75rem;
    color: #888;
    margin-top: auto;
    padding-top: 8px;
}

/* Tile actions (Get / Details) */
.store-tile-actions {
    padding: 0 16px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.store-btn-get {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(145deg, #0078ff, #0056cc);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.store-btn-get:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 120, 255, 0.4);
    color: #fff;
}

.store-btn-free {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.95;
}

.store-btn-coming {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: default;
}

.store-btn-details {
    font-size: 0.9rem;
    color: #0078ff;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.store-btn-details:hover {
    background: rgba(0, 120, 255, 0.1);
    color: #0056cc;
}

/* Empty state */
.store-empty {
    text-align: center;
    padding: 80px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.store-empty-icon {
    font-size: 4rem;
    color: #0078ff;
    opacity: 0.4;
    margin-bottom: 16px;
}

.store-empty p {
    font-size: 1.1rem;
    color: #555;
}

/* ----- Footer (project theme) ----- */
.footer {
    background: #0a0a0a;
    color: #fff;
    padding: 48px 0 24px;
}

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

.footer-section h3,
.footer-section h4 {
    font-family: 'Orbitron', monospace;
    color: #0078ff;
    font-size: 1rem;
    margin-bottom: 12px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(0, 120, 255, 0.12);
    border: 1px solid rgba(0, 120, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0078ff;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: #0078ff;
    color: #fff;
    transform: translateY(-2px);
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: #0078ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .store-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 56px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(0, 120, 255, 0.15);
    }

    .nav-menu.active {
        left: 0;
    }

    .store-hero {
        padding: 56px 0 36px;
        margin-top: 56px;
    }

    .store-hero h1 {
        font-size: 1.75rem;
    }

    .store-hero p {
        font-size: 0.95rem;
    }

    .store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .store-tile-icon {
        min-height: 140px;
    }

    .store-tile-icon i {
        font-size: 3rem;
    }

    .store-tile-name {
        font-size: 0.9rem;
    }

    .store-tile-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .store-btn-get,
    .store-btn-coming {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .store-section-header {
        flex-direction: column;
        gap: 4px;
    }

    .store-grid {
        grid-template-columns: 1fr;
    }

    .store-tile-icon {
        min-height: 200px;
    }

    .store-tile-icon i {
        font-size: 4rem;
    }
}
