/* Matcha Tea - Testy kvality
   Brand Colors: #76B82A (Matcha Green), #FFFFFF, #333333
   Primary Font: Kobenhavn Sans (náhrada: Plus Jakarta Sans)
   Secondary Font: Museo (fallback)

   CID 2021: Kobenhavn Sans ExtraBlack pro titulky, Light pro text
   Web náhrada: Plus Jakarta Sans (Google Fonts) - nejpodobnější geometrie
*/

/* Google Fonts - Plus Jakarta Sans jako náhrada za Kobenhavn Sans */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;700;800&display=swap');

/* Museo jako fallback */
@font-face {
    font-family: 'Museo';
    src: url('../fonts/MUSEO300-REGULAR.OTF') format('opentype');
    font-weight: 300;
}

@font-face {
    font-family: 'Museo';
    src: url('../fonts/MUSEO500-REGULAR.OTF') format('opentype');
    font-weight: 500;
}

@font-face {
    font-family: 'Museo';
    src: url('../fonts/MUSEO700-REGULAR.OTF') format('opentype');
    font-weight: 700;
}

:root {
    --matcha-green: #76B82A;
    --matcha-green-dark: #5a9a1e;
    --matcha-green-light: #8ed044;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9f5;
    --border-color: #e0e0e0;
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #f44336;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Museo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* Header */
header {
    background: var(--matcha-green);
    color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover {
    background: rgba(255,255,255,0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--matcha-green) 0%, var(--matcha-green-dark) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

/* Hero with background image */
.hero-with-image {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 163, 65, 0.9) 0%, rgba(74, 122, 46, 0.95) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-content h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* Stats Banner */
.stats-banner {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    min-width: 140px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s, background 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 4rem;
}

h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--matcha-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--matcha-green);
}

h3 {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--matcha-green);
}

.about-card h3 {
    color: var(--matcha-green);
}

/* Summary Cards */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.summary-card.success {
    border-top: 4px solid var(--success);
}

.summary-card.warning {
    border-top: 4px solid var(--warning);
}

.summary-card.info {
    border-top: 4px solid var(--matcha-green);
}

.summary-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--matcha-green);
}

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

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--matcha-green);
    color: var(--white);
    font-weight: 500;
    position: sticky;
    top: 0;
}

tr:hover {
    background: var(--bg-light);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-warning {
    background: #fff3e0;
    color: #ef6c00;
}

.badge-error {
    background: #ffebee;
    color: #c62828;
}

/* Product Cards - Modern Style with Images */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-grid.modern {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.product-card.with-image {
    padding: 0;
    overflow: hidden;
}

.product-card.with-image .product-content {
    padding: 1.5rem;
}

.product-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9f5 0%, #e8f5e9 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--matcha-green);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.product-card h4 {
    color: var(--matcha-green);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-stat {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: 4px;
}

.product-stat strong {
    display: block;
    color: var(--matcha-green);
}

.product-link {
    text-align: center;
    margin-top: 1rem;
}

.product-link a {
    color: var(--matcha-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.product-link a:hover {
    color: var(--matcha-green-dark);
}

/* Test Details */
.test-item {
    background: var(--bg-light);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-item:hover {
    background: #eef3ea;
}

.test-info {
    flex: 1;
}

.test-name {
    font-weight: 500;
}

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

.test-download {
    background: var(--matcha-green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.3s;
    white-space: nowrap;
}

.test-download:hover {
    background: var(--matcha-green-dark);
}

/* Comparison Section */
.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
}

.comparison-table .japan {
    background: #e8f5e9;
}

.comparison-table .china {
    background: #fff3e0;
}

.comparison-highlight {
    font-weight: 700;
    color: var(--matcha-green);
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-left: 4px solid var(--matcha-green);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.info-box h4 {
    color: var(--matcha-green);
    margin-bottom: 0.5rem;
}

.warning-box {
    background: linear-gradient(135deg, #fff3e0 0%, #fff8e1 100%);
    border-left: 4px solid var(--warning);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-box h4 {
    color: var(--warning);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--matcha-green-light);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Accordion */
.accordion {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #eef3ea;
}

.accordion-header h4 {
    margin: 0;
    color: var(--matcha-green);
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--matcha-green);
    transition: transform 0.3s;
}

.accordion.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion.active .accordion-content {
    padding: 1.5rem;
    max-height: 2000px;
}

/* Laboratory Section */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.lab-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.lab-item strong {
    display: block;
    color: var(--matcha-green);
    margin-bottom: 0.25rem;
}

.lab-item span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Product page hero */
.product-hero {
    background: linear-gradient(135deg, var(--matcha-green) 0%, var(--matcha-green-dark) 100%);
    color: var(--white);
    padding: 3rem 2rem;
}

.product-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.product-hero-image {
    flex: 0 0 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2rem;
}

.product-hero-image img {
    width: 100%;
    height: auto;
}

.product-hero-text h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.product-hero-text .product-meta {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Timeline / Test history */
.test-timeline {
    position: relative;
    padding-left: 2rem;
}

.test-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--matcha-green);
    border-radius: 3px;
}

.timeline-year {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-year::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--matcha-green);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--matcha-green);
}

.timeline-year h3 {
    color: var(--matcha-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.timeline-tests {
    display: grid;
    gap: 0.5rem;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--matcha-green);
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 500;
}

.back-link:hover {
    color: var(--matcha-green-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .hero h1,
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-with-image {
        min-height: 400px;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .stats-banner {
        gap: 1rem;
    }

    .stat-item {
        min-width: 120px;
    }

    .stat-number {
        font-size: 2rem;
    }

    main {
        padding: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    .product-image {
        height: 180px;
    }

    .test-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .product-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .product-hero-image {
        flex: 0 0 auto;
        max-width: 200px;
    }

    .product-hero-text h1 {
        font-size: 1.8rem;
    }
}

/* Print styles */
@media print {
    header, nav, .test-download, footer {
        display: none;
    }

    .hero, .hero-with-image {
        background: var(--matcha-green) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .hero-background, .hero-overlay {
        display: none;
    }
}
