/* Tennis Zero Codes - Main Stylesheet */

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

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333333;
    background-color: #ffffff;
}

/* CSS Variables */
:root {
    --primary-color: #2E8B57;
    --secondary-color: #FFD700;
    --accent-color: #FF6B6B;
    --text-color: #333333;
    --background-color: #ffffff;
    --border-color: #e9ecef;
    
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* Breakpoints */
    --breakpoint-mobile: 768px;
    --breakpoint-tablet: 1024px;
    --breakpoint-desktop: 1200px;
}

/* ==========================================================================
   RESPONSIVE LAYOUT SYSTEM
   ========================================================================== */

/* Container System */
.container {
    max-width: var(--breakpoint-desktop);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-lg);
}

/* CSS Grid Layout Classes */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Auto-fit responsive grids */
.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Grid gaps */
.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

/* Flexbox Layout Classes */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

/* Flex alignment */
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

/* Flex grow/shrink */
.flex-1 { flex: 1; }
.flex-auto { flex: auto; }
.flex-none { flex: none; }

/* Spacing Utility Classes */
.m-0 { margin: 0; }
.m-xs { margin: var(--spacing-xs); }
.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }
.m-xxl { margin: var(--spacing-xxl); }

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mt-xxl { margin-top: var(--spacing-xxl); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-xxl { margin-bottom: var(--spacing-xxl); }

.ml-0 { margin-left: 0; }
.ml-xs { margin-left: var(--spacing-xs); }
.ml-sm { margin-left: var(--spacing-sm); }
.ml-md { margin-left: var(--spacing-md); }
.ml-lg { margin-left: var(--spacing-lg); }
.ml-xl { margin-left: var(--spacing-xl); }
.ml-auto { margin-left: auto; }

.mr-0 { margin-right: 0; }
.mr-xs { margin-right: var(--spacing-xs); }
.mr-sm { margin-right: var(--spacing-sm); }
.mr-md { margin-right: var(--spacing-md); }
.mr-lg { margin-right: var(--spacing-lg); }
.mr-xl { margin-right: var(--spacing-xl); }
.mr-auto { margin-right: auto; }

.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }
.p-xxl { padding: var(--spacing-xxl); }

.pt-0 { padding-top: 0; }
.pt-xs { padding-top: var(--spacing-xs); }
.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }
.pt-xl { padding-top: var(--spacing-xl); }
.pt-xxl { padding-top: var(--spacing-xxl); }

.pb-0 { padding-bottom: 0; }
.pb-xs { padding-bottom: var(--spacing-xs); }
.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }
.pb-xxl { padding-bottom: var(--spacing-xxl); }

.pl-0 { padding-left: 0; }
.pl-xs { padding-left: var(--spacing-xs); }
.pl-sm { padding-left: var(--spacing-sm); }
.pl-md { padding-left: var(--spacing-md); }
.pl-lg { padding-left: var(--spacing-lg); }
.pl-xl { padding-left: var(--spacing-xl); }

.pr-0 { padding-right: 0; }
.pr-xs { padding-right: var(--spacing-xs); }
.pr-sm { padding-right: var(--spacing-sm); }
.pr-md { padding-right: var(--spacing-md); }
.pr-lg { padding-right: var(--spacing-lg); }
.pr-xl { padding-right: var(--spacing-xl); }

/* Typography Utility Classes */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Display Utilities */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Width and Height Utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Basic Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

p {
    margin-bottom: var(--spacing-md);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #236B43;
    color: white;
}

/* Basic Layout Structure */
.site-header {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: var(--spacing-xl) 0;
}

.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xxl);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS SYSTEM
   ========================================================================== */

/* Mobile First Approach - Base styles are for mobile */

/* Tablet and up (768px and above) */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
    
    /* Tablet Grid Classes */
    .md\:grid-cols-1 { grid-template-columns: 1fr; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    
    /* Tablet Flex Classes */
    .md\:flex { display: flex; }
    .md\:flex-row { flex-direction: row; }
    .md\:flex-col { flex-direction: column; }
    .md\:justify-between { justify-content: space-between; }
    .md\:items-center { align-items: center; }
    
    /* Tablet Spacing */
    .md\:m-0 { margin: 0; }
    .md\:m-md { margin: var(--spacing-md); }
    .md\:m-lg { margin: var(--spacing-lg); }
    .md\:p-md { padding: var(--spacing-md); }
    .md\:p-lg { padding: var(--spacing-lg); }
    
    /* Tablet Typography */
    .md\:text-left { text-align: left; }
    .md\:text-center { text-align: center; }
    .md\:text-lg { font-size: 1.125rem; }
    .md\:text-xl { font-size: 1.25rem; }
    
    /* Tablet Display */
    .md\:block { display: block; }
    .md\:hidden { display: none; }
}

/* Desktop and up (1024px and above) */
@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-xxl);
    }
    
    /* Desktop Grid Classes */
    .lg\:grid-cols-1 { grid-template-columns: 1fr; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
    
    /* Desktop Flex Classes */
    .lg\:flex { display: flex; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:flex-col { flex-direction: column; }
    .lg\:justify-start { justify-content: flex-start; }
    .lg\:justify-center { justify-content: center; }
    .lg\:justify-between { justify-content: space-between; }
    .lg\:items-center { align-items: center; }
    
    /* Desktop Spacing */
    .lg\:m-0 { margin: 0; }
    .lg\:m-lg { margin: var(--spacing-lg); }
    .lg\:m-xl { margin: var(--spacing-xl); }
    .lg\:p-lg { padding: var(--spacing-lg); }
    .lg\:p-xl { padding: var(--spacing-xl); }
    
    /* Desktop Typography */
    .lg\:text-left { text-align: left; }
    .lg\:text-center { text-align: center; }
    .lg\:text-xl { font-size: 1.25rem; }
    .lg\:text-2xl { font-size: 1.5rem; }
    .lg\:text-3xl { font-size: 1.875rem; }
    
    /* Desktop Display */
    .lg\:block { display: block; }
    .lg\:hidden { display: none; }
}

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    /* Extra large grid options */
    .xl\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
    .xl\:grid-cols-8 { grid-template-columns: repeat(8, 1fr); }
    .xl\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
    
    /* Extra large typography */
    .xl\:text-4xl { font-size: 2.25rem; }
    .xl\:text-5xl { font-size: 3rem; }
}

/* Mobile-only styles (below 768px) */
@media (max-width: 767px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Mobile-specific utilities */
    .mobile\:text-center { text-align: center; }
    .mobile\:hidden { display: none; }
    .mobile\:block { display: block; }
    .mobile\:flex-col { flex-direction: column; }
    .mobile\:w-full { width: 100%; }
    .mobile\:p-sm { padding: var(--spacing-sm); }
    .mobile\:m-sm { margin: var(--spacing-sm); }
    
    /* Mobile typography adjustments */
    .mobile\:text-sm { font-size: 0.875rem; }
    .mobile\:text-base { font-size: 1rem; }
    
    /* Ensure minimum touch targets on mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
    }
    
    /* Mobile-friendly spacing */
    .grid {
        gap: var(--spacing-md);
    }
}

/* ==========================================================================
   RESPONSIVE COMPONENTS
   ========================================================================== */

/* Responsive Cards */
.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

@media (max-width: 767px) {
    .card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
}

/* Responsive Hero Section */
.hero {
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

@media (max-width: 767px) {
    .hero {
        padding: var(--spacing-xl) 0;
    }
    
    .hero h1 {
        font-size: 1.875rem;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Responsive Navigation Helpers */
.nav-desktop {
    display: none;
}

.nav-mobile {
    display: block;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: block;
    }
    
    .nav-mobile {
        display: none;
    }
}

/* Responsive Image Utilities */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Text Utilities */
@media (max-width: 767px) {
    .responsive-text {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

@media (min-width: 768px) {
    .responsive-text {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ==========================================================================
   HEADER AND NAVIGATION COMPONENTS
   ========================================================================== */

.site-header {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar {
    padding: var(--spacing-md) 0;
}

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

/* Brand/Logo */
.nav-brand {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-link:hover {
    color: var(--primary-color);
}

.brand-icon {
    font-size: 1.5rem;
    margin-right: var(--spacing-sm);
}

.brand-text {
    white-space: nowrap;
}

/* Desktop Navigation */
.nav-menu.nav-desktop {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu.nav-desktop .nav-item {
    display: inline-block;
    margin-left: var(--spacing-lg);
}

.nav-menu.nav-desktop .nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu.nav-desktop .nav-link:hover,
.nav-menu.nav-desktop .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(46, 139, 87, 0.1);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(0,0,0,0.1);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animation when active */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--background-color);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

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

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: var(--spacing-xxl) 0 var(--spacing-lg) 0;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-lg) var(--spacing-xl);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary-color);
    background-color: rgba(46, 139, 87, 0.1);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

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

.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xxl) 0 var(--spacing-lg) 0;
    margin-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

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

.footer-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-subtitle {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.footer-description {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer-copyright,
.footer-update {
    color: #666;
    font-size: 0.75rem;
    margin-bottom: var(--spacing-sm);
}

.footer-update {
    margin-bottom: 0;
}

/* ==========================================================================
   MAIN CONTENT LAYOUT
   ========================================================================== */

.main-content {
    min-height: calc(100vh - 200px);
    padding: var(--spacing-xl) 0;
}

/* ==========================================================================
   CODE DISPLAY COMPONENTS
   ========================================================================== */

/* Section Titles */
.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-xxl);
}

/* Codes Grid Layout */
.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Code Item Card */
.code-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.code-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.code-item.expired {
    opacity: 0.7;
    background: #f8f9fa;
    border-color: #dee2e6;
}

.code-item.expired:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #dee2e6;
}

/* Code Header */
.code-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.code-text {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(46, 139, 87, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 6px;
    border: 1px solid rgba(46, 139, 87, 0.2);
    letter-spacing: 0.5px;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

/* Status Badges */
.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-badge.new {
    background-color: #e8f5e8;
    color: #2d5a2d;
    border: 1px solid #4caf50;
    animation: pulse-new 2s infinite;
}

.status-badge.active {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #2196f3;
}

.status-badge.expired {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

/* Pulse animation for new badges */
@keyframes pulse-new {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Code Details */
.code-details {
    flex: 1;
    margin-bottom: var(--spacing-md);
}

.reward-description {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    font-weight: 500;
}

.code-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.date-added,
.date-expired {
    font-size: 0.875rem;
    color: #666;
}

.date-expired {
    color: #c62828;
    font-weight: 500;
}

/* Copy Button */
.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    width: 100%;
    padding: var(--spacing-md);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    margin-top: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.copy-btn:hover {
    background-color: #236B43;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(46, 139, 87, 0.3);
}

.copy-btn:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.copy-btn:disabled:hover {
    background-color: #ccc;
    transform: none;
    box-shadow: none;
}

.copy-icon {
    font-size: 1rem;
}

.copy-text {
    font-size: 0.875rem;
}

/* Copy Success Feedback */
.copy-btn.copied {
    background-color: #4caf50;
    animation: copy-success 0.3s ease;
}

.copy-btn.copied .copy-text::after {
    content: " ✓";
}

/* New Copy States */
.copy-btn.copy-success {
    background-color: #28a745;
    color: white;
    transform: scale(1.05);
}

.copy-btn.copy-success:hover {
    background-color: #28a745;
    transform: scale(1.05);
}

.copy-btn.copy-error {
    background-color: #dc3545;
    color: white;
    animation: shake 0.5s ease-in-out;
}

.copy-btn.copy-error:hover {
    background-color: #dc3545;
}

@keyframes copy-success {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Expired Codes Section */
.expired-codes-section {
    margin-top: var(--spacing-xxl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--border-color);
}

.expired-note {
    color: #666;
    font-style: italic;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE CODE DISPLAY STYLES
   ========================================================================== */

/* Mobile Optimizations */
@media (max-width: 767px) {
    .codes-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .code-item {
        padding: var(--spacing-md);
        min-height: 160px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .section-subtitle {
        font-size: 1.25rem;
        margin-top: var(--spacing-xl);
    }
    
    .code-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }
    
    .code-text {
        font-size: 1rem;
        text-align: center;
    }
    
    .status-badge {
        align-self: flex-end;
        font-size: 0.7rem;
    }
    
    .reward-description {
        font-size: 0.875rem;
    }
    
    .copy-btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.8rem;
    }
}

/* Tablet Optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
    .codes-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .code-item {
        min-height: 170px;
    }
}

/* Desktop Optimizations */
@media (min-width: 1024px) {
    .codes-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: var(--spacing-xl);
    }
    
    .code-item {
        min-height: 190px;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-subtitle {
        font-size: 1.75rem;
    }
}

/* Large Desktop Optimizations */
@media (min-width: 1200px) {
    .codes-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        max-width: 1400px;
        margin: 0 auto var(--spacing-xl) auto;
    }
}

/* Manual Copy Modal */
.manual-copy-modal {
    animation: modal-fade-in 0.3s ease;
}

.manual-copy-content {
    animation: modal-slide-up 0.3s ease;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .code-item {
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    }
    
    .code-item:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .code-item {
        transition: none;
    }
    
    .copy-btn {
        transition: none;
    }
    
    .status-badge.new {
        animation: none;
    }
    
    .copy-btn.copied {
        animation: none;
    }
}

/* Dark Mode Support (for future enhancement) */
@media (prefers-color-scheme: dark) {
    .code-item {
        background: #1a1a1a;
        border-color: #333;
        color: #e0e0e0;
    }
    
    .code-text {
        background: rgba(46, 139, 87, 0.2);
        color: #4caf50;
    }
    
    .reward-description {
        color: #e0e0e0;
    }
    
    .date-added {
        color: #aaa;
    }
}

/* ==========================================================================
   RESPONSIVE NAVIGATION STYLES
   ========================================================================== */

/* Desktop Navigation Display */
@media (min-width: 768px) {
    .nav-menu.nav-desktop {
        display: flex;
        align-items: center;
    }
    
    .mobile-menu-toggle.nav-mobile {
        display: none;
    }
    
    .mobile-menu.nav-mobile {
        display: none;
    }
}

/* Mobile Navigation Display */
@media (max-width: 767px) {
    .nav-menu.nav-desktop {
        display: none;
    }
    
    .mobile-menu-toggle.nav-mobile {
        display: flex;
    }
    
    .mobile-menu.nav-mobile {
        display: block;
    }
    
    /* Adjust brand text on small screens */
    .brand-text {
        font-size: 1rem;
    }
    
    .brand-icon {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   RESPONSIVE FOOTER STYLES
   ========================================================================== */

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        text-align: left;
    }
    
    .footer-section:first-child {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 3fr 1fr 1fr;
    }
}

/* ==========================================================================
   REDEMPTION GUIDE COMPONENTS
   ========================================================================== */

.redemption-guide {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.guide-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    justify-content: center;
}

.guide-icon {
    font-size: 1.75rem;
    margin-right: var(--spacing-sm);
}

.guide-section {
    margin-bottom: var(--spacing-xl);
}

.guide-section:last-child {
    margin-bottom: 0;
}

.guide-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

/* Step-by-step guide styles */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-xs);
}

.step-content p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Collapsible section styles */
.collapsible-section {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    overflow: hidden;
}

.collapsible-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: background-color 0.2s ease;
    text-align: left;
}

.collapsible-header:hover {
    background-color: #f8f9fa;
}

.collapsible-header:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.collapsible-header[aria-expanded="true"] {
    background-color: #f0f8f4;
    border-bottom: 1px solid var(--border-color);
}

.collapsible-header[aria-expanded="true"] .collapsible-arrow {
    transform: rotate(180deg);
}

.collapsible-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.collapsible-icon {
    font-size: 1.25rem;
}

.collapsible-arrow {
    font-size: 0.875rem;
    color: #666;
    transition: transform 0.3s ease;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-content.expanded {
    max-height: 1000px; /* Large enough to accommodate content */
}

/* Tips section styles */
.tips-list {
    padding: var(--spacing-lg);
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    margin-top: 2px;
}

.tip-content {
    line-height: 1.6;
}

.tip-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Best practices section styles */
.practices-list {
    padding: var(--spacing-lg);
}

.practice-item {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid #eee;
}

.practice-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.practice-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.practice-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Troubleshooting section styles */
.troubleshooting-list {
    padding: var(--spacing-lg);
}

.troubleshooting-item {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: #fff8f0;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 6px 6px 0;
}

.troubleshooting-item:last-child {
    margin-bottom: 0;
}

.troubleshooting-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

.troubleshooting-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Mobile responsive styles for redemption guide */
@media (max-width: 767px) {
    .redemption-guide {
        padding: var(--spacing-lg);
        margin-top: var(--spacing-lg);
    }
    
    .guide-title {
        font-size: 1.25rem;
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .guide-icon {
        font-size: 1.5rem;
        margin-right: 0;
    }
    
    .guide-steps {
        gap: var(--spacing-md);
    }
    
    .guide-step {
        padding: var(--spacing-md);
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .step-number {
        align-self: center;
    }
    
    .collapsible-header {
        padding: var(--spacing-md);
        font-size: 1rem;
    }
    
    .collapsible-title {
        flex-direction: column;
        gap: var(--spacing-xs);
        align-items: flex-start;
    }
    
    .tips-list,
    .practices-list,
    .troubleshooting-list {
        padding: var(--spacing-md);
    }
    
    .tip-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .tip-icon {
        align-self: center;
        margin-top: 0;
    }
    
    .troubleshooting-item {
        padding: var(--spacing-sm);
    }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .redemption-guide {
        padding: var(--spacing-lg);
    }
    
    .guide-steps {
        gap: var(--spacing-md);
    }
    
    .guide-step {
        padding: var(--spacing-md);
    }
}

/* Animation for smooth collapsible transitions */
@media (prefers-reduced-motion: no-preference) {
    .collapsible-content {
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .collapsible-arrow {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .guide-step {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .guide-step {
        border: 2px solid var(--text-color);
    }
    
    .collapsible-header {
        border: 1px solid var(--text-color);
    }
    
    .troubleshooting-item {
        border-left-width: 6px;
    }
}

/* Print styles for redemption guide */
@media print {
    .redemption-guide {
        background: white;
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    .collapsible-content {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .collapsible-header {
        display: none;
    }
    
    .guide-step:hover {
        transform: none;
        box-shadow: none;
    }
}
/* 
==========================================================================
   HOMEPAGE SECTIONS STYLES
   ========================================================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23dee2e6" opacity="0.3"/></svg>') repeat;
    background-size: 50px 50px;
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(46, 139, 87, 0.1);
    color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(46, 139, 87, 0.2);
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.2;
    margin: 0;
}

.hero-title .highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.hero-description {
    font-size: 1.25rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-top: var(--spacing-xs);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Value Proposition Section */
.value-section {
    padding: var(--spacing-xxl) 0;
    background: white;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.value-item {
    text-align: center;
    padding: var(--spacing-xl);
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    display: block;
}

.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.value-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.value-item .step-image {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .value-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .value-item .step-image {
        margin-top: 16px;
    }
}

/* Latest Codes Preview Section */
.latest-codes-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.codes-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.code-preview-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-xl);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.code-preview-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.code-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.code-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.code-preview-text {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(46, 139, 87, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 6px;
    border: 1px solid rgba(46, 139, 87, 0.2);
}

.code-preview-reward {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.code-preview-meta {
    margin-bottom: var(--spacing-lg);
}

.code-preview-date {
    font-size: 0.875rem;
    color: #666;
}

/* Call to Action Section */
.cta-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #228B22 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1.5" fill="white" opacity="0.1"/></svg>') repeat;
    background-size: 40px 40px;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    color: white;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Section Headers */
.section-header {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Button Enhancements for Homepage */
.btn-large {
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* Mobile Responsive Styles for Homepage */
@media (max-width: 767px) {
    .hero-section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .hero-stats {
        gap: var(--spacing-lg);
    }
    
    .stat-divider {
        display: none;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .value-item {
        padding: var(--spacing-lg);
    }
    
    .codes-preview-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .code-preview-item {
        padding: var(--spacing-lg);
    }
    
    .code-preview-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }
    
    .cta-title {
        font-size: 1.875rem;
    }
    
    .cta-description {
        font-size: 1.125rem;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .codes-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-title {
        font-size: 2.25rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .value-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .codes-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animation Enhancements */
@media (prefers-reduced-motion: no-preference) {
    .hero-badge {
        animation: float 3s ease-in-out infinite;
    }
    
    .value-item:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .value-item:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .value-item:nth-child(3) {
        animation-delay: 0.3s;
    }
    
    .value-item:nth-child(4) {
        animation-delay: 0.4s;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero-section {
        background: white;
        border: 2px solid var(--text-color);
    }
    
    .value-item {
        border: 2px solid var(--text-color);
    }
    
    .code-preview-item {
        border: 2px solid var(--text-color);
    }
    
    .cta-section {
        background: var(--text-color);
        border: 2px solid white;
    }
}

/* Print Styles for Homepage */
@media print {
    .hero-section,
    .value-section,
    .latest-codes-section,
    .cta-section {
        background: white !important;
        box-shadow: none !important;
    }
    
    .hero-section::before,
    .cta-section::before {
        display: none;
    }
    
    .value-item:hover,
    .code-preview-item:hover {
        transform: none;
        box-shadow: none;
    }
    
    .cta-section {
        color: black !important;
    }
    
    .cta-title,
    .cta-description {
        color: black !important;
    }
}/* ==
========================================================================
   REDEMPTION GUIDE COMPONENTS
   ========================================================================== */

.redemption-guide {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-xl);
    margin-top: var(--spacing-xxl);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.guide-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    justify-content: center;
}

.guide-icon {
    font-size: 2rem;
}

.guide-section {
    margin-bottom: var(--spacing-xl);
}

.guide-section:last-child {
    margin-bottom: 0;
}

.guide-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
}

/* Step-by-step Guide */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.guide-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.step-content p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================================================
   COLLAPSIBLE SECTIONS
   ========================================================================== */

.collapsible-section {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--spacing-lg);
    background: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.collapsible-header:hover {
    background-color: #f8f9fa;
}

.collapsible-header:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.collapsible-header[aria-expanded="true"] {
    background-color: rgba(46, 139, 87, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.collapsible-header[aria-expanded="true"] .collapsible-arrow {
    transform: rotate(180deg);
}

.collapsible-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
}

.collapsible-icon {
    font-size: 1.25rem;
}

.collapsible-arrow {
    font-size: 0.875rem;
    color: #666;
    transition: transform 0.3s ease;
    margin-left: var(--spacing-md);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: white;
}

.collapsible-content.expanded {
    max-height: none;
}

/* Tips and Tricks Section */
.tips-list {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.tip-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-content {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.tip-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Best Practices Section */
.practices-list {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.practice-item {
    padding: var(--spacing-md);
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
}

.practice-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.practice-item p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Troubleshooting Section */
.troubleshooting-list {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.troubleshooting-item {
    padding: var(--spacing-md);
    background: #fff3cd;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

.troubleshooting-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #856404;
    margin-bottom: var(--spacing-sm);
}

.troubleshooting-item p {
    font-size: 0.875rem;
    color: #856404;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 300px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.toast-success {
    background-color: #28a745;
    color: white;
}

.toast.toast-error {
    background-color: #dc3545;
    color: white;
}

.toast-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

/* ==========================================================================
   RESPONSIVE REDEMPTION GUIDE STYLES
   ========================================================================== */

/* Mobile Optimizations */
@media (max-width: 767px) {
    .redemption-guide {
        padding: var(--spacing-lg);
        margin-top: var(--spacing-xl);
    }
    
    .guide-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-lg);
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .guide-icon {
        font-size: 1.75rem;
    }
    
    .guide-section-title {
        font-size: 1.125rem;
    }
    
    .guide-steps {
        gap: var(--spacing-md);
    }
    
    .guide-step {
        padding: var(--spacing-md);
        flex-direction: column;
        text-align: center;
    }
}

/* Focus management */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced focus indicators */
.btn:focus-visible,
.copy-btn:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
    .code-item {
        border: 2px solid var(--text-color);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}
        gap: var(--spacing-sm);
    }
    
    .step-number {
        align-self: center;
    }
    
    .step-content h4 {
        font-size: 0.875rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .step-content p {
        font-size: 0.8rem;
    }
    
    .collapsible-header {
        padding: var(--spacing-md);
        font-size: 0.875rem;
    }
    
    .collapsible-title {
        gap: var(--spacing-xs);
    }
    
    .collapsible-icon {
        font-size: 1rem;
    }
    
    .tips-list,
    .practices-list,
    .troubleshooting-list {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    .tip-item,
    .practice-item,
    .troubleshooting-item {
        padding: var(--spacing-sm);
    }
    
    .tip-content,
    .practice-item p,
    .troubleshooting-item p {
        font-size: 0.8rem;
    }
    
    .practice-item h4,
    .troubleshooting-item h4 {
        font-size: 0.875rem;
    }
    
    /* Mobile Toast Positioning */
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
        font-size: 16px;
        padding: 18px 20px;
    }
}

/* Tablet Optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
    .redemption-guide {
        padding: var(--spacing-xl);
    }
    
    .guide-title {
        font-size: 1.625rem;
    }
    
    .guide-step {
        padding: var(--spacing-lg);
    }
}

/* Desktop Optimizations */
@media (min-width: 1024px) {
    .redemption-guide {
        padding: var(--spacing-xxl);
    }
    
    .guide-title {
        font-size: 2rem;
    }
    
    .guide-steps {
        gap: var(--spacing-xl);
    }
    
    .guide-step {
        padding: var(--spacing-xl);
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-content h4 {
        font-size: 1.125rem;
    }
    
    .step-content p {
        font-size: 1rem;
    }
}

/* Large Desktop Optimizations */
@media (min-width: 1200px) {
    .redemption-guide {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
        margin-top: var(--spacing-xxl);
    }
}

/* Print Styles for Redemption Guide */
@media print {
    .redemption-guide {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    .collapsible-content {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .collapsible-header {
        background: white !important;
    }
    
    .guide-step {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .guide-step {
        transition: none;
    }
    
    .collapsible-header {
        transition: none;
    }
    
    .collapsible-content {
        transition: none;
    }
    
    .collapsible-arrow {
        transition: none;
    }
    
    .toast {
        transition: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .guide-step {
        border-width: 2px;
    }
    
    .collapsible-section {
        border-width: 2px;
    }
    
    .tip-item {
        border-left-width: 6px;
    }
    
    .practice-item {
        border-left-width: 6px;
    }
    
    .troubleshooting-item {
        border-left-width: 6px;
    }
}

/* Focus Visible Support */
.guide-step:focus-visible,
.collapsible-header:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ==========================================================================
   ARTICLE LAYOUT STYLES
   ========================================================================== */

.codes-article {
    max-width: 1200px;
    margin: 0 auto;
}

.codes-article header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.codes-article header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.codes-article header p {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.codes-article header time {
    font-weight: 500;
    color: var(--primary-color);
}

/* Mobile Article Header */
@media (max-width: 767px) {
    .codes-article header h1 {
        font-size: 1.875rem;
    }
    
    .codes-article header {
        margin-bottom: var(--spacing-xl);
    }
}

/* Tablet Article Header */
@media (min-width: 768px) and (max-width: 1023px) {
    .codes-article header h1 {
        font-size: 2.25rem;
    }
}
/
* ==========================================================================
   INFORMATION PAGES STYLES
   ========================================================================== */

/* About Page Styles */
.about-article {
    max-width: 800px;
    margin: 0 auto;
}

.about-article h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.about-article h2 {
    font-size: 1.875rem;
    color: var(--text-color);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
}

.about-article h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.info-content {
    line-height: 1.7;
    color: var(--text-color);
}

.info-content p {
    margin-bottom: var(--spacing-lg);
}

.feature-list,
.reward-list,
.service-list {
    margin: var(--spacing-lg) 0;
    padding-left: var(--spacing-lg);
}

.feature-list li,
.reward-list li,
.service-list li {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.usage-tips {
    background: #f8f9fa;
    padding: var(--spacing-lg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: var(--spacing-lg) 0;
}

.usage-tips p {
    margin-bottom: var(--spacing-md);
}

.usage-tips p:last-child {
    margin-bottom: 0;
}

/* Disclaimer Styles */
.disclaimer-content {
    background: #fff9e6;
    padding: var(--spacing-xl);
    border-radius: 12px;
    border: 1px solid #ffd700;
}

.disclaimer-notice {
    background: #fff3cd;
    padding: var(--spacing-lg);
    border-radius: 8px;
    border: 1px solid #ffc107;
    margin-bottom: var(--spacing-xl);
}

.disclaimer-notice h3 {
    color: #856404;
    margin-bottom: var(--spacing-md);
}

.disclaimer-notice p {
    color: #856404;
    font-weight: 500;
    margin-bottom: 0;
}

.disclaimer-list {
    margin: var(--spacing-lg) 0;
    padding-left: var(--spacing-lg);
}

.disclaimer-list li {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.disclaimer-footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.disclaimer-footer em {
    color: #666;
    font-size: 0.875rem;
}

/* FAQ Page Styles */
.faq-article {
    max-width: 900px;
    margin: 0 auto;
}

.faq-article h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.faq-article > header p {
    text-align: center;
    color: #666;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xxl);
}

.faq-intro {
    background: #f8f9fa;
    padding: var(--spacing-lg);
    border-radius: 8px;
    margin-bottom: var(--spacing-xxl);
    text-align: center;
}

.faq-intro p {
    margin-bottom: 0;
    color: var(--text-color);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Collapsible Header */
.collapsible-header {
    width: 100%;
    background: none;
    border: none;
    padding: var(--spacing-lg);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    position: relative;
}

.collapsible-header:hover {
    background-color: #f8f9fa;
}

.collapsible-header:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.collapsible-header[aria-expanded="true"] {
    background-color: rgba(46, 139, 87, 0.1);
}

.collapsible-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    flex: 1;
    padding-right: var(--spacing-md);
}

.collapsible-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collapsible-header[aria-expanded="true"] .collapsible-icon {
    transform: rotate(45deg);
}

/* Collapsible Content */
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #fafafa;
}

.collapsible-content.expanded {
    max-height: none;
}

.faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
    line-height: 1.6;
    color: var(--text-color);
}

.faq-answer p {
    margin-bottom: var(--spacing-md);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.faq-answer li {
    margin-bottom: var(--spacing-sm);
}

.faq-answer ul ul {
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

/* Contact Page Styles */
.contact-article {
    max-width: 900px;
    margin: 0 auto;
}

.contact-article h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.contact-article > header p {
    text-align: center;
    color: #666;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xxl);
}

.contact-article h2 {
    font-size: 1.875rem;
    color: var(--text-color);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 139, 87, 0.1);
    border-radius: 50%;
}

.contact-details h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.contact-details p {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.contact-link {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.125rem;
}

.contact-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact-note {
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
}

.feedback-types,
.response-times {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.feedback-types li,
.response-times li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

/* Contact Form */
.form-intro {
    background: #f8f9fa;
    padding: var(--spacing-lg);
    border-radius: 8px;
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.form-intro p {
    margin-bottom: 0;
    color: var(--text-color);
}

.contact-form-container {
    background: white;
    padding: var(--spacing-xl);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
}

.required {
    color: #dc3545;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-help {
    font-size: 0.75rem;
    color: #666;
    margin-top: var(--spacing-xs);
}

.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    display: none;
}

.form-error.show {
    display: block;
}

/* Checkbox Styling */
.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}

.form-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-mark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-checkbox:checked + .checkbox-mark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-checkbox:checked + .checkbox-mark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-checkbox:focus + .checkbox-mark {
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.form-submit {
    flex: 1;
    position: relative;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: white;
}

.form-reset {
    flex: 0 0 auto;
    min-width: 120px;
}

/* Form Status */
.form-status {
    padding: var(--spacing-md);
    border-radius: 6px;
    margin-top: var(--spacing-lg);
    text-align: center;
    font-weight: 500;
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Tips */
.contact-tips {
    background: #f8f9fa;
    padding: var(--spacing-xl);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.contact-tips h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.tips-list {
    margin: 0;
    padding-left: var(--spacing-lg);
}

.tips-list li {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE STYLES FOR INFORMATION PAGES
   ========================================================================== */

/* Mobile Optimizations */
@media (max-width: 767px) {
    .about-article h1,
    .faq-article h1,
    .contact-article h1 {
        font-size: 1.875rem;
    }
    
    .about-article h2,
    .contact-article h2 {
        font-size: 1.5rem;
        margin-top: var(--spacing-xl);
    }
    
    .info-content,
    .disclaimer-content {
        padding: var(--spacing-lg);
    }
    
    .usage-tips {
        padding: var(--spacing-md);
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .contact-form-container {
        padding: var(--spacing-lg);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-reset {
        min-width: auto;
    }
    
    .collapsible-header {
        padding: var(--spacing-md);
    }
    
    .collapsible-title {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
    }
}

/* Tablet Optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        justify-content: flex-start;
    }
}

/* Desktop Optimizations */
@media (min-width: 1024px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        justify-content: flex-start;
    }
    
    .contact-form-container {
        padding: var(--spacing-xxl);
    }
}

/* Print Styles for Information Pages */
@media print {
    .about-article,
    .faq-article,
    .contact-article {
        max-width: none;
    }
    
    .collapsible-content {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .collapsible-header {
        background: none !important;
    }
    
    .contact-form-container {
        display: none;
    }
    
    .contact-tips {
        break-inside: avoid;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .collapsible-content {
        transition: none;
    }
    
    .collapsible-icon {
        transition: none;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        transition: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .disclaimer-notice {
        border-width: 2px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        border-width: 2px;
    }
    
    .faq-item {
        border-width: 2px;
    }
}
/* ======
====================================================================
   LEGAL PAGES STYLES
   ========================================================================== */

/* Privacy Policy and Terms of Service */
.privacy-article,
.terms-article {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.privacy-article header,
.terms-article header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

.privacy-article h1,
.terms-article h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.privacy-article header p,
.terms-article header p {
    color: #666;
    font-size: 1rem;
}

/* Legal Content Sections */
.privacy-content,
.terms-content {
    line-height: 1.8;
}

.privacy-intro,
.terms-intro {
    background-color: #f8f9fa;
    padding: var(--spacing-lg);
    border-radius: 8px;
    margin-bottom: var(--spacing-xl);
    border-left: 4px solid var(--primary-color);
}

.privacy-intro p,
.terms-intro p {
    margin-bottom: var(--spacing-md);
}

.privacy-intro p:last-child,
.terms-intro p:last-child {
    margin-bottom: 0;
}

.privacy-section,
.terms-section {
    margin-bottom: var(--spacing-xxl);
}

.privacy-section h2,
.terms-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.privacy-section h3,
.terms-section h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-lg);
    font-weight: 600;
}

.privacy-section p,
.terms-section p {
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.privacy-section ul,
.terms-section ul {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.privacy-section li,
.terms-section li {
    margin-bottom: var(--spacing-sm);
}

.privacy-section strong,
.terms-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact Info in Legal Pages */
.contact-info {
    background-color: #f8f9fa;
    padding: var(--spacing-lg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-info p {
    margin-bottom: var(--spacing-sm);
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Links in Legal Content */
.privacy-content a,
.terms-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-content a:hover,
.terms-content a:hover {
    color: var(--accent-color);
}

/* Mobile Responsiveness for Legal Pages */
@media (max-width: 768px) {
    .privacy-article,
    .terms-article {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .privacy-article h1,
    .terms-article h1 {
        font-size: 2rem;
    }
    
    .privacy-section h2,
    .terms-section h2 {
        font-size: 1.3rem;
    }
    
    .privacy-section h3,
    .terms-section h3 {
        font-size: 1.1rem;
    }
    
    .privacy-intro,
    .terms-intro,
    .contact-info {
        padding: var(--spacing-md);
    }
    
    .privacy-section ul,
    .terms-section ul {
        padding-left: var(--spacing-md);
    }
}

/* Print Styles for Legal Pages */
@media print {
    .privacy-article,
    .terms-article {
        max-width: none;
        padding: 0;
    }
    
    .site-header,
    .site-footer {
        display: none;
    }
    
    .privacy-content a,
    .terms-content a {
        color: var(--text-color);
        text-decoration: none;
    }
    
    .privacy-content a:after,
    .terms-content a:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
