/* CSS Reset a základní proměnné */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Moderní červená paleta */
    --primary-red: #e63946;
    --primary-red-dark: #c5303e;
    --primary-red-light: #ff6b7a;
    --accent-red: #a62834;
    --accent-red-light: #d63f4f;
    
    /* Neutral colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Light theme */
    --background: var(--white);
    --surface: var(--gray-50);
    --surface-hover: var(--gray-100);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-tertiary: var(--gray-400);
    --border: var(--gray-200);
    --border-light: var(--gray-100);
    
    /* Nav specific colors */
    --nav-bg: rgba(255, 255, 255, 0.9);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.95);
    --nav-border: rgba(226, 232, 240, 0.8);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Borders & Radius */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-sm: 8px;
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --nav-height: 64px;
    --container-padding: 1.5rem;
}

/* Dark theme */
[data-theme="dark"] {
    --background: var(--gray-900);
    --surface: var(--gray-800);
    --surface-hover: var(--gray-700);
    --text-primary: var(--gray-50);
    --text-secondary: var(--gray-300);
    --text-tertiary: var(--gray-500);
    --border: var(--gray-700);
    --border-light: var(--gray-600);
    
    /* Nav specific colors for dark theme */
    --nav-bg: rgba(15, 23, 42, 0.9);
    --nav-bg-scrolled: rgba(15, 23, 42, 0.95);
    --nav-border: rgba(51, 65, 85, 0.8);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    transition: var(--transition);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* Now Bar Navigation - Opravený tmavý režim */
.now-bar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-border);
    z-index: 1000;
    transition: var(--transition);
}

.now-bar.scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: var(--shadow-lg);
}

.now-container {
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.now-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-red);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    white-space: nowrap;
}

.brand-year {
    font-size: clamp(0.7rem, 2vw, 0.75rem);
    font-weight: 500;
    color: var(--primary-red);
    line-height: 1;
}

.now-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--surface);
    border-radius: var(--border-radius-xl);
    padding: 0.25rem;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: clamp(0.4rem, 1.5vw, 0.5rem) clamp(0.8rem, 3vw, 1.25rem);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: clamp(0.8rem, 2vw, 0.875rem);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--primary-red);
    background: var(--surface-hover);
}

.nav-item.active {
    color: var(--primary-red);
    background: var(--background);
    box-shadow: var(--shadow-sm);
}

.nav-indicator {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-red);
    border-radius: 1px;
    transition: var(--transition);
}

.nav-item.active .nav-indicator {
    width: 20px;
}

.now-actions {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    flex-shrink: 0;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem 1rem;
    min-width: clamp(160px, 25vw, 240px);
    transition: var(--transition);
}

.search-container:focus-within {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.search-icon {
    color: var(--text-tertiary);
    font-size: 18px;
    flex-shrink: 0;
}

.search-container input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    color: var(--text-primary);
    font-size: clamp(0.8rem, 2vw, 0.875rem);
    min-width: 0;
}

.search-container input::placeholder {
    color: var(--text-tertiary);
}

.theme-btn,
.user-avatar {
    width: clamp(36px, 8vw, 40px);
    height: clamp(36px, 8vw, 40px);
    border-radius: var(--border-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.theme-btn:hover,
.user-avatar:hover {
    background: var(--surface-hover);
    color: var(--primary-red);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--nav-border);
    padding: 0.75rem;
    z-index: 1000;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    min-width: 60px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary-red);
}

.mobile-nav-item .material-icons-round {
    font-size: 24px;
    margin-bottom: 0.25rem;
}

/* Hero Section */
.hero-main {
    padding: calc(var(--nav-height) + clamp(2rem, 6vw, 3rem)) 0 clamp(2rem, 6vw, 4rem);
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 8vw, 4rem);
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary-red);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-xl);
    font-size: clamp(0.8rem, 2vw, 0.875rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(230, 57, 70, 0.2);
    width: fit-content;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-primary {
    display: block;
    color: var(--text-primary);
}

.title-secondary {
    display: block;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 2.5rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.stat-number {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1;
}

.stat-label {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 2rem;
    background: var(--border);
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: clamp(0.75rem, 2vw, 0.875rem) clamp(1.25rem, 4vw, 1.75rem);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.8rem, 2vw, 0.875rem);
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    min-width: 160px;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-2px);
}

/* Product Showcase */
.hero-visual {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 400px;
}

.product-showcase {
    position: relative;
    height: clamp(300px, 50vw, 400px);
    width: 100%;
}

.product-card.featured {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.product-card.featured:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    width: 100%;
    height: clamp(150px, 25vw, 200px);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.product-info h3 {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    color: #fbbf24;
    font-size: clamp(0.8rem, 2vw, 0.875rem);
}

.rating-score {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 2vw, 0.875rem);
}

.floating-products {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-card {
    position: absolute;
    width: clamp(50px, 12vw, 60px);
    height: clamp(50px, 12vw, 60px);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: clamp(20px, 5vw, 24px);
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.float-card:nth-child(1) {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.float-card:nth-child(2) {
    top: 60%;
    right: -10%;
    animation-delay: 2s;
}

.float-card:nth-child(3) {
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
}

/* Sections */
.section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.8rem, 2vw, 0.875rem);
    transition: var(--transition);
    white-space: nowrap;
}

.view-all-link:hover {
    color: var(--primary-red-dark);
    transform: translateX(4px);
}

/* Quick Categories */
.quick-categories {
    padding: clamp(3rem, 8vw, 4rem) 0;
    background: var(--surface);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
}

.category-item {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: clamp(1.5rem, 4vw, 2rem);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-red);
    transform: scaleX(0);
    transition: var(--transition);
}

.category-item:hover::before {
    transform: scaleX(1);
}

.category-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.category-icon {
    width: clamp(56px, 15vw, 64px);
    height: clamp(56px, 15vw, 64px);
    background: rgba(230, 57, 70, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: clamp(24px, 6vw, 28px);
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.category-item:hover .category-icon {
    background: var(--primary-red);
    color: white;
    transform: scale(1.1);
}

.category-item h3 {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-item p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: clamp(0.8rem, 2vw, 0.875rem);
}

.category-count {
    color: var(--primary-red);
    font-weight: 500;
    font-size: clamp(0.8rem, 2vw, 0.875rem);
}

/* Reviews & Deals Preview */
.reviews-preview,
.deals-preview {
    padding: clamp(3rem, 8vw, 4rem) 0;
}

.deals-preview {
    background: var(--surface);
}

.reviews-grid,
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
}

.review-card,
.deal-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    cursor: pointer;
}

.review-card:hover,
.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.review-image {
    width: 100%;
    height: clamp(150px, 30vw, 200px);
    overflow: hidden;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.review-card:hover .review-image img {
    transform: scale(1.05);
}

.review-content {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.review-content h3 {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.review-date {
    color: var(--text-secondary);
    font-size: clamp(0.75rem, 2vw, 0.875rem);
}

/* Deal Cards */
.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1rem, 3vw, 1.5rem);
    border-bottom: 1px solid var(--border);
}

.deal-platform {
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary-red);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 500;
}

.deal-price {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-red);
}

.deal-content {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.deal-content h3 {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.deal-meta {
    color: var(--text-secondary);
    font-size: clamp(0.75rem, 2vw, 0.875rem);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: clamp(2rem, 6vw, 3rem) 0 clamp(1rem, 3vw, 1.5rem);
    margin-bottom: env(safe-area-inset-bottom, 0);
}

[data-theme="dark"] .footer {
    background: var(--gray-800);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(2rem, 6vw, 3rem);
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand h3 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    font-size: clamp(1.1rem, 3vw, 1.25rem);
}

.footer-brand p {
    font-size: clamp(0.8rem, 2vw, 0.875rem);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
}

.link-group h4 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.link-group a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    font-size: clamp(0.8rem, 2vw, 0.875rem);
}

.link-group a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    color: var(--gray-500);
    flex-wrap: wrap;
    gap: 1rem;
}

.theme-toggle-footer {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: var(--border-radius-sm);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-400);
    flex-shrink: 0;
}

.theme-toggle-footer:hover {
    background: var(--primary-red);
    color: white;
}

/* Page specific styles */
.page-header {
    padding: calc(var(--nav-height) + 2rem) 0 2rem;
    background: var(--surface);
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.filters-section {
    padding: 2rem 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.filters-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    flex: 1;
    min-width: 200px;
}

.filter-group .material-icons-round {
    color: var(--text-tertiary);
    font-size: 20px;
}

.filter-group input,
.filter-group select {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    color: var(--text-primary);
    font-size: 0.875rem;
    min-width: 0;
}

.main-content {
    padding: clamp(2rem, 6vw, 3rem) 0;
    min-height: 60vh;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
}

.top5-list {
    max-width: 800px;
    margin: 0 auto;
}

.top5-item {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 1.5rem);
    padding: clamp(1rem, 3vw, 1.5rem);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.top5-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.top5-rank {
    width: clamp(40px, 10vw, 48px);
    height: clamp(40px, 10vw, 48px);
    background: var(--primary-red);
    color: white;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    flex-shrink: 0;
}

.top5-info h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.top5-info p {
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 2vw, 0.875rem);
}

/* Animations */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    33% { 
        transform: translateY(-15px) rotate(2deg); 
    }
    66% { 
        transform: translateY(8px) rotate(-1deg); 
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 56px;
        --container-padding: 1rem;
    }
    
    .now-nav {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .hero-main {
        padding-bottom: calc(env(safe-area-inset-bottom, 0) + 80px);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding-bottom: calc(env(safe-area-inset-bottom, 0) + 80px);
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
}

/* Print styles */
@media print {
    .now-bar,
    .mobile-nav,
    .footer {
        display: none !important;
    }
    
    .hero-main {
        padding-top: 2rem;
    }
    
    .main-content {
        padding-top: 1rem;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-secondary: #000000;
    }
    
    [data-theme="dark"] {
        --border: #ffffff;
        --text-secondary: #ffffff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Animované pozadí místo floating cards */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.animated-bg {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 50%, var(--surface) 100%);
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(166, 40, 52, 0.05));
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 25%;
    animation-delay: 4s;
}

.shape-4 {
    width: 80px;
    height: 80px;
    top: 30%;
    left: 20%;
    animation-delay: 6s;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(230, 57, 70, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(230, 57, 70, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 50%;
    animation: particleFloat 12s linear infinite;
}

.particle:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 40%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    left: 60%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    left: 80%;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    left: 10%;
    animation-delay: 8s;
}

/* Animace pro vyhledávání */
.search-container {
    position: relative;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.search-container.expanded {
    width: 300px !important;
    min-width: 300px !important;
}

.search-container input {
    transition: all 0.3s ease;
}

.search-container.expanded input {
    padding-left: 3rem;
    padding-right: 1rem;
}

.theme-btn {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-btn.hidden {
    transform: translateX(100px);
    opacity: 0;
}

/* Mobilní responzivní úpravy */
@media (max-width: 768px) {
    .now-container {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }
    
    .brand-text {
        display: none;
    }
    
    .brand-icon {
        width: 32px;
        height: 32px;
    }
    
    .brand-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .search-container {
        min-width: 120px;
        width: 120px;
    }
    
    .search-container input {
        font-size: 0.8rem;
        padding: 0.4rem 0.3rem 0.4rem 2rem;
    }
    
    .search-icon {
        font-size: 16px;
    }
    
    .theme-btn,
    .user-avatar {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .theme-btn .material-icons-round,
    .user-avatar .material-icons-round {
        font-size: 18px;
    }
    
    .now-actions {
        gap: 0.5rem;
    }
    
    /* Mobilní animace pro vyhledávání */
    .search-container.expanded {
        width: 200px !important;
        min-width: 200px !important;
    }
}

@media (max-width: 480px) {
    .now-container {
        padding: 0 0.5rem;
    }
    
    .search-container {
        min-width: 100px;
        width: 100px;
    }
    
    .search-container.expanded {
        width: 160px !important;
        min-width: 160px !important;
    }
    
    .search-container input {
        font-size: 0.75rem;
        padding: 0.3rem 0.2rem 0.3rem 1.8rem;
    }
    
    .theme-btn,
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .theme-btn .material-icons-round,
    .user-avatar .material-icons-round {
        font-size: 16px;
    }
}

/* Animace */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    33% { 
        transform: translateY(-20px) rotate(5deg); 
    }
    66% { 
        transform: translateY(10px) rotate(-3deg); 
    }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Ikony pro kategorie a platformy */
.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.platform-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.deal-platform-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-platform-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Footer úpravy pro ikonu */
.footer-brand .brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* OPRAVENÉ STYLY PRO HERO SEKCI */
.hero-main {
    position: relative;
    padding: calc(var(--nav-height) + clamp(2rem, 6vw, 3rem)) 0 clamp(2rem, 6vw, 4rem);
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

/* Zlepšené responzivní chování pro hero statistiky */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 2.5rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .hero-stats {
    background: rgba(30, 41, 59, 0.9);
}

/* Opravené mobilní zobrazení pro hero akce */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-item {
        min-width: 100px;
    }
}

/* DEBUG STYLY PRO TESTOVÁNÍ TMAVÉHO REŽIMU */
[data-theme="dark"] {
    --debug-border: 2px solid #ff0000; /* Pro debug - odstraňte později */
}

/* Zajištění že theme toggle je viditelný */
.theme-btn {
    position: relative;
    z-index: 10;
}

.theme-btn:hover {
    background: var(--surface-hover) !important;
    color: var(--primary-red) !important;
}

/* Zajištění správného zobrazení v tmavém režimu */
[data-theme="dark"] .hero-badge {
    background: rgba(230, 57, 70, 0.2);
    border-color: rgba(230, 57, 70, 0.3);
}

[data-theme="dark"] .btn-secondary {
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--surface);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* Oprava pro select elementy v tmavém režimu */
.filter-group select {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

/* Specifické styly pro tmavý režim */
[data-theme="dark"] .filter-group select {
    background: var(--surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
}

[data-theme="dark"] .filter-group select option {
    background: var(--surface) !important;
    color: var(--text-primary) !important;
}

/* Fallback pro různé prohlížeče */
[data-theme="dark"] select {
    background-color: var(--surface) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] select option {
    background-color: var(--surface) !important;
    color: var(--text-primary) !important;
}

/* Webkit specifické styly */
[data-theme="dark"] select::-webkit-scrollbar {
    width: 8px;
}

[data-theme="dark"] select::-webkit-scrollbar-track {
    background: var(--surface);
}

[data-theme="dark"] select::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* Focus stavy */
[data-theme="dark"] .filter-group select:focus {
    border-color: var(--primary-red) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1) !important;
}

/* Hover stavy */
[data-theme="dark"] .filter-group select:hover {
    background: var(--surface-hover) !important;
}

/* Pro Windows specifické opravy */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    [data-theme="dark"] select {
        background: #1e293b !important;
        color: #f8fafc !important;
    }
    
    [data-theme="dark"] select option {
        background: #1e293b !important;
        color: #f8fafc !important;
    }
}

/* Pro starší prohlížeče */
[data-theme="dark"] select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Pro Firefox */
@-moz-document url-prefix() {
    [data-theme="dark"] select {
        background: var(--surface) !important;
        color: var(--text-primary) !important;
    }
    
    [data-theme="dark"] select option {
        background: var(--surface) !important;
        color: var(--text-primary) !important;
    }
}

/* Styly pro loading, error a no-data stavy */
.loading, .error, .no-data {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.loading {
    color: var(--text-secondary);
    background: var(--surface);
}

.error {
    color: var(--primary-red);
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
}

.no-data {
    color: var(--text-tertiary);
    background: var(--surface);
    border: 1px solid var(--border);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Placeholder obrázek fallback */
img[src*="placeholder.jpg"] {
    background: var(--surface);
    border: 1px solid var(--border);
}
