/* Custom animations */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Calendar grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-cell {
    min-height: 100px;
    padding: 4px 6px;
    background: white;
    border: 1px solid #C8DFD4;
    transition: background-color 0.15s;
}

.calendar-cell:hover {
    background-color: #F1F8F5;
}

.calendar-cell.today {
    background-color: #D4E9E2;
    border-color: #00704A;
}

.calendar-cell.other-month {
    background-color: #f9fafb;
    color: #9ca3af;
}

.calendar-event {
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 4px;
    margin-top: 2px;
    cursor: pointer;
    background-color: #00704A;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event:hover {
    background-color: #00A862;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 112, 74, 0.15);
}

/* Poster grid */
.poster-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.poster-card img {
    transition: transform 0.3s;
}

.poster-card:hover img {
    transform: scale(1.05);
}

/* Timeline */
.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #00704A;
}

.timeline-dot {
    position: absolute;
    left: 14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00A862;
    border: 2px solid white;
    z-index: 1;
}

/* Flash auto-dismiss */
.flash-msg {
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(100%); }
}

/* Responsive calendar */
@media (max-width: 640px) {
    .calendar-cell {
        min-height: 60px;
        font-size: 0.75rem;
    }
    .calendar-event {
        font-size: 0.6rem;
    }
}

/* Map placeholder */
.map-placeholder {
    background: linear-gradient(135deg, #D4E9E2 0%, #F1F8F5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475B52;
}
