@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --bg-light: #f3f4f6;
    --text-dark: #1f2937;
    --accent: #2563eb;
    --radius-lg: 24px;
    --radius-md: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    background: var(--bg-light);
    position: relative;
    padding-bottom: 2rem;
}

/* Header */
.offers-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    background: rgba(243, 244, 246, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.1rem;
    margin-right: 1rem;
}

.offers-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Offer Feed (Vertical Stack) */
.offers-feed {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.deal-card {
    width: 100%;
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.deal-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.deal-tag {
    position: absolute;
    top: 15px; right: 15px;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 1px;
}

.deal-info {
    padding: 1.25rem;
}

.deal-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.deal-info p {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.verified-icon {
    color: #3b82f6;
}

.offer-expiry {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 600;
}

/* Scroll UI Animation Classes */
.transform-reveal {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.transform-reveal.revealed {
    transform: scale(1);
    opacity: 1;
}

/* Desktop framing */
@media (min-width: 601px) {
    body {
        padding: 40px 0;
    }
    
    .app-container {
        border-radius: 40px;
        box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
        border: 8px solid #1f2937;
        height: 850px;
        overflow-y: auto;
    }

    .app-container::-webkit-scrollbar {
        width: 0px;
    }
}
