/* SVITSOL Recenze - Dark Theme with Eshop Colors */
/* Colors from svitsol.cz: #AA5555 (main red) + Modern gradients */

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

:root {
    /* Eshop colors */
    --red-primary: #AA5555;
    --red-light: #CC8888;
    --red-lighter: #FFAAAA;
    --red-pale: #FFD2D2;

    /* Pink Dark theme - inspired by eshop burgundy */
    --bg-dark: #2d1b1f;
    --bg-darker: #3d2528;
    --bg-card: #4a2d32;
    --bg-card-hover: #5a3640;
    --text-light: #f8e8ed;
    --text-gray: #e8cdd4;
    --text-muted: #c9a5b0;

    /* Pink gradient - eshop colors */
    --gradient-start: #AA5555;
    --gradient-mid: #d88b9c;
    --gradient-end: #f4c7d4;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--bg-dark) 0%, #3a2228 50%, #4a2d32 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* Subtle animated gradient overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    opacity: 0.05;
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
    z-index: 0;
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Background shapes */
body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--red-primary) 0%, transparent 70%);
    opacity: 0.08;
    top: -200px;
    right: -200px;
    animation: float 20s infinite ease-in-out;
    z-index: 0;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Flash Messages */
.flash {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 9999;
    animation: slideIn 0.3s ease;
    max-width: 400px;
    backdrop-filter: blur(20px);
    font-weight: 600;
}

.flash-success {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: white;
}

.flash-danger {
    background: linear-gradient(135deg, var(--red-lighter) 0%, var(--red-primary) 100%);
    color: white;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    animation: fadeIn 0.8s ease;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--red-lighter) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    text-shadow: 0 0 60px rgba(170, 85, 85, 0.5);
    animation: slideUp 0.8s ease;
    filter: drop-shadow(0 10px 40px rgba(170, 85, 85, 0.3));
}

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

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    font-weight: 400;
    animation: slideUp 0.8s ease 0.2s both;
}

/* Main Content */
.main-content {
    padding: 40px 0 80px;
}

.homepage-content {
    background: var(--bg-card);
    border: 1px solid rgba(170, 85, 85, 0.2);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: slideUp 0.8s ease 0.4s both;
}

.homepage-content h2 {
    color: var(--red-lighter);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.homepage-content h3 {
    color: var(--red-light);
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.homepage-content p {
    margin-bottom: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Kompaktní intro */
.intro-compact {
    background: var(--bg-card);
    border: 1px solid rgba(170, 85, 85, 0.2);
    border-radius: 16px;
    padding: 20px 32px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideUp 0.8s ease 0.4s both;
}

.intro-compact p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin: 0;
}

.intro-compact strong {
    color: var(--red-lighter);
}

.intro-separator {
    color: var(--red-primary);
    margin: 0 8px;
}

/* Filters Section */
.filters-section {
    background: var(--bg-card);
    border: 1px solid rgba(170, 85, 85, 0.2);
    border-radius: 24px;
    padding: 24px 32px;
    margin-bottom: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: slideUp 0.8s ease 0.5s both;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    color: var(--red-lighter);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.source-filter-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 0;
    margin: -8px 0;
}

.source-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid rgba(170, 85, 85, 0.3);
    background: var(--bg-darker);
    color: var(--text-gray);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.source-filter-btn:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
    border-color: var(--red-primary);
    box-shadow: 0 6px 16px rgba(170, 85, 85, 0.3);
}

.source-filter-btn.active {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--gradient-mid) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(170, 85, 85, 0.5);
}

.source-filter-btn .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
}

.source-filter-btn.active .count {
    background: rgba(255, 255, 255, 0.3);
}

.source-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.source-icon.google { background: #4285F4; color: white; }
.source-icon.heureka { background: #F5A623; color: white; }
.source-icon.zbozi { background: #E53935; color: white; }
.source-icon.galerie { background: #9C27B0; color: white; }
.source-icon.eshop { background: #AA5555; color: white; }
.source-icon.email { background: #00BCD4; color: white; }

/* Product Select */
.product-select {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: 2px solid rgba(170, 85, 85, 0.3);
    background: var(--bg-darker);
    color: var(--text-light);
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-select:hover,
.product-select:focus {
    border-color: var(--red-primary);
    outline: none;
    box-shadow: 0 4px 12px rgba(170, 85, 85, 0.3);
}

.product-select option {
    background: var(--bg-darker);
    color: var(--text-light);
}

/* Add Review CTA */
.add-review-cta {
    text-align: center;
    margin-bottom: 32px;
    animation: slideUp 0.8s ease 0.6s both;
}

.btn-add-review {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--gradient-mid) 100%);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(170, 85, 85, 0.4);
}

.btn-add-review:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(170, 85, 85, 0.5);
}

.btn-add-review .btn-icon {
    font-size: 1.3rem;
}

/* Source Badges on Review Cards */
.source-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.source-badge.google { background: #4285F4; color: white; }
.source-badge.heureka { background: #F5A623; color: white; }
.source-badge.zbozi { background: #E53935; color: white; }
.source-badge.galerie { background: #9C27B0; color: white; }
.source-badge.eshop { background: #AA5555; color: white; }
.source-badge.email { background: #00BCD4; color: white; }
.source-badge.manual { background: #4CAF50; color: white; }

/* Legacy Products Filter (kept for backwards compatibility) */
.products-filter {
    background: var(--bg-card);
    border: 1px solid rgba(170, 85, 85, 0.2);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: slideUp 0.8s ease 0.6s both;
}

.products-filter h2 {
    color: var(--red-lighter);
    margin-bottom: 24px;
    font-weight: 700;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-filter-btn {
    padding: 12px 24px;
    border: 2px solid rgba(170, 85, 85, 0.3);
    background: var(--bg-darker);
    color: var(--red-lighter);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.product-filter-btn:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
    border-color: var(--red-primary);
    box-shadow: 0 8px 20px rgba(170, 85, 85, 0.3);
}

.product-filter-btn.active {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--gradient-mid) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(170, 85, 85, 0.5);
}

/* Reviews Section */
.reviews-section {
    animation: slideUp 0.8s ease 0.8s both;
}

.reviews-section h2 {
    color: var(--text-light);
    margin-bottom: 32px;
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
    text-shadow: 0 4px 12px rgba(170, 85, 85, 0.4);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid rgba(170, 85, 85, 0.2);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    animation: fadeInScale 0.5s ease both;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }
.review-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.review-card:hover {
    transform: translateY(-8px);
    border-color: var(--red-primary);
    box-shadow: 0 20px 60px rgba(170, 85, 85, 0.4);
}

.review-header {
    margin-bottom: 16px;
}

.review-rating {
    margin-bottom: 12px;
}

.star {
    color: #475569;
    font-size: 1.4rem;
}

.star.active {
    color: #fbbf24;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
}

.review-meta strong {
    color: var(--red-lighter);
    font-size: 1.15rem;
    font-weight: 700;
}

.product-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--gradient-mid) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
    box-shadow: 0 4px 12px rgba(170, 85, 85, 0.4);
}

.review-body {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.review-footer {
    border-top: 1px solid rgba(170, 85, 85, 0.2);
    padding-top: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.no-reviews {
    text-align: center;
    color: var(--text-gray);
    padding: 60px;
    font-size: 1.1rem;
    background: var(--bg-card);
    border: 1px solid rgba(170, 85, 85, 0.2);
    border-radius: 20px;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(170, 85, 85, 0.2);
    color: var(--text-gray);
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.footer a {
    color: var(--red-lighter);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--red-pale);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    /* Hero section */
    .hero {
        padding: 40px 0 30px;
    }

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

    .hero .subtitle {
        font-size: 1rem;
    }

    /* Container */
    .container {
        padding: 0 12px;
    }

    /* Main content */
    .main-content {
        padding: 20px 0 40px;
    }

    /* Intro compact */
    .intro-compact {
        padding: 16px;
        margin-bottom: 16px;
    }

    .intro-compact p {
        font-size: 0.95rem;
    }

    .intro-separator {
        display: none;
    }

    .intro-compact p {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    /* Filters section */
    .filters-section {
        padding: 16px;
        margin-bottom: 16px;
    }

    .filter-group label {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    /* Source filter buttons - WRAP on mobile */
    .source-filter-buttons {
        flex-wrap: wrap;
        gap: 6px;
    }

    .source-filter-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    .source-filter-btn .count {
        padding: 1px 6px;
        font-size: 0.7rem;
    }

    .source-icon {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }

    /* Add review CTA */
    .add-review-cta {
        margin-bottom: 24px;
    }

    .btn-add-review {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    /* Reviews section */
    .reviews-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    /* Reviews grid - single column */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Review cards */
    .review-card {
        padding: 20px;
        border-radius: 16px;
    }

    .review-header {
        margin-bottom: 12px;
    }

    .star {
        font-size: 1.2rem;
    }

    .review-meta strong {
        font-size: 1rem;
    }

    .product-badge {
        display: block;
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }

    .review-body {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Homepage content */
    .homepage-content,
    .products-filter {
        padding: 20px;
    }

    .product-list {
        justify-content: center;
    }

    .product-filter-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    /* No reviews */
    .no-reviews {
        padding: 40px 20px;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 30px 0;
        margin-top: 40px;
    }

    /* Flash messages */
    .flash {
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .source-filter-btn {
        padding: 5px 8px;
        font-size: 0.7rem;
    }

    .source-icon {
        display: none;
    }

    .review-card {
        padding: 16px;
    }
}
