/* ===================================
   SnoFlow Landing Page - Clean Rebuild
   Mobile-First Approach
   =================================== */

/* Variables */
:root {
    --color-bg: #000000;
    --color-bg-card: #1C1C1E;
    --color-accent: #CCFF00;
    --color-text: #FFFFFF;
    --color-text-muted: #999999;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Site Header
   =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background-color: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.site-nav {
    display: none;
    gap: 32px;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--color-accent);
}

.btn-ghost {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    transition: all 0.2s;
}

.btn-ghost:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: rgba(204, 255, 0, 0.1);
}

/* Show nav on tablet+ */
@media (min-width: 768px) {
    .site-nav {
        display: flex;
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding: 100px 16px 60px;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.hero-content {
    max-width: 500px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #CCFF00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #000000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(204, 255, 0, 0.3);
}

.btn-secondary {
    background-color: #2C2C2E;
    color: var(--color-text);
    border: 1px solid #444;
}

.btn-secondary:hover {
    background-color: #3C3C3E;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.apple-icon {
    width: 20px;
    height: 20px;
}

/* Phone Mockup */
.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 240px;
    height: 480px;
    background: linear-gradient(145deg, #2C2C2E, #1C1C1E);
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.phone-screen {
    background-color: #000;
    border-radius: 32px;
    height: 100%;
    overflow: hidden;
    padding: 16px;
}

.app-ui {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header-ui {
    text-align: center;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.app-welcome-ui {
    text-align: center;
    padding: 24px 0;
}

.app-welcome-ui p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.app-welcome-ui h3 {
    font-size: 1.2rem;
    margin-top: 8px;
}

.app-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: auto;
    padding-bottom: 16px;
}

.chip {
    background-color: #2C2C2E;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: 60px 0;
    background-color: var(--color-bg);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background-color: var(--color-bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #333;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ===================================
   Trips Section
   =================================== */
.trips {
    padding: 60px 0;
    background: linear-gradient(180deg, #000 0%, #1C1C1E 50%, #000 100%);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-top: -24px;
    margin-bottom: 32px;
}

.trip-preview {
    display: flex;
    justify-content: center;
}

.trip-card {
    background-color: var(--color-bg-card);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 360px;
    border: 1px solid #333;
}

.trip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.trip-destination {
    font-size: 1.1rem;
    font-weight: 600;
}

.trip-badge {
    background-color: var(--color-accent);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.trip-details {
    display: flex;
    gap: 16px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.trip-actions {
    display: flex;
    gap: 8px;
}

.btn-trip {
    flex: 1;
    padding: 10px;
    background-color: #2C2C2E;
    color: var(--color-text);
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-trip.btn-chat {
    background-color: var(--color-accent);
    color: #000;
    border-color: var(--color-accent);
}

/* ===================================
   Buddies Promo Section
   =================================== */
.buddies-promo {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.buddies-promo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.buddies-promo-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.buddies-promo-text p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.buddies-promo-preview {
    font-size: 3rem;
    letter-spacing: 8px;
}

@media (min-width: 768px) {
    .buddies-promo-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ===================================
   CTA Section
   =================================== */
.cta {
    padding: 60px 0;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(204, 255, 0, 0.1) 0%, transparent 70%);
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 40px 0 24px;
    background-color: #1C1C1E;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #333;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* ===================================
   Child Page Styles (Support, etc.)
   =================================== */

/* Page Header */
.page-header {
    padding: 16px 0;
    border-bottom: 1px solid #333;
}

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

.header-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

.header-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.header-nav a:hover {
    color: var(--color-accent);
}

/* Support Page */
.support-page {
    padding: 40px 0 60px;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.support-section {
    margin-bottom: 48px;
}

.support-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

/* Contact Card */
.contact-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background-color: var(--color-bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.contact-item a {
    color: var(--color-accent);
    text-decoration: none;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--color-bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.faq-item a {
    color: var(--color-accent);
    text-decoration: none;
}

/* Troubleshooting */
.troubleshoot-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.troubleshoot-item {
    background-color: var(--color-bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
}

.troubleshoot-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.troubleshoot-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ===================================
   SnowOverflow Buddies Styles
   =================================== */

/* Gallery Page */
.buddies-page {
    padding: 40px 0 60px;
    min-height: 60vh;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.story-card {
    background-color: var(--color-bg-card);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid #333;
    transition: transform 0.2s, border-color 0.2s;
}

.story-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
}

.story-cover {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #2C2C2E;
}

.story-info {
    padding: 16px;
}

.story-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.story-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Story Viewer Page */
.story-page {
    padding: 40px 0 60px;
}

.story-images {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}

.story-image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.story-nav {
    text-align: center;
    margin-top: 40px;
}

/* Admin Login */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background-color: var(--color-bg-card);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 360px;
    width: 100%;
    border: 1px solid #333;
}

.login-card h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.login-card p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.admin-input {
    width: 100%;
    padding: 12px 16px;
    background-color: #2C2C2E;
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--color-text);
    font-size: 1rem;
    margin-bottom: 16px;
}

.admin-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.admin-textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: #2C2C2E;
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--color-text);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 12px;
}

/* Admin Dashboard */
.admin-page {
    padding: 40px 0 60px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-stories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-story-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--color-bg-card);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #333;
}

.admin-story-cover {
    width: 80px;
    height: 60px;
    background-size: cover;
    background-position: center;
    background-color: #2C2C2E;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.admin-story-info {
    flex: 1;
    min-width: 0;
}

.admin-story-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-story-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.published {
    background-color: rgba(204, 255, 0, 0.2);
    color: var(--color-accent);
}

.status-badge.draft {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
}

.admin-story-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    background-color: #2C2C2E;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.btn-icon:hover {
    background-color: #3C3C3E;
}

.btn-icon.btn-danger:hover {
    background-color: #5c2c2c;
}

.btn-text {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-text:hover {
    color: var(--color-accent);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.modal-content {
    background-color: var(--color-bg-card);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.modal-header h2 {
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

#story-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Utility States */
.loading-state,
.empty-state,
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-muted);
}

/* ===================================
   Desktop Styles (768px+)
   =================================== */
@media (min-width: 768px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero .container {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .hero-content {
        max-width: 480px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
    }

    .features-grid {
        flex-direction: row;
        gap: 24px;
    }

    .feature-card {
        flex: 1;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-brand {
        text-align: left;
    }

    .footer-links {
        flex-direction: row;
        gap: 24px;
    }
}

/* Large Desktop (1024px+) */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .container {
        padding: 0 40px;
    }
}

/* Focus states */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--color-accent);
    color: #000;
}

/* Buddies Like Button & Meta */
.story-cover {
    position: relative;
}

.card-like-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    z-index: 10;
}

.card-like-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.card-like-btn.liked {
    background: rgba(255, 59, 48, 0.9);
    /* Red like color */
    color: #fff;
}

.like-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.like-count {
    font-size: 0.85rem;
    font-weight: 600;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.story-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Story Detail Gallery */
.story-date-detail {
    color: var(--color-text-muted);
    margin-top: -30px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    min-height: 70vh;
}

.current-image-container {
    width: 100%;
    max-width: none;
    height: 75vh;
    background-color: #2C2C2E;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.nav-btn {
    background: rgba(44, 44, 46, 0.8);
    border: 1px solid #444;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    flex-shrink: 0;
}

.nav-btn:hover:not(:disabled) {
    background: var(--color-accent);
    color: #000;
    border-color: var(--color-accent);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.image-counter {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .gallery-container {
        gap: 8px;
        min-height: 60vh;
        padding: 0;
    }

    .current-image-container {
        height: auto;
        max-height: 60vh;
        border-radius: 8px;
        width: calc(100vw - 20px);
        margin: 0 auto;
        max-width: calc(100vw - 20px);
        overflow: hidden;
    }

    .gallery-image {
        max-width: 100%;
        max-height: 60vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
        position: absolute;
        z-index: 10;
    }

    .nav-btn.prev-btn {
        left: 10px;
    }

    .nav-btn.next-btn {
        right: 10px;
    }
}

/* --- Deals Feature Styles --- */

/* Page Layouts */
.deals-page .deals-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .deals-page .deals-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        display: none;
        /* Drawer in future */
    }
}

/* Filters */
.filters-sidebar {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Deal Cards */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.deal-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.deal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.deal-icon-wrapper {
    font-size: 2rem;
    margin-bottom: 15px;
}

.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.deal-category {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    background: var(--color-bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
}

.deal-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.deal-badge.discount {
    background: #e6f4ea;
    color: #1e8e3e;
}

.deal-badge.type {
    background: #e8f0fe;
    color: #1967d2;
}

.deal-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.deal-resort {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.deal-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
}

/* Deal Detail */
.deal-detail-layout {
    max-width: 800px;
    margin: 30px auto;
}

.deal-detail-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.detail-header h1 {
    font-size: 2.5rem;
    margin: 16px 0;
}

.detail-meta {
    color: var(--color-text-muted);
}

.redemption-box {
    background: var(--color-bg-secondary);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.promo-code-display {
    margin: 20px 0;
    font-size: 1.2rem;
}

.code-value {
    background: #fff;
    border: 2px dashed var(--color-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--color-primary);
    margin-left: 10px;
    user-select: all;
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

/* --- Comments Section --- */
.comments-section {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid var(--color-border);
}

.comments-section h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-section h2::before {
    content: '💬';
    font-size: 1.2rem;
}

.comment-form {
    background: linear-gradient(145deg, var(--color-card-bg), var(--color-bg-secondary));
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.comment-form .form-row {
    margin-bottom: 16px;
}

.comment-form .form-row:last-of-type {
    margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 16px 18px;
    background: var(--color-bg);
    border: 2px solid var(--color-accent);
    border-radius: 12px;
    color: var(--color-text);
    font-size: 16px;
    /* Prevents iOS zoom on focus */
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: var(--color-text-muted);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 199, 190, 0.15);
}

.comment-form textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.comment-form button[type="submit"] {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.2s;
}

.comment-card:hover {
    transform: translateY(-2px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-author::before {
    content: '👤';
    font-size: 0.9rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.comment-text {
    margin: 0;
    color: var(--color-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

.empty-comments {
    color: var(--color-text-muted);
    text-align: center;
    padding: 40px 20px;
    font-size: 1rem;
    background: var(--color-card-bg);
    border-radius: 16px;
    border: 1px dashed var(--color-border);
}

/* Mobile-specific comments styling */
@media (max-width: 768px) {
    .comments-section {
        margin-top: 30px;
        padding: 24px 0;
    }

    .comments-section h2 {
        font-size: 1.3rem;
    }

    .comment-form {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .comment-form input,
    .comment-form textarea {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 10px;
    }

    .comment-form textarea {
        min-height: 90px;
    }

    .comment-form button[type="submit"] {
        padding: 14px 20px;
    }

    .comment-card {
        padding: 16px;
        border-radius: 12px;
    }

    .comment-header {
        flex-direction: column;
        gap: 4px;
    }

    .comment-author {
        font-size: 0.95rem;
    }

    .comment-text {
        font-size: 0.9rem;
    }

    .empty-comments {
        padding: 30px 16px;
        font-size: 0.95rem;
    }
}