/* =============================================
   STYLES.CSS - Hlavný štýl pre n-shift.uk
   (aktualizovaný - lepšia textová uzavretosť)
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --primary: #a855f7;
    --accent: #00f5ff;
    --bg-dark: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(168, 85, 247, 0.15);
    --text-primary: #e0e0ff;
    --text-secondary: #a3a3a3;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(135deg, #0a0a0a, #1a0033, #0f0c29);
    color: var(--text-primary);
    line-height: 1.75;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================== VLASTNÝ POSUVNÍK ====================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c084fc;
}

/* ====================== HEADER ====================== */
header {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
}

.logo {
    font-size: 1.95rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-primary);
    margin-left: 28px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

/* ====================== MODERNÉ KARTY NOVINIEK ====================== */
.news-section {
    max-width: 920px;
    margin: 50px auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

/* Exkluzívne / Prémiové karty */
.news-card.premium {
    border-color: rgba(0, 245, 255, 0.3);
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.04), rgba(0, 245, 255, 0.02));
}

.news-card.premium::before {
    content: "PRÉMIUM / EXKLUZÍVNE";
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

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

.news-title {
    color: #fff;
    font-size: 1.45rem;
    line-height: 1.3;
    margin-bottom: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.news-source {
    color: var(--accent);
    font-weight: 600;
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 22px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: auto;
}

.news-link:hover {
    color: #fff;
    gap: 10px;
}

/* ====================== ARTICLE CARDS ====================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.article-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(168,85,247,0.12);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(168,85,247,0.25);
    border-color: var(--primary);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    color: #c084fc;
    margin-bottom: 12px;
    font-size: 1.35rem;
}

/* ====================== UNIVERZÁLNY KONTAJNER PRE TEXT (NOVÉ) ====================== */
.content-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px 36px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.content-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.content-card h2 {
    color: #c084fc;
    font-size: 1.85rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.content-card h3 {
    color: #a5b4fc;
    font-size: 1.35rem;
    margin: 24px 0 12px 0;
}

.content-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-card ul,
.content-card ol {
    padding-left: 22px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.content-card li {
    margin-bottom: 8px;
}

/* ====================== ZLEPŠENIA OSTATNÝCH ČASTÍ ====================== */
.section h2 {
    color: var(--primary);
    font-size: 2.1rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    margin: 12px auto 0;
    border-radius: 3px;
}

img {
    max-width: 100%;
    border-radius: 14px;
    margin: 30px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* ====================== NOVINKY (news-item) ====================== */
.news-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px 32px;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.news-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* ====================== BADGE PRE NOVINKY Z MOBILNÉHO AGENTA ====================== */
.news-badge {
    display: inline-block;
    background: #a855f7;
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 9999px;
    margin-bottom: 8px;
    letter-spacing: 0.4px;
}

/* ====================== FOOTER A RESPONZIVITA ====================== */
footer {
    text-align: center;
    padding: 50px 20px 30px;
    opacity: 0.75;
    font-size: 0.95rem;
    border-top: 1px solid rgba(168,85,247,0.15);
    margin-top: 100px;
}

@media (max-width: 768px) {
    .news-card,
    .news-item,
    .content-card {
        padding: 24px 26px;
    }

    .news-title {
        font-size: 1.3rem;
    }

    .nav-links {
        display: none;
    }
}