/* OPRAVA: Odsadenie sekcií pod fixným menu na hlavnej stránke */
.portal-grid { 
    display: grid; 
    grid-template-columns: 1fr 350px; 
    gap: 40px; 
    margin: 80px auto 60px auto !important; /* Odlepí novinky a kalkulačku */
    max-width: 1250px;
}

#hry {
    margin-top: 40px !important;
    margin-bottom: 80px;
}

/* SLIDER */
.hero-slider { position: relative; width: 100%; min-height: 550px; background-color: var(--bg-dark); border-bottom: 4px solid var(--accent); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease-in-out; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; z-index: 1; pointer-events: none; }
.slide.active { opacity: 1; z-index: 2; pointer-events: auto; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(9,9,11,0.95) 0%, rgba(9,9,11,0.7) 50%, rgba(9,9,11,0.3) 100%); z-index: 1; }
.slide-content { position: relative; z-index: 3; width: 100%; max-width: 1250px; padding: 0 40px; transform: translateY(20px); transition: transform 0.8s ease-out; margin: 0 auto; }
.slide.active .slide-content { transform: translateY(0); }
.slide-tag { display: inline-block; background: var(--accent); color: white; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-bottom: 15px; }
.slide-title { font-size: 48px; font-weight: 800; line-height: 1.1; margin-bottom: 15px; letter-spacing: -1px; color: white;}
.slide-title span { color: var(--accent); }
.slide-desc { font-size: 16px; color: #d4d4d8; max-width: 500px; }
.slider-controls { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; }
.slider-controls .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: 0.3s; }
.slider-controls .dot.active { background: var(--accent); width: 24px; border-radius: 6px; }

/* RETRO ŠTÍTY */
.retro-bg { position: absolute; inset: 0; background: radial-gradient(circle at top center, #27272a 0%, #121214 60%, #09090b 100%); z-index: 1; }
.retro-top-bar { position: absolute; top: 0; left: 0; width: 100%; height: 50px; background: linear-gradient(to bottom, #ffaa00 0%, #ea580c 60%, #993300 100%); border-bottom: 2px solid #000; z-index: 10; }
.retro-features-grid { position: relative; z-index: 5; width: 100%; max-width: 1200px; margin: 48px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 20px 40px; transform: translateY(20px); transition: 0.8s; }
.slide.active .retro-features-grid { transform: translateY(0); }
.retro-column { position: relative; padding-top: 130px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.retro-column:not(:last-child)::after { content: ''; position: absolute; right: -10px; top: 50px; height: 60%; width: 1px; background: rgba(255,255,255,0.05); }
.retro-shield-container { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 170px; height: 110px; z-index: 5; }
.retro-shield-bg { position: absolute; top: 0; left: 0; width: 170px; height: 110px; filter: drop-shadow(0 15px 15px rgba(0,0,0,0.9)); }
.retro-shield-icon { position: absolute; top: 30px; left: 0; width: 100%; display: flex; justify-content: center; align-items: center; z-index: 20; color: white;}
.retro-shield-icon svg { width: 36px !important; height: 36px !important; }
.retro-shield-icon .euro-sign { font-size: 38px; font-weight: 800; line-height: 1; }
.retro-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 25px; text-align: left; }
.retro-list li { color: #d4d4d8; font-size: 15px; font-style: italic; display: flex; align-items: center; gap: 12px; }
.retro-list li::before { content: ''; display: inline-block; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid var(--accent); }
.retro-header { margin-top: auto; color: white; font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 20px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; width: 100%; max-width: 250px; }

/* PORTAL, WIDGETY A KALKULAČKA */
.portal-grid { display: grid; grid-template-columns: 1fr 350px; gap: 40px; margin-bottom: 60px; max-width: 1250px; margin-left: auto; margin-right: auto;}
.sidebar { min-width: 320px; display: flex; flex-direction: column; gap: 25px; }
.widget { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 8px; padding: 25px; }
.widget h3 { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; border-bottom: 1px solid var(--border); padding-bottom: 10px; color: white;}
.calc-form label { display: block; font-size: 11px; color: var(--text-muted); font-weight: 700; margin-bottom: 6px; text-transform: uppercase; }
.calc-form select { width: 100%; background: #09090b; border: 1px solid var(--border); color: white; padding: 12px 15px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; appearance: auto;}
.price-display { background: #09090b; border: 1px solid var(--border); border-radius: 4px; padding: 15px; text-align: center; margin-bottom: 20px; }
.price-display .amount { font-size: 24px; font-weight: 800; color: white; }
.price-display .desc { font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: bold; }
.btn-submit { width: 100%; background: var(--accent); color: white; border: none; padding: 12px; border-radius: 4px; font-weight: 700; cursor: pointer; transition: 0.2s; font-size: 13px; text-transform: uppercase; font-family: 'Oswald', sans-serif; }

/* KARTY HIER, REFERENCIE A O NÁS */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 60px; }
.game-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: 0.2s; position: relative;}
.game-card:hover { border-color: rgba(249, 115, 22, 0.4); transform: translateY(-3px);}
.game-banner { height: 160px; background-size: cover; background-position: center; position: relative; }
.game-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-panel), transparent); }
.status-tag { position: absolute; top: 10px; left: 10px; background: rgba(9, 9, 11, 0.9); border: 1px solid rgba(255,255,255,0.1); padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: bold; text-transform: uppercase; color: #f59e0b; z-index: 2; }
.game-info { padding: 0 20px 20px; position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; }
.game-info h3 { font-size: 20px; font-weight: 800; margin-top: -10px; margin-bottom: 8px; color: white;}
.game-info p { color: var(--text-muted); font-size: 13px; margin-bottom: 15px; flex: 1; }
.game-features { margin-bottom: 20px; }
.game-features li { font-size: 12px; color: #d4d4d8; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.game-features li::before { content: '✓'; color: var(--accent); font-weight: bold; }
.btn-disabled { background: #18181b; border: 1px solid var(--border); color: #71717a; padding: 10px; border-radius: 4px; text-align: center; font-weight: 600; font-size: 12px; cursor: not-allowed; text-transform: uppercase; }

.refs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
.ref-card { background: var(--bg-panel); border: 1px solid var(--border); padding: 25px; border-radius: 8px; }
.stars { color: #f59e0b; font-size: 16px; margin-bottom: 10px; letter-spacing: 2px; }
.ref-text { font-size: 14px; font-style: italic; color: #d4d4d8; margin-bottom: 15px; }
.ref-author { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; }

.about-section { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 8px; padding: 40px; display: flex; gap: 40px; align-items: center; }
.about-text { flex: 2; }
.about-text p { color: var(--text-muted); font-size: 14px; margin-bottom: 15px; }
.about-text b { color: white; }
.about-img { flex: 1; text-align: center; font-size: 80px; opacity: 0.5; }

/* Novinky Widget na Indexe */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-item { display: flex; gap: 20px; padding: 20px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 8px; transition: 0.2s; align-items: flex-start; }
.news-item:hover { border-color: rgba(255,255,255,0.1); background: #18181b; }
.news-img { width: 180px; height: 120px; background-size: cover; background-position: center; border-radius: 4px; flex-shrink: 0; background-color: #18181b; border: 1px solid var(--border); }
.news-content { flex: 1; }
.news-meta { font-size: 11px; color: var(--accent); font-weight: 700; margin-bottom: 8px; text-transform: uppercase; }
.news-meta span { color: var(--text-muted); margin-left: 10px; font-weight: normal; }
.news-title { font-size: 18px; font-weight: 700; color: white; margin-bottom: 8px; line-height: 1.3; }
.news-excerpt { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

@media (max-width: 992px) {
    .retro-features-grid { grid-template-columns: 1fr; margin-top: 0; padding: 40px 20px; gap: 40px; }
    .retro-column:not(:last-child)::after { display: none; }
    .retro-column { background: #121214; border-radius: 12px; padding-top: 150px; padding-bottom: 30px; border: 1px solid var(--border); overflow: hidden; }
    .retro-shield-container { top: 48px; }
    .portal-grid, .refs-grid { grid-template-columns: 1fr; }
    .about-section { flex-direction: column; text-align: center; }
    .news-item { flex-direction: column; }
    .news-img { width: 100%; height: 200px; }
}

/* OPRAVA: Odsadenie kalkulačky zhora a grid pre hry */
.portal-grid { display: grid; grid-template-columns: 1fr 350px; gap: 40px; margin-top: 60px; margin-bottom: 60px; max-width: 1250px; margin-left: auto; margin-right: auto;}

/* Triedy pre Hover Overlay z hier (pre Index a Games) */
.hover-overlay { position: absolute; inset: 0; background: rgba(9, 9, 11, 0.95); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 15px; opacity: 0; transition: opacity 0.3s ease; z-index: 10; padding: 20px; backdrop-filter: blur(4px); }
.game-card:hover .hover-overlay { opacity: 1; }
.btn-hover { width: 80%; text-align: center; padding: 12px; border-radius: 6px; font-weight: 700; text-transform: uppercase; font-size: 14px; text-decoration: none; transition: 0.2s; border: 2px solid transparent; cursor: pointer;}
.btn-hover.primary { background: var(--accent); color: white; }
.btn-hover.primary:hover { background: var(--accent-hover); box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3); }
.btn-hover.outline { background: transparent; color: white; border-color: #3f3f46; }
.btn-hover.outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* VERTIKÁLNE NOVINKY NA INDEXE */
.news-list-vertical { display: flex; flex-direction: column; gap: 20px; }
.v-news-wrapper { display: flex; flex-direction: column; gap: 16px; }
.v-news-card { display: flex; background: #121214; border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; overflow: hidden; text-decoration: none; transition: 0.3s ease; }
.v-news-card:hover { border-color: #f97316; transform: translateX(6px); background: #18181b; }
.v-news-img { width: 160px; min-height: 120px; background-size: cover; background-position: center; border-right: 1px solid rgba(255,255,255,0.05); flex-shrink: 0; }
.v-news-content { padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.v-news-meta { display: flex; gap: 15px; font-size: 11px; color: #a1a1aa; margin-bottom: 8px; text-transform: uppercase; font-weight: 600; }
.v-news-meta span i { color: #f97316; margin-right: 5px; }
.v-news-title { font-size: 17px; color: white; margin: 0 0 8px 0; font-weight: 700; line-height: 1.3; transition: 0.2s; }
.v-news-card:hover .v-news-title { color: #f97316; }
.v-news-excerpt { font-size: 13px; color: #71717a; margin: 0 0 12px 0; line-height: 1.5; }
.v-news-btn { font-size: 11px; font-weight: 800; color: white; text-transform: uppercase; display: flex; align-items: center; gap: 6px; transition: 0.2s; }
.v-news-card:hover .v-news-btn { color: #f97316; gap: 9px; }
.empty-news { padding: 30px; text-align: center; border: 1px dashed rgba(255,255,255,0.1); border-radius: 12px; color: #71717a; font-size: 14px; }

@media (max-width: 600px) {
    .v-news-card { flex-direction: column; }
    .v-news-img { width: 100%; height: 160px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
}

/* =========================================
   NOVÝ CYBER-TECH DIZAJN NOVINIEK PRE INDEX
   ========================================= */
.home-news-section-new { margin-bottom: 50px; }

.section-header-new { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    padding-bottom: 10px;
}
.section-header-new h2 { 
    font-size: 20px; 
    color: white; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: -0.5px; 
}
.view-all-link { 
    font-size: 12px; 
    color: var(--accent); 
    text-decoration: none; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    transition: 0.2s;
}
.view-all-link:hover { color: white; gap: 9px; }

.news-feed-vertical { display: flex; flex-direction: column; gap: 12px; }

.news-feed-item { 
    display: flex; 
    align-items: center; 
    background: #09090b; 
    border: 1px solid rgba(255,255,255,0.03); 
    border-radius: 8px; 
    padding: 15px; 
    text-decoration: none; 
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    position: relative;
    overflow: hidden;
}

/* Jemná oranžová žiara na vrchu karty na hover */
.news-feed-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    opacity: 0;
    transition: 0.3s;
}

.news-feed-item:hover { 
    border-color: rgba(249, 115, 22, 0.2); 
    background: #111114; 
    transform: translateX(4px); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.news-feed-item:hover::after { opacity: 1; }

.feed-img-small { 
    width: 110px; 
    height: 75px; 
    border-radius: 6px; 
    background-size: cover; 
    background-position: center; 
    flex-shrink: 0; 
    margin-right: 18px; 
    position: relative; 
    border: 1px solid rgba(255,255,255,0.05);
}
.feed-img-glow { 
    position: absolute; 
    inset: -1px; 
    border-radius: 6px; 
    box-shadow: inset 0 0 15px rgba(249, 115, 22, 0.05); 
    transition: 0.3s;
}
.news-feed-item:hover .feed-img-glow { box-shadow: inset 0 0 20px rgba(249, 115, 22, 0.15); }

.feed-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.feed-meta-tech { display: flex; gap: 15px; font-size: 10px; text-transform: uppercase; font-weight: 700; color: #71717a; margin-bottom: 6px; letter-spacing: 0.5px; }
.feed-meta-tech i { color: var(--accent); margin-right: 4px; }
.tech-date { color: var(--accent); }

.feed-title { font-size: 16px; color: white; margin: 0 0 5px 0; font-weight: 700; transition: 0.2s; line-height: 1.3; }
.news-feed-item:hover .feed-title { color: var(--accent); }

.feed-excerpt { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.feed-arrow { font-size: 14px; color: #27272a; margin-left: 15px; transition: 0.3s; }
.news-feed-item:hover .feed-arrow { color: white; transform: translateX(3px); }

.empty-news-portal { text-align: center; padding: 30px; border: 1px dashed rgba(255,255,255,0.05); border-radius: 8px; color: var(--text-muted); font-size: 13px; }
.empty-news-portal i { font-size: 24px; color: #3f3f46; margin-bottom: 10px; }

@media (max-width: 600px) {
    .news-feed-item { flex-direction: column; align-items: flex-start; }
    .feed-img-small { width: 100%; height: 120px; margin-right: 0; margin-bottom: 15px; }
    .feed-arrow { display: none; }
}

/* =========================================
   VERTIKÁLNE NOVINKY NA INDEXE
   ========================================= */
.news-list-vertical { display: flex; flex-direction: column; width: 100%; margin-bottom: 20px;}
.v-news-container { display: flex; flex-direction: column; gap: 20px; }
.v-news-card { display: flex; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; text-decoration: none; transition: 0.3s ease; }
.v-news-card:hover { border-color: #f97316; transform: translateX(6px); background: #18181b; }
.v-news-img { width: 190px; min-height: 140px; background-size: cover; background-position: center; border-right: 1px solid var(--border); flex-shrink: 0; }
.v-news-content { padding: 22px 25px; display: flex; flex-direction: column; justify-content: center; flex: 1; }

.v-news-title { font-size: 24px; color: white; margin: 0 0 8px 0; font-weight: 800; line-height: 1.2; transition: 0.2s; }
.v-news-card:hover .v-news-title { color: #f97316; }

.v-news-meta { display: flex; gap: 15px; font-size: 12px; color: #a1a1aa; font-weight: 600; text-transform: uppercase; }
.v-news-meta span i { color: #f97316; margin-right: 5px; }

.v-news-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.05); margin: 15px 0; }

.v-news-excerpt { font-size: 14px; color: #71717a; margin: 0 0 15px 0; line-height: 1.5; }
.v-news-btn { font-size: 12px; font-weight: 800; color: white; text-transform: uppercase; display: flex; align-items: center; gap: 6px; transition: 0.2s; }
.v-news-card:hover .v-news-btn { color: #f97316; gap: 10px; }

@media (max-width: 600px) {
    .v-news-card { flex-direction: column; }
    .v-news-img { width: 100%; height: 180px; border-right: none; border-bottom: 1px solid var(--border); }
}