/* =====================================================
   Digital Photo Frame Australia - Styles
   Modern, Clean, Responsive Design
   ===================================================== */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --white: #ffffff;
    --black: #000000;

    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --container-max: 1200px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

ul, ol {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

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;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

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

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

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

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

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

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

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

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
}

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

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
}

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

.mobile-nav a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: background 0.2s;
}

.mobile-nav a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: calc(var(--header-height) + 4rem) 0 4rem;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    overflow: hidden;
}

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

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

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

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

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

/* Hero Frame Animation */
.frame-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.digital-frame {
    position: relative;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.frame-screen {
    position: relative;
    width: 320px;
    height: 200px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--gray-900);
}

.slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.frame-label {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    font-size: 0.75rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* Features Bar */
.features-bar {
    padding: 1.5rem 0;
    background: var(--gray-900);
    color: var(--white);
}

.features-bar .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.25rem;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* Products Section */
.products-section {
    padding: 5rem 0;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--white);
    cursor: pointer;
}

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

.view-toggle {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
    background: var(--white);
    padding: 0.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.view-btn {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--gray-400);
    transition: all 0.2s;
}

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

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

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

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
}

/* Product Card */
.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.product-card.hidden {
    display: none;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    z-index: 10;
}

.product-badge.best-seller {
    background: var(--primary);
    color: var(--white);
}

.product-badge.value {
    background: var(--success);
    color: var(--white);
}

.product-badge.premium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
}

.product-badge.budget {
    background: var(--secondary);
    color: var(--white);
}

.product-image {
    padding: 2rem;
    background: var(--gray-50);
    display: flex;
    justify-content: center;
    align-items: center;
}

.frame-preview {
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.frame-preview.small {
    width: 140px;
}

.frame-preview.medium {
    width: 180px;
}

.frame-preview.large {
    width: 220px;
}

.preview-screen {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-size {
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stars {
    color: var(--accent);
    font-size: 0.875rem;
}

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

.product-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-features {
    margin-bottom: 1rem;
}

.product-features li {
    font-size: 0.8rem;
    color: var(--gray-600);
    padding: 0.25rem 0;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

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

.price-note {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.product-info .btn-primary {
    width: 100%;
    margin-bottom: 0.5rem;
}

.btn-compare {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius);
    transition: all 0.2s;
}

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

.btn-compare.active {
    border-style: solid;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* Compare Section */
.compare-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.compare-container {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-empty {
    text-align: center;
    color: var(--gray-500);
}

.compare-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Comparison Table */
.comparison-table-wrapper {
    margin-top: 2rem;
}

.clear-compare {
    margin-bottom: 1rem;
}

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

.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--white);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.comparison-table th {
    background: var(--gray-900);
    color: var(--white);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.comparison-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
}

.comparison-table td:first-child {
    font-weight: 600;
    background: var(--gray-50);
    position: sticky;
    left: 0;
}

.comparison-table tbody tr:hover {
    background: var(--gray-50);
}

.comparison-table .check {
    color: var(--success);
    font-weight: bold;
}

.comparison-table .cross {
    color: var(--gray-400);
}

/* Quiz Section */
.quiz-section {
    padding: 5rem 0;
}

.quiz-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.quiz-header {
    padding: 2.5rem;
    text-align: center;
    background: var(--gradient-primary);
    color: var(--white);
}

.quiz-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.quiz-header h2 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.quiz-header p {
    opacity: 0.9;
}

.quiz-container {
    padding: 2rem;
}

.quiz-question {
    display: none;
}

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

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

.question-number {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.quiz-question h3 {
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: grid;
    gap: 0.75rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    text-align: left;
}

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

.quiz-option.selected {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

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

.option-text {
    font-weight: 500;
}

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

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

.result-header {
    margin-bottom: 2rem;
}

.result-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.result-product {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.result-product h4 {
    margin-bottom: 0.5rem;
}

.result-product p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.retake-quiz {
    margin-top: 1rem;
}

.quiz-progress {
    padding: 0 2rem 2rem;
}

.progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* Guide Section */
.guide-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

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

.guide-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

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

.guide-card h3 {
    margin-bottom: 0.75rem;
}

.guide-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* SEO Section */
.seo-section {
    padding: 4rem 0;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
}

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

.seo-content h2 {
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.seo-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
    font-size: 1.25rem;
}

.seo-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Newsletter */
.newsletter-section {
    padding: 4rem 0;
    background: var(--gradient-primary);
}

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

.newsletter-content h2 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

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

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form .btn {
    background: var(--gray-900);
    color: var(--white);
}

.newsletter-form .btn:hover {
    background: var(--black);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: var(--gray-900);
    color: var(--gray-400);
}

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

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.7;
}

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

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

.footer-links a {
    display: block;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    font-size: 0.875rem;
}

.affiliate-disclosure {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-image {
        order: -1;
    }

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

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

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

    .features-bar .container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .feature {
        flex-shrink: 0;
    }

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

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

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

    .products-grid.list-view .product-card {
        grid-template-columns: 1fr;
    }

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

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

    .frame-screen {
        width: 260px;
        height: 162px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: calc(var(--header-height) + 2rem);
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

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

    .frame-screen {
        width: 220px;
        height: 137px;
    }
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}
