/* Best Heels Australia - Styles */

/* CSS Variables */
:root {
    --primary: #c41e3a;
    --primary-dark: #a01830;
    --primary-light: #ff6b8a;
    --secondary: #1a1a2e;
    --accent: #f8b4c4;
    --background: #fefefe;
    --surface: #ffffff;
    --surface-alt: #f8f9fa;
    --text: #1a1a2e;
    --text-muted: #6c757d;
    --text-light: #ffffff;
    --border: #e9ecef;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    gap: 8px;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-light);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.875rem;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

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

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

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

.nav-links a {
    font-weight: 500;
    color: var(--text);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 60px;
    background: linear-gradient(135deg, #fff5f7 0%, #fef0f3 50%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    opacity: 0.5;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--secondary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

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

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Categories */
.categories {
    padding: 40px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 73px;
    z-index: 100;
}

.category-pills {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

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

.pill {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    background: var(--surface-alt);
    color: var(--text);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.pill.active {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.view-toggle {
    display: flex;
    gap: 8px;
    background: var(--surface-alt);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.view-btn {
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.view-btn.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow);
}

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

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--primary);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    z-index: 1;
}

.product-image {
    height: 240px;
    background: var(--surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.02) 0%, transparent 50%);
}

.product-content {
    padding: 20px;
}

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

.product-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.product-rating {
    color: #ffc107;
}

.product-price {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

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

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

.btn-compare {
    background: var(--surface-alt);
    color: var(--text);
    padding: 12px 16px;
}

.btn-compare:hover {
    background: var(--border);
}

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

/* Products Table */
.products-table-wrapper {
    overflow-x: auto;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.products-table th {
    background: var(--surface-alt);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.products-table tr:hover {
    background: var(--surface-alt);
}

.table-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-product-image {
    width: 60px;
    height: 60px;
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.table-product-name {
    font-weight: 500;
}

.table-rating {
    color: #ffc107;
}

/* Quiz Section */
.quiz-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
    color: var(--text-light);
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-header h2 {
    color: var(--text-light);
    margin-bottom: 12px;
}

.quiz-header p {
    opacity: 0.8;
}

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

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 25%;
}

.progress-text {
    font-size: 0.875rem;
    opacity: 0.7;
}

.quiz-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quiz-question {
    margin-bottom: 24px;
}

.quiz-question h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.quiz-options {
    display: grid;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    color: var(--text-light);
}

.quiz-option:hover {
    border-color: var(--primary);
    background: rgba(196, 30, 58, 0.1);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: var(--primary);
}

.quiz-option-icon {
    font-size: 1.5rem;
}

.quiz-result {
    text-align: center;
    padding: 40px;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.quiz-result h3 {
    margin-bottom: 16px;
}

.result-text {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.result-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.result-product-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
}

.result-product-card .emoji {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.result-product-card h4 {
    font-size: 1rem;
    margin-bottom: 12px;
}

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

.compare-section h2 {
    text-align: center;
    margin-bottom: 12px;
}

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

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

.compare-slot {
    min-height: 200px;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.compare-slot:hover {
    border-color: var(--primary);
}

.add-compare-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    padding: 20px;
}

.plus-icon {
    width: 48px;
    height: 48px;
    border: 2px dashed var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.add-compare-btn:hover .plus-icon {
    border-color: var(--primary);
    color: var(--primary);
}

.selected-product {
    padding: 20px;
    text-align: center;
    width: 100%;
}

.selected-product .emoji {
    font-size: 3rem;
    margin-bottom: 12px;
}

.selected-product h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.remove-compare {
    background: var(--surface-alt);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    margin-top: 12px;
}

.remove-compare:hover {
    background: var(--primary);
    color: var(--text-light);
}

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

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.compare-table th {
    background: var(--surface-alt);
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: var(--surface-alt);
}

.compare-table .emoji {
    font-size: 2rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.modal.hidden .modal-content {
    transform: scale(0.95);
}

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

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

.modal-close {
    font-size: 1.5rem;
    color: var(--text-muted);
    padding: 4px;
}

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

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

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

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

.modal-products {
    overflow-y: auto;
    padding: 16px 24px;
    display: grid;
    gap: 12px;
}

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

.modal-product-item:hover {
    background: var(--accent);
}

.modal-product-item .emoji {
    font-size: 2rem;
}

.modal-product-item h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.modal-product-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--surface);
}

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

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--surface-alt);
    border-radius: var(--radius);
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.125rem;
}

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

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

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

.seo-content h2 {
    margin-bottom: 24px;
    color: var(--secondary);
}

.seo-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--secondary);
}

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

.seo-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.seo-content li {
    margin-bottom: 8px;
    list-style: disc;
    line-height: 1.7;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: var(--primary);
    color: var(--text-light);
}

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

.newsletter-content h2 {
    margin-bottom: 12px;
}

.newsletter-content p {
    opacity: 0.9;
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form .btn {
    background: var(--secondary);
    white-space: nowrap;
}

.newsletter-form .btn:hover {
    background: #0f0f1e;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--text-light);
    padding: 60px 0 30px;
}

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

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

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

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

.footer-links a {
    opacity: 0.7;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.875rem;
}

.affiliate-disclosure {
    margin-top: 12px;
    font-size: 0.8rem !important;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero-stats {
        gap: 24px;
    }

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

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

    .newsletter-form {
        flex-direction: column;
    }

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

    .quiz-content {
        padding: 24px;
    }

    .products-table th:nth-child(3),
    .products-table th:nth-child(4),
    .products-table td:nth-child(3),
    .products-table td:nth-child(4) {
        display: none;
    }
}

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

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

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .category-pills {
        gap: 8px;
    }

    .pill {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }
.product-card:nth-child(5) { animation-delay: 0.3s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }
.product-card:nth-child(7) { animation-delay: 0.4s; }
.product-card:nth-child(8) { animation-delay: 0.45s; }
