/* ===========================================
   Book Week Costumes Australia - Styles
   =========================================== */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --accent: #10b981;
    --accent-dark: #059669;

    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-dark: #1f2937;

    --border-color: #e5e7eb;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;

    --container-max: 1200px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--secondary-dark);
    color: white;
    transform: translateY(-2px);
}

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

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

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

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 60px) 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-book {
    position: absolute;
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.3;
}

.book-1 { top: 20%; left: 10%; animation-delay: 0s; }
.book-2 { top: 60%; left: 5%; animation-delay: 1s; }
.book-3 { top: 30%; right: 10%; animation-delay: 2s; }
.book-4 { top: 70%; right: 15%; animation-delay: 3s; }

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

/* Quick Categories */
.quick-categories {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

.category-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 20px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-cards::-webkit-scrollbar {
    display: none;
}

.category-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 24px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    border: 2px solid transparent;
    min-width: 140px;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

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

.category-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-header.light h2 {
    color: white;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.8);
}

/* Costumes Section */
.costumes-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.costumes-toolbar {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all var(--transition);
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.view-toggle {
    display: flex;
    background: white;
    border-radius: var(--border-radius);
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.view-btn {
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
    transition: all var(--transition);
}

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

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

.sort-dropdown select {
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.sort-dropdown select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Costumes Grid */
.costumes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.costume-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    position: relative;
}

.costume-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.costume-image {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    overflow: hidden;
}

.costume-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--secondary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
}

.costume-compare-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    font-size: 1.1rem;
}

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

.costume-compare-btn.added {
    background: var(--accent);
    color: white;
}

.costume-content {
    padding: 20px;
}

.costume-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.costume-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.costume-book {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.costume-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.costume-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.costume-meta-icon {
    font-size: 1rem;
}

.costume-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 16px;
}

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

.costume-actions .btn {
    flex: 1;
}

/* Table View */
.costumes-table {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.costumes-table table {
    width: 100%;
    border-collapse: collapse;
}

.costumes-table th,
.costumes-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.costumes-table th {
    background: var(--bg-tertiary);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.costumes-table tr:hover td {
    background: var(--bg-secondary);
}

.costumes-table .costume-table-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.costumes-table .costume-table-icon {
    font-size: 2rem;
}

.costumes-table .costume-table-title {
    font-weight: 600;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--border-radius-lg);
}

.no-results-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.no-results p {
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

/* Quiz Section */
.quiz-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.quiz-progress {
    margin-bottom: 32px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width var(--transition-slow);
    width: 20%;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
}

.quiz-question {
    display: none;
}

.quiz-question.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.quiz-question h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: center;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.quiz-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition);
}

.quiz-option:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.option-icon {
    font-size: 2.5rem;
}

.option-text {
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.quiz-results {
    text-align: center;
}

.quiz-results h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.quiz-recommendations {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.quiz-recommendation {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    text-align: left;
}

.quiz-recommendation-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.quiz-recommendation-content {
    flex: 1;
}

.quiz-recommendation-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.quiz-recommendation-book {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.quiz-recommendation .btn {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Compare Section */
.compare-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.compare-container {
    max-width: 1000px;
    margin: 0 auto;
}

.compare-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.compare-slot {
    aspect-ratio: 3/4;
    background: var(--bg-secondary);
    border: 3px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.compare-slot:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.compare-slot-empty {
    text-align: center;
    color: var(--text-muted);
}

.plus-icon {
    display: block;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 8px;
    color: var(--text-light);
}

.compare-slot-filled {
    position: absolute;
    inset: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.compare-slot-filled .remove-compare {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: var(--bg-dark);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.compare-costume-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.compare-costume-preview .preview-icon {
    font-size: 4rem;
    margin-bottom: 12px;
}

.compare-costume-preview .preview-title {
    font-weight: 700;
    font-size: 1rem;
}

.compare-costume-preview .preview-book {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.compare-table-container {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.compare-table th:first-child,
.compare-table td:first-child {
    font-weight: 600;
    background: var(--bg-tertiary);
    width: 150px;
}

.compare-table th:not(:first-child) {
    text-align: center;
}

.compare-table td:not(:first-child) {
    text-align: center;
}

.compare-table .compare-header-cell {
    text-align: center;
}

.compare-table .compare-header-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.compare-table .compare-header-title {
    font-weight: 700;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

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

.modal-close {
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-search {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-search input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.modal-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.modal-costume-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background var(--transition);
}

.modal-costume-item:hover {
    background: var(--bg-secondary);
}

.modal-costume-icon {
    font-size: 2.5rem;
}

.modal-costume-info {
    flex: 1;
}

.modal-costume-title {
    font-weight: 600;
}

.modal-costume-book {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.category-tile {
    display: block;
    padding: 32px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.category-tile:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.category-tile-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.category-tile h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-tile p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Tips Section */
.tips-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.tip-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.tip-card h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.tip-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* SEO Section */
.seo-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.seo-content {
    max-width: 800px;
    margin: 0 auto;
}

.seo-content h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.seo-content h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.seo-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.newsletter-content {
    text-align: center;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    margin-bottom: 12px;
}

.newsletter-content p {
    opacity: 0.8;
    margin-bottom: 24px;
}

.newsletter-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 16px;
    opacity: 0.7;
    font-size: 0.95rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.footer-logo:hover {
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

.affiliate-disclosure {
    margin-top: 8px;
    font-size: 0.8rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 40px) 0 60px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .quick-categories {
        margin-top: -30px;
    }

    .costumes-toolbar {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

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

    .quiz-container {
        padding: 24px;
    }

    .compare-selector {
        grid-template-columns: 1fr;
    }

    .compare-slot {
        aspect-ratio: 16/9;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

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

    .quiz-options {
        grid-template-columns: 1fr 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

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

/* Table responsive */
@media (max-width: 900px) {
    .costumes-table {
        overflow-x: auto;
    }

    .costumes-table table {
        min-width: 800px;
    }

    .compare-table-container {
        overflow-x: auto;
    }

    .compare-table {
        min-width: 600px;
    }
}
