/* Modern AI Pulse Design - Inspired by Code Wiki */

:root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #0a0e27;
    --dark-card: #13182e;
    --dark-hover: #1a2035;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --border-color: #2d3748;
    --accent-purple: #667eea;
    --accent-pink: #f5576c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.8;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover {
    color: var(--text-primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Search Toggle Button */
.search-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.search-toggle:hover {
    border-color: #6B8AFF;
    color: #6B8AFF;
    transform: scale(1.1);
}

.desktop-search {
    display: flex;
}

.mobile-search {
    display: none;
}

@media (max-width: 768px) {
    .desktop-search {
        display: none;
    }
    
    .mobile-search {
        display: flex;
    }
}

/* Search Bar */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 35, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #6B8AFF 0%, #9D6FFF 50%, #FF6FCF 100%) 1;
    padding: 1.5rem 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
}

.search-bar.active {
    max-height: 500px;
    opacity: 1;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    transition: border-color 0.3s;
}

.search-input-wrapper:focus-within {
    border-color: #6B8AFF;
}

.search-input-wrapper .search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.search-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    flex-shrink: 0;
}

.search-close:hover {
    color: var(--text-primary);
}

.search-results {
    margin-top: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #6B8AFF;
    transform: translateX(5px);
}

.search-result-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.search-result-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.search-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Hero Section - Fullwidth Trending Article */
.hero-fullwidth {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(10, 14, 39, 0.5) 0%, 
        rgba(102, 126, 234, 0.35) 50%,
        rgba(118, 75, 162, 0.45) 100%
    );
    z-index: 1;
}

.hero-trending-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 4rem 0;
}

.trending-badge {
    display: inline-block;
    background: rgba(245, 87, 108, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(245, 87, 108, 0.4);
}

.hero-trending-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8), 0 4px 60px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.02em;
}

.hero-trending-perex {
    font-size: 1.35rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7), 0 4px 40px rgba(0, 0, 0, 0.5);
}

.hero-trending-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-cta-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

/* Fallback Hero (no articles) */
.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 87, 108, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Trending Section */
.trending-section {
    background: var(--dark-card);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trending-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.trending-article-card {
    background: var(--dark-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    text-decoration: none;
    display: block;
}

.trending-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
    border-color: var(--accent-purple);
}

.trending-article-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.trending-article-image img,
.trending-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.trending-article-card:hover .trending-article-image img {
    transform: scale(1.1);
}

.trending-views {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.75);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.trending-article-info {
    padding: 1.5rem;
}

.trending-article-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.trending-category {
    font-size: 0.85rem;
    color: var(--accent-purple);
    font-weight: 500;
}

.trending-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.trend-tag {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent-purple);
    transition: all 0.3s;
}

.trend-tag:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* Featured Article */
.featured-article {
    margin: 4rem 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    background: var(--dark-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-grid:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-grid:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--gradient-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
    line-height: 1.2;
}

.featured-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: background-size 0.3s;
    background: linear-gradient(to right, var(--accent-purple), var(--accent-pink));
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
}

.featured-title a:hover {
    background-size: 100% 2px;
}

.featured-perex {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    align-self: flex-start;
}

.read-more-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Latest Articles Grid */
.latest-articles {
    margin: 4rem 0;
}

.category-icon {
    filter: grayscale(1) brightness(5);
    display: inline-block;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: var(--accent-purple);
}

.article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-body {
    padding: 1.75rem;
}

.article-meta-small {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.article-meta-small .date {
    color: var(--text-muted);
}

.article-meta-small .categories {
    color: var(--accent-purple);
    font-weight: 500;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: var(--accent-purple);
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--dark-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin: 4rem 0;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Footer */
.site-footer {
    background: var(--dark-card);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent-purple);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: var(--text-secondary);
}

.footer-legal-links .separator {
    color: var(--border-color);
    opacity: 0.5;
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--text-secondary);
}

/* Legal Pages */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #6B8AFF 0%, #9D6FFF 50%, #FF6FCF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-page .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-page section {
    margin-bottom: 2.5rem;
}

.legal-page h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-page h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.legal-page p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-page ul, .legal-page ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-page a {
    color: #6B8AFF;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.legal-page a:hover {
    color: #9D6FFF;
    border-bottom-color: #9D6FFF;
}

.legal-page strong {
    color: var(--text-primary);
    font-weight: 600;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cookie-table th {
    background: rgba(107, 138, 255, 0.1);
    color: var(--text-primary);
    font-weight: 600;
}

.cookie-table td {
    color: var(--text-secondary);
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 1rem;
    }
    
    .legal-page h1 {
        font-size: 2rem;
    }
    
    .legal-page h2 {
        font-size: 1.5rem;
    }
    
    .cookie-table {
        font-size: 0.85rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-trending-title {
        font-size: 2.5rem;
    }
    
    .hero-trending-perex {
        font-size: 1.1rem;
    }
    
    .hero-trending-meta {
        gap: 1rem;
    }
    
    .hero-fullwidth {
        min-height: 500px;
    }
    
    .trending-articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        padding: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-trending-title {
        font-size: 2rem;
    }
    
    .hero-trending-perex {
        font-size: 1rem;
    }
    
    .hero-trending-content {
        padding: 3rem 0;
    }
    
    .hero-fullwidth {
        min-height: 450px;
    }
    
    .trending-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-cta-btn {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
    
    .trending-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* ============================================
   HERO FULLWIDTH LAYOUT - Presne ako na obrázku
   ============================================ */

.hero-fullwidth-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #0a0e27;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Background Image Layer - z-index: 1 */
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Gradient Overlay - z-index: 2 */
.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(10, 14, 39, 0.92) 0%,
        rgba(10, 14, 39, 0.75) 35%,
        rgba(10, 14, 39, 0.5) 55%,
        rgba(10, 14, 39, 0.3) 100%
    );
    z-index: 2;
}

.hero-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

/* Ľavá strana - Hlavný nadpis s gradientom */
.hero-left {
    padding-right: 2rem;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(245, 87, 108, 0.4);
}

.hero-main-heading {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-main-heading.hero-heading-medium {
    font-size: 3.5rem;
}

.hero-main-heading.hero-heading-small {
    font-size: 2.8rem;
}

.hero-text-white {
    color: #ffffff;
}

.hero-text-gradient {
    background: linear-gradient(135deg, #4c6ef5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text-gradient-pink {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-primary-hero {
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
}

.btn-primary-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(34, 211, 238, 0.5);
}

.btn-secondary-hero {
    background: transparent;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-gradient-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    border: 3px solid transparent;
    background-image: 
        linear-gradient(var(--dark-bg), var(--dark-bg)),
        linear-gradient(135deg, #6B8AFF 0%, #9D6FFF 50%, #FF6FCF 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
}

.btn-gradient-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 111, 255, 0.4);
    background-image: 
        linear-gradient(135deg, rgba(107, 138, 255, 0.1), rgba(157, 111, 255, 0.1)),
        linear-gradient(135deg, #6B8AFF 0%, #9D6FFF 50%, #FF6FCF 100%);
}

/* Pravá strana - Photo Grid Mozaika */
.hero-right {
    position: relative;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 120px);
    gap: 0.5rem;
    height: 100%;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.grid-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Rôzne veľkosti pre mozaikový efekt */
.grid-item-1 { grid-column: span 1; grid-row: span 2; }
.grid-item-2 { grid-column: span 2; grid-row: span 1; }
.grid-item-3 { grid-column: span 1; grid-row: span 1; }
.grid-item-4 { grid-column: span 1; grid-row: span 1; }
.grid-item-5 { grid-column: span 2; grid-row: span 2; }
.grid-item-6 { grid-column: span 1; grid-row: span 1; }
.grid-item-7 { grid-column: span 2; grid-row: span 2; }
.grid-item-8 { grid-column: span 1; grid-row: span 2; }
.grid-item-9 { grid-column: span 1; grid-row: span 2; }

.grid-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    padding: 1rem;
    display: flex;
    align-items: flex-end;
    min-height: 60%;
}

.grid-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Väčšie kartičky = väčší text */
.grid-item-2 .grid-title,
.grid-item-5 .grid-title,
.grid-item-7 .grid-title {
    font-size: 1.1rem;
    -webkit-line-clamp: 4;
}

.grid-item-1 .grid-title,
.grid-item-8 .grid-title,
.grid-item-9 .grid-title {
    font-size: 1rem;
}

.hero-main {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 600px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.hero-main-link {
    display: block;
    text-decoration: none;
    height: 100%;
}

.hero-main-image {
    position: relative;
    height: 100%;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    transition: transform 0.6s ease;
}

.hero-main:hover .hero-main-image {
    transform: scale(1.02);
}

.hero-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(10, 14, 39, 0.98) 0%,
        rgba(10, 14, 39, 0.85) 40%,
        rgba(10, 14, 39, 0.4) 70%,
        transparent 100%
    );
    padding: 3rem 2.5rem;
    z-index: 2;
}

.hero-main-content {
    max-width: 100%;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(245, 87, 108, 0.4);
}

.hero-main-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

.hero-main:hover .hero-main-title {
    color: #667eea;
}

.hero-main-perex {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.hero-main-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-main-meta .meta-item {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* Trending Articles Grid (Right Side) */
.hero-trending {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem;
}

.trending-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 190px;
    display: block;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.trending-card:hover {
    transform: translateX(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
    border-color: var(--accent-purple);
}

.trending-card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    transition: transform 0.5s;
}

.trending-card:hover .trending-card-image {
    transform: scale(1.05);
}

.trending-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(10, 14, 39, 0.98) 0%,
        rgba(10, 14, 39, 0.75) 60%,
        transparent 100%
    );
    padding: 1.5rem;
    z-index: 2;
}

.trending-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.trending-card-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */

/* Mobile Hamburger Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 10px;
    height: 60px;
    background: linear-gradient(135deg, #6B8AFF 0%, #9D6FFF 50%, #FF6FCF 100%);
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 6px;
    z-index: 2000;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 60px 0 0 60px;
    box-shadow: -4px 0 20px rgba(107, 138, 255, 0.5);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    box-shadow: -6px 0 30px rgba(157, 111, 255, 0.7);
    width: 70px;
}

.mobile-menu-toggle:active {
    width: 65px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-4.5px) rotate(-45deg);
}

/* Mobile Menu Container */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1500;
    pointer-events: none;
}

.mobile-menu.active {
    pointer-events: auto;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(10 14 39 / 24%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu.active .mobile-menu-overlay {
    opacity: 1;
}

/* Semi-Circle Menu */
.mobile-menu-semicircle {
    position: fixed;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 450px;
    pointer-events: none;
    z-index: 1600;
}

.menu-items-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mobile-menu.active .menu-items-container {
    opacity: 1;
    pointer-events: auto;
}

.menu-item {
 display: block;
    padding: 18px 59px 18px 25px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    position: absolute;
    left: 0;
    opacity: 0;
    pointer-events: auto;
    clip-path: polygon(15% 0%, 100% 0%, 75% 100%, 0% 100%);
    box-shadow: none;
    transform-origin: right center;
    transition: all 0.3s 
cubic-bezier(0.4, 0.0, 0.2, 1);
    width: 165px;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #6B8AFF 0%, #9D6FFF 50%, #FF6FCF 100%);
}

.mobile-menu.active .menu-item {
    opacity: 1;
}

/* Position items in tight semicircle - vertical stack with slight curve */
.menu-item:nth-child(1) {
    top: calc(50% - 135px);
    left: 25px;
    transform: translateY(-50%) rotate(8deg);
    transition-delay: 0.05s;
    z-index: 1;
}

.menu-item:nth-child(2) {
    top: calc(50% - 90px);
    left: 15px;
    transform: translateY(-50%) rotate(5deg);
    transition-delay: 0.08s;
    z-index: 2;
}

.menu-item:nth-child(3) {
    top: calc(50% - 45px);
    left: 8px;
    transform: translateY(-50%) rotate(3deg);
    transition-delay: 0.11s;
    z-index: 3;
}

.menu-item:nth-child(4) {
    top: 50%;
    left: 5px;
    transform: translateY(-50%) rotate(0deg);
    transition-delay: 0.14s;
    z-index: 4;
}

.menu-item:nth-child(5) {
    top: calc(50% + 45px);
    left: 8px;
    transform: translateY(-50%) rotate(-3deg);
    transition-delay: 0.17s;
    z-index: 3;
}

.menu-item:nth-child(6) {
    top: calc(50% + 90px);
    left: 15px;
    transform: translateY(-50%) rotate(-5deg);
    transition-delay: 0.20s;
    z-index: 2;
}

.menu-item:nth-child(7) {
    top: calc(50% + 135px);
    left: 25px;
    transform: translateY(-50%) rotate(-8deg);
    transition-delay: 0.23s;
    z-index: 1;
}

.menu-item:nth-child(8) {
    top: calc(50% + 180px);
    left: 35px;
    transform: translateY(-50%) rotate(-10deg);
    transition-delay: 0.26s;
    z-index: 0;
}

.menu-item:nth-child(9) {
    top: calc(50% - 180px);
    left: 35px;
    transform: translateY(-50%) rotate(10deg);
    transition-delay: 0.02s;
    z-index: 0;
}

.mobile-menu:not(.active) .menu-item {
    transform: translateY(-50%) translateX(-150px) rotate(0deg) scale(0.3);
    opacity: 0;
}

.menu-item:hover {
    background: rgba(107, 138, 255, 0.1);
    border-image: linear-gradient(135deg, #95A5FF 0%, #BE95FF 50%, #FF95CF 100%) 1;
    box-shadow: 0 0 20px rgba(157, 111, 255, 0.4);
    filter: brightness(1.3);
    z-index: 100 !important;
}

.menu-item:active {
    transform: translateY(-50%) rotate(var(--rotation, 0deg)) scale(0.95);
}

/* ============================================
   RESPONSIVE DESIGN FOR HERO LAYOUT
   ============================================ */

@media (max-width: 1200px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-main-heading {
        font-size: 3.5rem;
    }
    
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 150px);
    }
    
    .grid-item-5,
    .grid-item-7 {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 968px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-main {
        min-height: 500px;
    }
    
    .hero-main-image {
        min-height: 500px;
    }
    
    .hero-trending {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1fr;
    }
    
    .trending-card {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-content-wrapper {
        padding: 0 1.5rem;
        grid-template-columns: 1fr;
    }
    
    .hero-main-heading {
        font-size: 2.5rem;
    }
    
    .hero-main-heading.hero-heading-medium {
        font-size: 2rem;
    }
    
    .hero-main-heading.hero-heading-small {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary-hero,
    .btn-secondary-hero {
        text-align: center;
        display: block;
    }
    
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 150px);
    }
    
    .grid-item-1,
    .grid-item-2,
    .grid-item-3,
    .grid-item-4,
    .grid-item-5,
    .grid-item-6,
    .grid-item-7,
    .grid-item-8,
    .grid-item-9 {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .grid-item-1,
    .grid-item-5 {
        grid-column: span 2;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}
