/* ==========================================================================
   Ear Piercing Guide - Australia 2026
   Modern, elegant design with excellent UX
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Reset
   -------------------------------------------------------------------------- */
:root {
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --primary-light: #A78BFA;
    --secondary: #F472B6;
    --accent: #FCD34D;
    --dark: #1F2937;
    --dark-light: #374151;
    --gray: #6B7280;
    --gray-light: #9CA3AF;
    --light: #F3F4F6;
    --white: #FFFFFF;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --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-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
}

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

ul {
    list-style: none;
}

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

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

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 12px;
}

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

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
    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 rgba(0,0,0,0.05);
}

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

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

.logo-icon {
    font-size: 1.75rem;
    color: var(--primary);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
}

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

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

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

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

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

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

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

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

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

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

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

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

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

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    padding: 140px 24px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FAF5FF 0%, #FDF2F8 50%, #FEF3C7 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 32px;
}

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

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

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

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

/* Hero Visual - Ear Diagram */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ear-diagram {
    position: relative;
    width: 300px;
    height: 400px;
}

.ear-svg {
    width: 100%;
    height: 100%;
    color: var(--primary);
}

.ear-outline {
    stroke-dasharray: 600;
    animation: drawEar 2s ease-out forwards;
}

@keyframes drawEar {
    from { stroke-dashoffset: 600; }
    to { stroke-dashoffset: 0; }
}

.piercing-point {
    fill: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
    animation: pulse 2s ease-in-out infinite;
}

.piercing-point:hover {
    fill: var(--primary);
    r: 10;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.piercing-tooltip {
    position: absolute;
    background: var(--dark);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.piercing-tooltip.visible {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Products Section
   -------------------------------------------------------------------------- */
.products-section {
    padding: 100px 0;
    background: var(--white);
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--light);
    border-radius: var(--radius-lg);
}

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

.filter-group label {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.875rem;
}

.filter-group select {
    padding: 10px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: var(--white);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.view-btn {
    padding: 10px;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
}

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

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

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

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

.product-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #F3E8FF 0%, #FCE7F3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--gradient);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.compare-checkbox {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    accent-color: var(--primary);
    cursor: pointer;
}

.product-content {
    padding: 20px;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

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

.product-type,
.product-material {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--light);
    border-radius: 20px;
    color: var(--gray);
}

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

.stars {
    color: var(--accent);
    letter-spacing: 2px;
}

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

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.product-price .currency {
    font-size: 1rem;
    font-weight: 500;
}

.product-link {
    padding: 10px 20px;
    background: var(--gradient);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
}

.product-link:hover {
    box-shadow: var(--shadow-lg);
}

/* Product Table */
.product-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

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

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

.product-table tr:hover {
    background: #FAFAFA;
}

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

.table-product-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #F3E8FF 0%, #FCE7F3 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.hidden {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Quiz Section
   -------------------------------------------------------------------------- */
.quiz-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #FAF5FF 0%, #FDF2F8 100%);
}

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

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

.quiz-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

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

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

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

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 20%;
}

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

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

.quiz-question h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--dark);
    text-align: center;
}

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

.quiz-option {
    padding: 16px 24px;
    background: var(--light);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.quiz-option:hover {
    border-color: var(--primary-light);
    background: #F5F3FF;
}

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

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

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

.quiz-results h3 {
    font-size: 2rem;
    margin-bottom: 32px;
    color: var(--primary);
}

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

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

.compare-area {
    margin-bottom: 40px;
}

.compare-placeholder {
    text-align: center;
    padding: 60px;
    background: var(--light);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-light);
}

.compare-placeholder p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.compare-count {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

.compare-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.compare-table th,
.compare-table td {
    padding: 20px;
    text-align: center;
    border: 1px solid var(--light);
    min-width: 200px;
}

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

.compare-table td:first-child,
.compare-table th:first-child {
    background: #FAFAFA;
    font-weight: 600;
    text-align: left;
    min-width: 150px;
}

.compare-product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.compare-product-icon {
    font-size: 3rem;
}

.compare-remove-btn {
    padding: 4px 12px;
    background: var(--error);
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.compare-remove-btn:hover {
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Guide Section
   -------------------------------------------------------------------------- */
.guide-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #FAF5FF 0%, #FEF3C7 100%);
}

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

.guide-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

.guide-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.guide-card ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-card li {
    color: var(--gray);
    padding-left: 16px;
    position: relative;
}

.guide-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   SEO Content Section
   -------------------------------------------------------------------------- */
.seo-content {
    padding: 80px 0;
    background: var(--white);
    border-top: 1px solid var(--light);
}

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

.seo-text h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--dark);
}

.seo-text h3 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
    color: var(--dark);
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--gray-light);
    margin-top: 16px;
    max-width: 300px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
}

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

.footer-links a {
    color: var(--gray-light);
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--dark-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--gray-light);
    font-size: 0.875rem;
}

.affiliate-disclosure {
    font-style: italic;
}

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

    .hero-content {
        max-width: 100%;
    }

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

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

    .hero-visual {
        margin-top: 48px;
    }

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

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

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

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

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

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

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

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

    .filter-group select {
        width: 100%;
    }

    .view-toggle {
        margin-left: 0;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .quiz-container {
        padding: 24px;
    }

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

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .btn {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   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; }

/* Scroll reveal */
.guide-card,
.quiz-container {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
