/* ============================================
   Best Tuxedo Australia - Styles
   Premium Formal Wear Guide 2026
   ============================================ */

/* CSS Variables */
:root {
    --primary: #1a1a2e;
    --primary-light: #2d2d44;
    --accent: #c9a959;
    --accent-hover: #d4b86a;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --background: #ffffff;
    --background-alt: #f8f9fa;
    --background-dark: #1a1a2e;
    --border: #e0e0e0;
    --success: #28a745;
    --warning: #ffc107;
    --error: #dc3545;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;
    --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-color: var(--background);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--accent);
}

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

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

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

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

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

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

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

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

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--background);
}

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

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

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--background);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    padding: 100px 20px 60px;
    position: relative;
    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='%23c9a959' 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");
    opacity: 0.5;
}

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

.hero-title {
    color: var(--background);
    margin-bottom: 20px;
}

.hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.25rem;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

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

.stat {
    text-align: center;
}

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

.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.tuxedo-showcase {
    display: flex;
    gap: 20px;
    perspective: 1000px;
}

.showcase-card {
    width: 150px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.showcase-card:hover,
.showcase-card.active {
    transform: translateY(-10px) scale(1.05);
}

.card-image {
    width: 150px;
    height: 200px;
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
    box-shadow: var(--shadow-lg);
}

.card-image.classic {
    background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 50%, #0d0d0d 100%);
}

.card-image.navy {
    background: linear-gradient(180deg, #1e3a5f 0%, #152d4a 50%, #0f2035 100%);
}

.card-image.burgundy {
    background: linear-gradient(180deg, #722f37 0%, #5c252c 50%, #461b21 100%);
}

.showcase-card span {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

/* Filters Section */
.filters-section {
    padding: 60px 0 30px;
    background: var(--background);
}

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

.section-header h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
}

.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--background-alt);
    border-radius: var(--radius-lg);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--background);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.view-toggle {
    display: flex;
    gap: 5px;
    background: var(--background);
    padding: 5px;
    border-radius: var(--radius-md);
}

.view-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.view-btn svg {
    fill: var(--text-light);
}

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

.view-btn.active svg,
.view-btn:hover svg {
    fill: var(--background);
}

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

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

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

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.product-image {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image .tux-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    transition: var(--transition);
}

.product-card:hover .tux-visual {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

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

.product-style {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

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

.stars {
    color: var(--warning);
}

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

.product-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
}

.product-price .original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 10px;
    font-weight: 400;
}

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

.product-actions .btn {
    flex: 1;
    padding: 12px 15px;
}

.btn-compare {
    background: var(--background-alt);
    color: var(--text);
    border-color: var(--border);
}

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

.btn-compare.added {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

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

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

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

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

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

.products-table .product-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.products-table .product-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.table-compare-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
}

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

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

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

.quiz-header h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

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

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

.progress-bar {
    height: 6px;
    background: var(--background-alt);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 20%;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    display: block;
}

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

.quiz-question h3 {
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quiz-option {
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.quiz-option:hover {
    border-color: var(--accent);
    background: var(--background-alt);
}

.quiz-option.selected {
    border-color: var(--accent);
    background: rgba(201, 169, 89, 0.1);
}

.quiz-option .option-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.quiz-option .option-text {
    font-weight: 500;
    color: var(--primary);
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

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

.quiz-results h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.result-card {
    background: var(--background-alt);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.result-card .match-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

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

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

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

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

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

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

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

.slot-empty .plus-icon {
    display: block;
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 10px;
}

.slot-content {
    padding: 20px;
    width: 100%;
    text-align: center;
}

.slot-content .remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    background: var(--error);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.compare-table-wrapper {
    overflow-x: auto;
    margin-top: 30px;
}

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

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

.compare-table th {
    background: var(--primary);
    color: var(--background);
}

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

.compare-table .highlight-cell {
    background: rgba(201, 169, 89, 0.1);
    color: var(--accent);
    font-weight: 600;
}

.clear-compare {
    display: block;
    margin: 30px auto 0;
}

/* Guide Section */
.guide-section {
    padding: 80px 0;
    background: var(--background);
}

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

.guide-card {
    background: var(--background-alt);
    padding: 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

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

.guide-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.guide-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.guide-card p {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

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

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

.seo-content h2 {
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
}

.seo-text {
    color: var(--text-light);
    line-height: 1.8;
}

.seo-text p {
    margin-bottom: 20px;
}

.seo-text h3 {
    color: var(--primary);
    margin: 30px 0 15px;
}

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

.seo-text li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.seo-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
}

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

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

.footer-brand p {
    margin-top: 15px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

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

.footer-bottom {
    padding-top: 30px;
    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.85rem;
    margin-bottom: 10px;
}

.affiliate-notice {
    font-size: 0.8rem !important;
    color: rgba(255,255,255,0.4) !important;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background: var(--background);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

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

.modal-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.modal-product {
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.modal-product:hover {
    border-color: var(--accent);
}

.modal-product.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top svg {
    fill: var(--primary);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.back-to-top.hidden {
    opacity: 0;
    pointer-events: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

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

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

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

    .nav-toggle {
        display: flex;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .view-toggle {
        justify-content: center;
    }

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

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

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

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

    .tuxedo-showcase {
        flex-wrap: wrap;
        justify-content: center;
    }

    .showcase-card {
        width: 100px;
    }

    .card-image {
        width: 100px;
        height: 140px;
    }
}

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

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

    .btn {
        width: 100%;
    }

    .product-actions {
        flex-direction: column;
    }

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

/* 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(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }
.product-card:nth-child(6) { animation-delay: 0.5s; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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