:root {
    --primary-color: #7a8227;
    --accent-color: #8b0000;
    --bg-color: #121212;
    --paper-color: #e0d7c1;
    --text-dark: #2d2d2d;
}

body {
    background-color: var(--bg-color);
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    color: var(--paper-color);
    font-family: 'Special Elite', Courier, serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.status-bar {
    background: #000;
    padding: 12px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    letter-spacing: 2px;
    color: #aaa;
}

.status-bar span {
    color: var(--primary-color);
    font-weight: bold;
}

header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)), url('../images/wz2-header-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
}

/* Header logo link */
.header-logo {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.header-logo:hover {
    transform: scale(1.02);
}

h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.8);
}

.subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 5px;
    display: block;
}

.header-description {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    color: #ccc;
    max-width: 550px;
    margin: 25px auto 0;
    line-height: 1.7;
    text-transform: none;
    letter-spacing: 0.5px;
    font-weight: 300;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    text-align: center;
}

.header-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.header-nav .nav-link {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--paper-color);
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid rgba(122, 130, 39, 0.3);
}

.header-nav .nav-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(122, 130, 39, 0.5);
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
}

.ad-container {
    margin: 0 auto;
    text-align: center;
    height: auto;
    min-height: 0;
    overflow: hidden;
}

/* Story Summary Section */
.story-summary-section {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(249, 115, 22, 0.15) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 0;
    margin: 20px 0 30px 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.summary-header {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.3) 0%, rgba(249, 115, 22, 0.3) 100%);
    padding: 20px 25px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary-icon {
    font-size: 2.5rem;
    animation: pulse 2s infinite;
}

.summary-header h2 {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 2px;
}

.summary-content {
    padding: 25px 30px;
    color: #ddd;
    font-size: 1.1rem;
    line-height: 1.8;
    background: rgba(0, 0, 0, 0.2);
}

.tldr-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tldr-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.tldr-item:hover {
    background: rgba(220, 38, 38, 0.15);
    border-left-color: var(--accent-color);
    transform: translateX(5px);
}

.summary-footer {
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(220, 38, 38, 0.3);
    text-align: center;
}

.summary-chapters {
    font-family: 'Oswald', sans-serif;
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .summary-header {
        padding: 15px 20px;
        gap: 10px;
    }
    
    .summary-icon {
        font-size: 2rem;
    }
    
    .summary-header h2 {
        font-size: 1.4rem;
    }
    
    .summary-content {
        padding: 20px;
        font-size: 1rem;
    }
}

.story-card {
    background-color: var(--paper-color);
    color: var(--text-dark);
    padding: 45px;
    border-radius: 2px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    border: 1px solid #c5b9a0;
    background-image: url('https://www.transparenttextures.com/patterns/old-paper.png');
    margin-top: 20px;
}

.story-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    margin-bottom: 30px;
    border: 3px solid var(--text-dark);
    object-fit: cover;
}

.story-content {
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-align: justify;
}

.poll-section {
    margin-top: 40px;
    background: #1a1a1a;
    padding: 35px;
    border-left: 5px solid var(--primary-color);
}

/* Countdown timer */
.update-countdown {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(249, 115, 22, 0.15) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.countdown-icon {
    font-size: 3rem;
    animation: pulse 2s infinite;
}

.countdown-content {
    flex: 1;
}

.countdown-label {
    font-family: 'Oswald', sans-serif;
    color: #aaa;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.countdown-timer {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    margin-bottom: 0.25rem;
}

.countdown-timer span {
    display: inline-block;
    min-width: 2.5rem;
    text-align: center;
}

.countdown-info {
    font-family: 'Oswald', sans-serif;
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h2 {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    text-transform: uppercase;
    margin-top: 0;
    font-size: 1.8rem;
}

.poll-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px;
    margin: 12px 0;
    background: #252525;
    border: 1px solid #444;
    color: #ccc;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.poll-option:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.poll-option:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.poll-option.voting {
    background: rgba(220, 38, 38, 0.3);
    border-color: var(--primary-color);
}

.poll-option.selected {
    background: rgba(16, 185, 129, 0.3);
    border-color: #10b981;
    color: #10b981;
}

.poll-option .option-content {
    flex: 1;
    z-index: 2;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.poll-option .option-text {
    flex: 1;
}

.karma-indicator {
    font-size: 1.2rem;
    display: inline-block;
    animation: karmaGlow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

.karma-good {
    animation: angelGlow 2s ease-in-out infinite alternate;
}

.karma-bad {
    animation: devilGlow 2s ease-in-out infinite alternate;
}

@keyframes angelGlow {
    0% { filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.6)); }
    100% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9)); }
}

@keyframes devilGlow {
    0% { filter: drop-shadow(0 0 3px rgba(220, 38, 38, 0.6)); }
    100% { filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.9)); }
}

.poll-option .percent-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    position: relative;
}

.poll-option .percent-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(220, 38, 38, 0.3) 0%, 
        rgba(249, 115, 22, 0.3) 100%
    );
    transition: width 0.5s ease;
    z-index: 1;
}

.poll-option .percent-text {
    background: rgba(0,0,0,0.5);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.95rem;
    min-width: 45px;
    text-align: center;
}

.vote-message {
    font-family: 'Oswald', sans-serif;
    display: block;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.vote-voted {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid #10b981;
}

.vote-already_voted,
.vote-limit,
.vote-expired {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 2px solid #f59e0b;
}

.vote-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #ef4444;
}

.chronicle-section {
    margin-top: 60px;
    border-top: 2px solid #333;
    padding-top: 40px;
}

.chronicle-title {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 25px;
    text-align: center;
}

.chronicle-item {
    background: rgba(40, 40, 40, 0.5);
    margin-bottom: 30px;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chronicle-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

/* Hlavička kroniky */
.chronicle-header {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%);
    padding: 20px 25px;
    border-bottom: 2px solid var(--primary-color);
}

.chronicle-header h3 {
    color: var(--primary-color);
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.chronicle-subtitle {
    color: #bbb;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Obrázek v kronice */
.chronicle-image {
    overflow: hidden;
    border-bottom: 1px solid #333;
}

.chronicle-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

/* Sekce rozhodnutí */
.chronicle-decision {
    background: rgba(16, 185, 129, 0.1);
    padding: 20px 25px;
    border-bottom: 1px solid #333;
}

.decision-title {
    font-family: 'Oswald', sans-serif;
    color: #10b981;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.decision-choice {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.decision-choice strong {
    color: #fff;
    font-size: 1.15rem;
    flex: 1;
}

.decision-percent {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
}

.decision-result {
    padding: 12px 15px;
    background: rgba(16, 185, 129, 0.15);
    border-left: 3px solid #10b981;
    border-radius: 4px;
    color: #a7f3d0;
    font-style: italic;
    line-height: 1.6;
}

.result-icon {
    color: #10b981;
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Sekce příběhu */
.chronicle-story {
    padding: 25px;
}

.story-label {
    font-family: 'Oswald', sans-serif;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.story-text {
    color: #ddd;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: justify;
}

/* CTA sekce pro starší stránky */
.cta-section {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.cta-box {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.cta-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-pizza);
}

.cta-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.cta-box h2 {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.cta-box p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.75rem;
    background: var(--bg-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: var(--shadow-hover);
}

.cta-text {
    position: relative;
    z-index: 1;
}

.cta-arrow {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-cta:hover .cta-arrow {
    transform: translateX(5px);
}

footer {
    text-align: center;
    padding: 60px 20px;
    font-size: 0.9rem;
    color: #888;
    background-color: rgba(10, 10, 10, 0.95);
    border-top: 2px solid var(--primary-color);
    margin-top: 60px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 10px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(220, 38, 38, 0.5);
}

.footer-links {
    margin-top: 15px;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-btn,
.pagination-number {
    background: rgba(40, 40, 40, 0.8);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #444;
}

.pagination-btn:hover,
.pagination-number:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-current {
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    border: 2px solid var(--primary-color);
}

.pagination-ellipsis {
    color: #888;
    padding: 0.75rem 0.5rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

.pagination-info {
    color: #888;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .pagination {
        gap: 1.5rem;
    }

    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-btn,
    .pagination-number,
    .pagination-current {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   VOTING NOTIFICATIONS
   ======================================== */

.vote-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    width: 350px;
    max-width: 90vw;
    background: rgba(30, 30, 30, 0.98);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 9999;
    transition: right 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.vote-notification.show {
    right: 20px;
}

.vote-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
}

.vote-notification.success::before {
    background: #10b981;
}

.vote-notification.warning::before {
    background: #f59e0b;
}

.vote-notification.error::before {
    background: var(--primary-color);
}

.notification-content {
    padding: 20px 25px 20px 30px;
}

.vote-notification h3 {
    margin: 0 0 8px 0;
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vote-notification.success h3 {
    color: #10b981;
}

.vote-notification.warning h3 {
    color: #f59e0b;
}

.vote-notification.error h3 {
    color: #ef4444;
}

.vote-notification p {
    margin: 0;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .vote-notification {
        top: 10px;
        right: -100%;
        width: calc(100vw - 40px);
    }
    
    .vote-notification.show {
        right: 20px;
    }
}

