/* Basketball Hoop Australia - Styles */
/* Modern, clean design optimized for conversions */

:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8c5a;
    --secondary: #1a1a2e;
    --secondary-light: #2d2d44;
    --accent: #00d4aa;
    --text: #1a1a2e;
    --text-light: #666;
    --text-muted: #999;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border: #e0e0e0;
    --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-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
}

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

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

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

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

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

.mobile-nav {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
    flex-direction: column;
    gap: 15px;
}

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

.mobile-nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

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

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

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

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

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

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.hero-hoop-illustration {
    width: 200px;
    height: 250px;
}

.hoop-svg {
    width: 100%;
    height: 100%;
}

/* Categories */
.categories {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: -30px auto 40px;
}

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

.category-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 25px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card.active {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.category-price {
    display: inline-block;
    background: var(--bg-alt);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

/* Quiz Section */
.quiz-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

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

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

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

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 20%;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    display: block;
}

.quiz-question {
    display: none;
}

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

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

.quiz-question h3 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

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

.quiz-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 20px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

.option-icon {
    font-size: 32px;
}

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

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

.quiz-results.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.results-header {
    margin-bottom: 30px;
}

.results-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.results-header h3 {
    font-size: 28px;
    font-weight: 800;
}

.results-product {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
}

.results-product .product-card {
    box-shadow: none;
    margin: 0 auto;
    max-width: 350px;
}

#retakeQuiz {
    margin-top: 10px;
}

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

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

.products-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.products-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

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

.filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
}

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

.view-toggle {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.view-btn {
    padding: 10px 15px;
    background: var(--bg);
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.view-btn:hover {
    background: var(--bg-alt);
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

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

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

.product-image {
    position: relative;
    height: 200px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

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

.product-content {
    padding: 20px;
}

.product-type {
    display: inline-block;
    background: var(--bg-alt);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-specs {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

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

.stars {
    color: #ffc107;
    font-size: 14px;
}

.rating-count {
    font-size: 13px;
    color: var(--text-muted);
}

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

.price-current {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.price-original {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
}

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

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

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

.btn-compare:hover,
.btn-compare.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

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

.products-table-wrapper.hidden {
    display: none;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

.products-table th {
    background: var(--bg-alt);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

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

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

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

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

.table-btn {
    padding: 8px 16px;
    font-size: 13px;
}

.compare-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

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

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

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

.compare-slots {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.compare-slot {
    position: relative;
    flex: 1;
    max-width: 300px;
    min-width: 250px;
}

.compare-select {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

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

.clear-slot {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    opacity: 0;
    transition: var(--transition);
}

.compare-slot:hover .clear-slot {
    opacity: 1;
}

.compare-table-wrapper {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.compare-table-wrapper.hidden {
    display: none;
}

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

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

.compare-table th {
    background: var(--bg-alt);
    font-weight: 700;
    font-size: 14px;
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    background: var(--bg-alt);
    width: 180px;
}

.compare-table td:first-child {
    color: var(--text-light);
    font-size: 14px;
}

.compare-product-header {
    text-align: center;
}

.compare-product-image {
    font-size: 48px;
    margin-bottom: 10px;
}

.compare-product-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}

.compare-product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.compare-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.compare-empty.hidden {
    display: none;
}

.compare-check {
    color: var(--accent);
    font-weight: 700;
}

.compare-x {
    color: #e74c3c;
}

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

.guide-section .section-badge,
.guide-section .section-title {
    text-align: center;
    display: block;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.guide-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
}

.guide-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

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

.guide-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.guide-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

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

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

.seo-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text);
}

.seo-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--text);
}

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

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    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;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: var(--transition);
}

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

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

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.affiliate-disclosure {
    font-size: 12px !important;
    max-width: 700px;
    margin: 0 auto;
}

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

    .hero h1 {
        font-size: 42px;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

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

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

    .hero-visual {
        display: none;
    }

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

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

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

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

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

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

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 32px;
    }

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

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

    .section-title {
        font-size: 28px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .quiz-container {
        padding: 25px;
    }

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

    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-controls {
        width: 100%;
        justify-content: space-between;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .compare-slots {
        flex-direction: column;
        align-items: center;
    }

    .compare-slot {
        width: 100%;
        max-width: none;
    }

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

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

    .footer-brand {
        margin-bottom: 20px;
    }

    .footer-links {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .quiz-question h3 {
        font-size: 20px;
    }

    .seo-content h2 {
        font-size: 26px;
    }

    .seo-content h3 {
        font-size: 20px;
    }
}

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

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

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

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

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

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

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