/* Plan dnia - Timeline styles */

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color, #9dde20), #8ac71b);
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 0 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 54%;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 54%;
    margin-right: 0;
    padding-left: 3rem;
    text-align: left;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(157, 222, 32, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 222, 32, 0.15);
    border-color: rgba(157, 222, 32, 0.3);
}

.timeline-time {
    background: var(--primary-color, #9dde20);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.timeline-activity {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    top: 1.5rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color, #9dde20), #8ac71b);
    border: 4px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(157, 222, 32, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-item {
        padding: 0 0.5rem;
        max-width: 100%;
        overflow: visible;
        min-height: auto;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 70px;
        margin-right: 0.5rem;
        padding: 0.8rem;
        text-align: left;
        width: calc(100% - 80px);
        max-width: calc(100% - 80px);
        box-sizing: border-box;
        min-height: fit-content;
        height: auto;
    }

    .timeline-activity,
    .timeline-time {
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        word-wrap: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -moz-hyphens: none !important;
        -ms-hyphens: none !important;
        white-space: normal !important;
        max-width: 100% !important;
        display: block !important;
    }

    .timeline-icon {
        left: 30px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-activity,
    .timeline-time {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
}
