/* Shared styles extracted from PHP files */
/* Základné nastavenia */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Segoe UI', Roboto, Arial, sans-serif; 
    background: #f5f5f5; 
    color: #333; 
    line-height: 1.5;
    overflow-x: hidden;
}

/* Navigácia */
.navbar { 
    background: white; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    width: 100%; 
}
.nav-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 12px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo { 
    font-size: 24px; 
    font-weight: bold; 
    color: #f57c00; 
    text-decoration: none; 
    white-space: nowrap; 
}
.nav-menu { 
    display: flex; 
    list-style: none; 
    gap: 10px; 
}
.nav-menu a { 
    text-decoration: none; 
    color: #333; 
    padding: 8px 16px; 
    border-radius: 20px; 
    transition: 0.3s; 
    font-weight: 500; 
    font-size: 15px; 
}
.nav-menu a:hover, .nav-menu a.active { 
    background: #f57c00; 
    color: white; 
}

/* Hero Section */
.hero-section { 
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%); 
    color: white; 
    padding: 4rem 1rem; 
    text-align: center; 
}
.hero-title { 
    font-size: 2.5rem; 
    margin-bottom: 1rem; 
    font-weight: 700;
}
.hero-subtitle { 
    font-size: 1.1rem; 
    margin-bottom: 2rem; 
    opacity: 0.9;
}
.search-container { 
    max-width: 600px; 
    margin: 0 auto; 
    position: relative; 
    width: 90%; 
}
.search-input { 
    width: 100%; 
    padding: 15px 50px; 
    border: none; 
    border-radius: 30px; 
    font-size: 1.1rem; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
}
.search-icon { 
    position: absolute; 
    left: 20px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #666; 
}
.search-button { 
    position: absolute; 
    right: 7px; 
    top: 50%; 
    transform: translateY(-50%); 
    background: #f57c00; 
    border: none; 
    color: white; 
    padding: 10px 20px; 
    border-radius: 25px; 
    cursor: pointer; 
    font-weight: 600;
    transition: background 0.3s;
}
.search-button:hover { background: #e65100; }

/* Hlavný kontajner a bannery */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 15px; }

.banner-container { 
    max-width: 100%; 
    margin: 20px auto; 
    padding: 0 15px; 
    text-align: center; 
}
.banner-link { 
    display: inline-block; 
    width: 100%; 
    max-width: 728px; 
    text-decoration: none;
}
.banner-container img { 
    width: 100%; 
    height: auto; 
    border-radius: 12px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    display: block; 
    transition: opacity 0.3s;
}
.banner-container img:hover { opacity: 0.95; }

/* Články - Mriežka (Article Grid) */
.article-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 2rem; 
}
.article-card { 
    background: white; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    transition: all 0.3s ease; 
    text-decoration: none; 
    color: inherit; 
    display: flex; 
    flex-direction: column; 
    height: 100%;
}
.article-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 12px 25px rgba(0,0,0,0.15); 
}

.article-image { 
    width: 100%; 
    height: 220px; 
    background: #e0e0e0; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.article-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
}
.article-card:hover .article-image img { 
    transform: scale(1.05); 
}

.article-content { 
    padding: 1.5rem; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}
.category-badge { 
    display: inline-block; 
    padding: 4px 12px; 
    background: #fff3e0; 
    color: #f57c00; 
    border-radius: 20px; 
    font-size: 11px; 
    font-weight: 700; 
    margin-bottom: 12px; 
    text-transform: uppercase; 
    align-self: flex-start;
}
.article-title { 
    font-size: 1.3rem; 
    margin-bottom: 0.8rem; 
    color: #2c3e50; 
    line-height: 1.3; 
    font-weight: 700; 
}
.article-excerpt { 
    color: #555; 
    font-size: 0.95rem; 
    margin-bottom: 1.5rem; 
    line-height: 1.6; 
}

/* Meta informácie o autorovi a dátume */
.article-meta { 
    color: #888; 
    font-size: 0.85rem; 
    padding-top: 15px; 
    border-top: 1px solid #eee; 
    margin-top: auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.author-info { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.author-thumb { 
    width: 25px; 
    height: 25px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 1px solid #ddd; 
}

/* Paginácia */
.pagination-wrapper { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin: 50px 0; 
    gap: 15px; 
}
.pagination { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    flex-wrap: wrap; 
    justify-content: center; 
}
.pagination a, .pagination span { 
    min-width: 42px; 
    height: 42px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: white; 
    color: #333; 
    text-decoration: none; 
    border-radius: 10px; 
    transition: 0.3s; 
    font-weight: 600; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}
.pagination a:hover { 
    background: #f57c00; 
    color: white; 
    transform: translateY(-2px);
}
.pagination .active { 
    background: #f57c00; 
    color: white; 
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3); 
}
.pagination .disabled { 
    opacity: 0.4; 
    pointer-events: none; 
}

/* Responzivita pre mobilné zariadenia */
@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; }
    .nav-container { flex-direction: column; gap: 15px; text-align: center; }
    .nav-menu { width: 100%; justify-content: center; }
    .article-grid { grid-template-columns: 1fr; }
    .article-image { height: 200px; }
}

/* Additional styles used by crypto.php */
.banner { display: inline-block; width: 100%; max-width: 728px; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.banner a { display: block; line-height: 0; }
.banner img { width: 100%; height: auto; display: block; transition: opacity 0.3s; }
.banner img:hover { opacity: 0.9; }
.banner-middle { margin: 40px auto; }
.search-status { text-align: center; margin-bottom: 2rem; font-size: 1.2rem; }
.search-term { color: #f57c00; font-weight: bold; }
.pagination-info { color: #666; font-size: 14px; }
.pagination .dots { border: none; box-shadow: none; background: transparent; pointer-events: none; }

/* Styles for single article page (clanok.php) */
body.single-article { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); color: #1f2937; }
.single-container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.back-button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; background: rgba(255,255,255,0.9); color: #4f46e5; text-decoration: none; border-radius: 50px; margin: 2rem 0; font-weight: 600; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: 0.3s; }
.back-button:hover { transform: translateX(-5px); background: white; }
.article-header { text-align: center; padding: 3rem 2rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 24px; margin-bottom: 2rem; }
.article-header .category-badge { display: inline-block; padding: 6px 16px; background: rgba(255,255,255,0.2); border-radius: 50px; font-size: 12px; font-weight: 700; margin-bottom: 1rem; }
.article-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.article-meta { display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.author-info { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.1); padding: 5px 15px; border-radius: 30px; }
.author-thumb { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid white; }
.featured-image { width: 100%; max-height: 500px; object-fit: cover; border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); margin-bottom: 2rem; }
.article-body { background: white; border-radius: 24px; padding: 3rem; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 3rem; }
.article-body p { font-size: 1.15rem; margin-bottom: 1.5rem; color: #374151; }
.banner-ad { text-align: center; margin: 2rem 0; padding: 1.5rem; background: #f9fafb; border-radius: 15px; border: 1px dashed #ddd; }
.banner-ad img { max-width: 100%; height: auto; border-radius: 10px; }
.scroll-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: #4f46e5; color: white; border-radius: 50%; display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 1000; transition: 0.3s; }
.scroll-top.show { display: flex; }

@media (max-width: 768px) {
    .article-title { font-size: 1.8rem; }
    .article-body { padding: 1.5rem; }
}

/* Modern, eye-catching headline and improved article typography */
.single-article .article-header { padding: 3.5rem 1.5rem; border-radius: 18px; }
.single-article .article-title { 
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.03;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    position: relative;
    text-transform: none;
}
.single-article .article-title::after {
    content: '';
    display: block;
    width: 72px;
    height: 6px;
    margin: 12px auto 0;
    border-radius: 6px;
    background: linear-gradient(90deg, #ffd54f 0%, #ff8a00 100%);
    box-shadow: 0 6px 18px rgba(255,138,0,0.12);
}
.single-article .article-header .category-badge { font-size: 12px; padding: 6px 14px; opacity: 0.95; }

.single-article .article-meta { margin-top: 12px; gap: 1rem; }
.single-article .author-info { background: rgba(255,255,255,0.08); padding: 6px 12px; }

.single-article .featured-image { width: 100%; height: auto; max-height: none; border-radius: 16px; }

.single-article .article-body { padding: 2.25rem; max-width: 85ch; margin: 0 auto 3rem; font-size: clamp(1rem, 1rem + 0.3vw, 1.15rem); line-height: 1.75; }
.single-article .article-body p { color: #334155; margin-bottom: 1.25rem; }
.single-article .article-body h2, .single-article .article-body h3 { color: #0f172a; margin: 1.25rem 0 0.5rem; line-height: 1.2; }
.single-article .article-body h2 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 800; }
.single-article .article-body blockquote { border-left: 4px solid #ffd54f; padding: 0.5rem 1rem; background: #fffaf0; border-radius: 6px; margin: 1rem 0; }

.single-article .back-button { font-size: 0.95rem; padding: 10px 18px; border-radius: 999px; }

@media (max-width: 768px) {
    .single-article .article-header { padding: 2rem 1rem; }
    .single-article .article-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .single-article .article-body { padding: 1.25rem; }
}

/* Article layout with sidebar for banners/related content */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; margin-top: 1.5rem; }
.article-main { min-width: 0; }
.article-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.article-sidebar .sidebar-card { background: white; border-radius: 12px; padding: 12px; box-shadow: 0 8px 20px rgba(15,23,42,0.06); text-align: center; }
.article-sidebar .sidebar-card h4 { margin-bottom: 8px; font-size: 0.95rem; color: #0f172a; }
.article-sidebar .sidebar-card a { display:block; }
.article-sidebar .sidebar-card img { width: 100%; height: auto; border-radius: 8px; display:block; }

.banner-ad.small { padding: 0; border: none; box-shadow: 0 8px 18px rgba(0,0,0,0.05); overflow: hidden; }
.banner-ad.small img { display:block; width:100%; height:auto; transition: transform 0.45s ease, filter 0.3s ease; }
.banner-ad.small:hover img { transform: translateY(-6px) scale(1.02); filter: saturate(1.05); }

/* Make sidebar sticky on large screens */
@media (min-width: 1100px) {
    .article-sidebar { position: sticky; top: 100px; align-self: start; }
}

/* Responsive: collapse to single column on smaller screens */
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { order: 2; }
    .article-main { order: 1; }
}



