@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;600;700;800&display=swap');

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

:root {
    /* Primary Colors */
    --primary-dark: #0a0e27;
    --primary-darker: #050812;

    /* Accent Colors */
    --accent-cyan: #00d9ff;
    --accent-pink: #ff006e;
    --accent-orange: #ff6b35;
    --accent-purple: #9d4edd;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b8;
    --text-muted: #6b7280;

    /* Gradients */
    --gradient-cyan-purple: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    --gradient-orange-pink: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
    --border-color: rgba(0, 212, 255, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0d0f1e 50%, #1a0d2e 100%);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(157, 78, 221, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

main {
    position: relative;
    z-index: 2;
}

/* ============ NAVBAR ============ */

.navbar {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: sticky;
    top: 0;
    z-index: 200;
    animation: slideInDown 0.6s ease-out;
}

.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '◆';
    color: var(--accent-cyan);
    font-size: 1.5rem;
    animation: glow 3s ease-in-out infinite;
}

.logo h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    position: static;
    background: none;
    backdrop-filter: none;
    border: none;
    list-style: none;
    flex-direction: row;
    gap: 0;
    z-index: 100;
    padding: 0;
    max-height: none;
    overflow: visible;
    transition: none;
    flex: 1;
    justify-content: flex-start;
}

.nav-links.active {
    display: flex;
    max-height: 600px;
    animation: slideInDown 0.3s ease-out;
}

.nav-links a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(0, 212, 255, 0.1);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-cyan);
    border-left-color: var(--accent-cyan);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent-cyan);
    border-left-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 201;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2.5px;
    background: var(--accent-cyan);
    display: block;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ============ HERO SECTION ============ */

.hero {
    text-align: left;
    padding: 4rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: revealUp 0.8s ease-out;
}

.hero h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 40%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    letter-spacing: 0.5px;
}

/* ============ DEALS CONTAINER ============ */

.deals-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    animation: revealUp 0.8s ease-out 0.2s both;
}

/* ============ DEAL CARD ============ */

.deal-card {
    background: rgba(26, 40, 71, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: scaleIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.deal-card:nth-child(1) { animation-delay: 0.1s; }
.deal-card:nth-child(2) { animation-delay: 0.15s; }
.deal-card:nth-child(3) { animation-delay: 0.2s; }
.deal-card:nth-child(4) { animation-delay: 0.1s; }
.deal-card:nth-child(5) { animation-delay: 0.15s; }
.deal-card:nth-child(6) { animation-delay: 0.2s; }

.deal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.deal-card:hover {
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(26, 40, 71, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.15);
}

.deal-card:hover::before {
    opacity: 1;
}

/* ============ CARD IMAGE ============ */

.deal-card-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(157, 78, 221, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.deal-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(10, 22, 40, 0.1) 100%);
    pointer-events: none;
}

.deal-image {
    max-width: 85%;
    max-height: 220px;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.deal-card:hover .deal-image {
    transform: scale(1.08) translateZ(0);
}

.deal-image-placeholder {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    letter-spacing: 0.5px;
}

/* ============ CARD CONTENT ============ */

.deal-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
}

.deal-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.deal-price-section {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.4rem 0;
}

.deal-price {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.9rem;
    font-weight: 700;
    background: var(--gradient-cyan-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.deal-normal-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.deal-discount-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.4rem;
    background: var(--gradient-cyan-purple);
    border: none;
    border-radius: 8px;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
    width: fit-content;
    margin-top: auto;
}

.deal-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-orange));
    transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.deal-link:hover::before {
    left: 0;
}

.deal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.3);
}

.deal-link:active {
    transform: translateY(0);
}

.deal-link::after {
    content: '→';
    font-size: 0.95rem;
}

/* ============ FOOTER ============ */

footer {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(180deg, rgba(26, 40, 71, 0) 0%, rgba(10, 22, 40, 0.9) 100%);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

/* ============ LOADING STATE ============ */

.loading, .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    background: transparent;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    animation: revealUp 0.6s ease-out;
    grid-column: 1 / -1;
}

.empty-state {
    margin: 2rem 0;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid var(--border-color);
    border-right: 2px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ ANIMATIONS ============ */

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

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 212, 255, 0.8);
    }
}

/* ============ RESPONSIVE DESIGN ============ */

@media (max-width: 1024px) {
    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h2 {
        font-size: 2.8rem;
    }

    .deal-title {
        font-size: 1.2rem;
    }

    .deal-price {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.99);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        padding: 0.5rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .nav-links.active {
        display: flex;
        max-height: 600px;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .hero {
        padding: 3rem 1.5rem 2rem;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .deals-container {
        padding: 1.5rem;
    }

    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .deal-card-image {
        height: 180px;
    }

    .deal-image {
        max-height: 160px;
    }

    .deal-title {
        font-size: 1.1rem;
    }

    .deal-price {
        font-size: 1.4rem;
    }

    .deal-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }

    .nav-links a {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem 1.5rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

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

    .deals-container {
        padding: 1rem;
    }

    .deals-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .deal-card-image {
        height: 180px;
    }

    .deal-image {
        max-height: 160px;
    }

    .deal-title {
        font-size: 1rem;
    }

    .deal-price {
        font-size: 1.3rem;
    }

    .deal-link {
        padding: 0.65rem 1.1rem;
        font-size: 0.75rem;
    }

    .logo h1 {
        font-size: 1rem;
    }
}
