/* Blue Dress Australia - Styles */
/* Modern, elegant CSS for the blue dress shopping experience */

/* CSS Variables */
:root {
    --primary-blue: #1e3a5f;
    --primary-light: #2c5282;
    --royal-blue: #3182ce;
    --sky-blue: #63b3ed;
    --powder-blue: #bee3f8;
    --teal: #00b5d8;
    --navy: #1a365d;

    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-light: #718096;

    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;

    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s 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-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--royal-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul {
    list-style: none;
}

/* Container */
.container {
    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;
    color: var(--text-primary);
}

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.75rem); }
h4 { font-size: 1.25rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--royal-blue) 100%);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

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

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

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

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

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

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

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

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

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--powder-blue) 50%, var(--bg-secondary) 100%);
    overflow: hidden;
}

.hero-content {
    padding-left: calc((100vw - 1280px) / 2 + 24px);
}

.hero h1 {
    margin-bottom: 24px;
}

.highlight {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

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

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

.hero-visual {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.dress-showcase {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    gap: 20px;
}

.dress-card {
    width: 200px;
    height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-normal);
}

.dress-card.featured {
    width: 260px;
    height: 400px;
    z-index: 2;
}

.dress-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.dress-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

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

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

.section-header h2 {
    margin-bottom: 12px;
}

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.filter-group select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.filter-group select:hover,
.filter-group select:focus {
    border-color: var(--royal-blue);
    outline: none;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

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

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

.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

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

.product-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.product-image-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: var(--primary-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
}

.product-badge.sale {
    background: #e53e3e;
}

.product-badge.new {
    background: var(--teal);
}

.product-compare-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    font-size: 1.25rem;
}

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

.product-compare-btn.active {
    background: var(--royal-blue);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.product-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.stars {
    color: #f6ad55;
    font-size: 0.875rem;
}

.rating-count {
    font-size: 0.875rem;
    color: var(--text-light);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.price-original {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-cta {
    display: block;
    width: 100%;
    text-align: center;
}

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

.products-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

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

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

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

.table-product-color {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.table-product-title {
    font-weight: 600;
    color: var(--text-primary);
}

/* Quiz Section */
.quiz-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--royal-blue) 100%);
}

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

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

.quiz-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--powder-blue);
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
}

.quiz-header h2 {
    margin-bottom: 12px;
}

.quiz-header p {
    color: var(--text-secondary);
}

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

.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(--royal-blue) 0%, var(--teal) 100%);
    border-radius: 4px;
    transition: width var(--transition-normal);
    width: 20%;
}

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

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

.question-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

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

.option-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    font-family: var(--font-body);
    font-size: 1rem;
}

.option-btn:hover {
    border-color: var(--royal-blue);
    background: var(--powder-blue);
}

.option-btn.selected {
    border-color: var(--primary-blue);
    background: var(--powder-blue);
}

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

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

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

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

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

.result-dress {
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.result-dress-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-blue);
}

.result-dress-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

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

.compare-slot {
    position: relative;
    background: var(--bg-primary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    transition: all var(--transition-fast);
}

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

.compare-slot.filled {
    border-style: solid;
    border-color: var(--royal-blue);
}

.slot-placeholder {
    margin-bottom: 20px;
}

.slot-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-light);
}

.slot-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.compare-select {
    width: 100%;
    padding: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

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

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

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

.compare-table th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.compare-table th:first-child {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
}

.compare-table td:first-child {
    font-weight: 500;
    color: var(--text-secondary);
}

.compare-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 24px;
    background: var(--bg-secondary);
}

/* Popular Section */
.popular-section {
    padding: 100px 0;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.popular-card {
    position: relative;
    height: 350px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.popular-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    z-index: 1;
}

.popular-card-bg {
    position: absolute;
    inset: 0;
    transition: transform var(--transition-slow);
}

.popular-card:hover .popular-card-bg {
    transform: scale(1.05);
}

.popular-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    color: white;
}

.popular-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.popular-card-price {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.popular-card-link {
    font-size: 0.875rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.popular-card-link:hover {
    opacity: 1;
    color: white;
}

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

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

.seo-content h2 {
    margin-bottom: 24px;
    text-align: center;
}

.seo-content h3 {
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--primary-blue);
}

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

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

.seo-content li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    list-style: disc;
}

.seo-content a {
    color: var(--royal-blue);
    text-decoration: underline;
}

.seo-content a:hover {
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: white;
    padding: 80px 0 40px;
}

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    max-width: 300px;
}

.footer-brand .logo-text,
.footer-brand .logo-sub {
    color: white;
}

.footer-links h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1rem;
    font-weight: 600;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

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

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.affiliate-disclosure {
    font-size: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 120px 24px 60px;
    }

    .hero-content {
        padding-left: 0;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

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

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

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

    .filter-bar {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .quiz-container {
        padding: 30px 20px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

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

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

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

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
