@font-face {
    font-family: "ProtestStrike";
    src: url("../souborykaktus/PROTESTSTRIKEFONT.ttf") format("truetype");
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "ProtestStrike";
    line-height: 1.6;
    color: #1a3a1a;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 25%, #e8eaed 50%, #2d7a2d 75%, #E3E3E3 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Kaktusové pozadí */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(102, 187, 106, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(139, 195, 74, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: kaktusFloat 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes kaktusFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.page-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Modern Header */
.modern-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(25px);
    border-bottom: 3px solid rgba(76, 175, 80, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.2);
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 4.5rem;
    height: 3rem;
    border-radius: 0.375rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.site-title {
    font-size: 1.5rem;
    font-weight: normal;
    color: #1a5f1a;
    margin: 0;
}

.header-nav {
    display: flex;
    gap: 1rem;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.nav-button.primary {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.nav-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #66bb6a, #81c784);
}

.nav-icon {
    font-size: 1.2rem;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 1rem 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.page-header {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    flex-shrink: 0;
}

.page-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.page-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
}

.page-title {
    font-size: 2.5rem;
    font-weight: normal;
    color: #1a5f1a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-icon {
    font-size: 2.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
}

/* Empty state */
.empty-timeline {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(76, 175, 80, 0.2);
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.15);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-timeline h2 {
    font-size: 1.8rem;
    font-weight: normal;
    color: #1a5f1a;
    margin-bottom: 0.5rem;
}

.empty-timeline p {
    font-size: 1.1rem;
    color: #4a5568;
}

/* Timeline slider */
.timeline-slider-container {
    margin: 0.5rem 0;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 2px solid rgba(76, 175, 80, 0.2);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.1);
    flex-shrink: 0;
}

.timeline-slider {
    position: relative;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.slider-track {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #66bb6a, #8bc34a, #4caf50);
    background-size: 200% 100%;
    animation: timelineFlow 3s ease-in-out infinite;
    border-radius: 2px;
}

.slider-years {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    bottom: 0;
    pointer-events: none;
}

.year-marker {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a5f1a;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.year-marker::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(76, 175, 80, 0.3);
}

@keyframes timelineFlow {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

.timeline-range {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    position: relative;
    z-index: 3;
    cursor: pointer;
    margin: 0;
}

.timeline-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
}

.timeline-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.6);
}

.timeline-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
}

.timeline-range::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.6);
}

/* Timeline wrapper */
.timeline-wrapper {
    position: relative;
    padding: 0.5rem 0;
    margin: 0.5rem 0;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Timeline line */
.timeline-line {
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #4caf50, #66bb6a, #8bc34a, #4caf50);
    background-size: 100% 200%;
    animation: timelineFlow 3s ease-in-out infinite;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* Timeline events */
.timeline-events {
    position: relative;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    padding-top: 40px;
    padding-bottom: 1rem;
    height: 100%;
    flex: 1;
    min-height: 0;
}

.timeline-events::-webkit-scrollbar {
    width: 8px;
}

.timeline-events::-webkit-scrollbar-track {
    background: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
}

.timeline-events::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border-radius: 4px;
}

.timeline-events::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #66bb6a, #81c784);
}

.timeline-event {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 100px;
    padding-top: 0;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-event:first-child {
    margin-top: 0;
}

.timeline-event.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Event marker */
.event-marker {
    position: absolute;
    left: 38px;
    top: 0;
    width: 24px;
    height: 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.marker-dot {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2), 0 4px 12px rgba(76, 175, 80, 0.3);
    animation: pulseMarker 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes pulseMarker {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2), 0 4px 12px rgba(76, 175, 80, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(76, 175, 80, 0.1), 0 6px 20px rgba(76, 175, 80, 0.4);
    }
}

.year-label {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    z-index: 3;
}

.year-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #4caf50;
}

/* Event card */
.event-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 2px solid rgba(76, 175, 80, 0.2);
    padding: 0;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #66bb6a, #8bc34a, #4caf50);
    background-size: 200% 100%;
    animation: kaktusShimmer 3s ease-in-out infinite;
}

@keyframes kaktusShimmer {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

.event-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.25), 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
}

.event-card.expanded {
    transform: scale(1.02);
}

.event-card {
    min-height: 180px;
    height: 180px;
}

.event-card-inner {
    display: flex;
    flex-direction: row;
    gap: 0;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.event-image-container {
    flex: 0 1 auto;
    width: clamp(120px, 22vw, 180px);
    max-width: 35%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    cursor: pointer;
}

.event-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    pointer-events: none;
}

.zoom-icon {
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-image-container:hover .image-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.event-image-container:hover .zoom-icon {
    opacity: 1;
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

.event-content {
    flex: 1;
    padding: 1.5rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
    box-sizing: border-box;
    width: 100%;
}

.event-date {
    font-size: 0.9rem;
    color: #4caf50;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-title {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: normal;
    color: #1a5f1a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.event-description {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: #4a5568;
    line-height: 1.6;
    white-space: normal;
    max-height: 50px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    text-align: left;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.event-card.expanded .event-description {
    max-height: 1000px;
}

/* Image modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .content-container {
        padding: 0 1rem;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-event {
        padding-left: 70px;
    }
    
    .event-marker {
        left: 18px;
    }
    
    .event-card {
        min-height: auto;
        height: auto;
    }
    
    .event-card-inner {
        flex-direction: column;
    }
    
    .event-image-container {
        width: 100%;
        max-width: 100%;
        height: 200px;
    }
    
    .event-image {
        object-fit: contain;
        height: 100%;
    }
    
    .event-description {
        max-height: none;
    }
    
    .event-content {
        padding: 1.5rem;
    }
    
    .event-title {
        font-size: 1.25rem;
    }
    
    .year-label {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
        top: -30px;
    }
    
    .year-label::after {
        border-top-width: 5px;
        border-left-width: 5px;
        border-right-width: 5px;
    }
    
    .year-marker {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.5rem;
    }
    
    .logo-image {
        width: 3rem;
        height: 2rem;
    }
    
    .site-title {
        font-size: 1rem;
    }
    
    .nav-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .content-container {
        padding: 0 0.5rem;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-event {
        padding-left: 50px;
        margin-bottom: 1.25rem;
    }
    
    .event-marker {
        left: 8px;
        width: 18px;
        height: 18px;
    }
    
    .marker-dot {
        width: 18px;
        height: 18px;
        border-width: 2px;
    }
    
    .event-content {
        padding: 0.75rem;
    }
    
    .event-image-container {
        height: 150px;
    }
    
    .year-label {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
        top: -25px;
    }
    
    .year-label::after {
        border-top-width: 3px;
        border-left-width: 3px;
        border-right-width: 3px;
    }
    
    .timeline-slider {
        height: 45px;
    }
    
    .year-marker {
        font-size: 0.55rem;
        padding: 0.1rem 0.25rem;
    }
}
