/* Custom styles for Date Gallery */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    padding-top: 2rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: #2c3e50;
    text-align: center;
    font-weight: bold;
}

.date-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: white;
    border: 1px solid rgba(58, 138, 95, 0.1);
}

.date-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(58, 138, 95, 0.3);
    border-color: rgba(58, 138, 95, 0.2);
}

.date-header {
    background-color: #3a8a5f;
    color: white;
    padding: 0.8rem;
    font-size: 1.2rem;
    text-align: center;
}

.date-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-image:hover {
    opacity: 0.9;
    filter: brightness(1.05);
}

#summary-container {
    background-color: transparent !important;
    border: none !important;
    padding: 2rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

#summary-container::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 25%;
    width: 50%;
    height: 1px;
    background-color: rgba(58, 138, 95, 0.3);
}

#days-since-last, #highest-value {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #2c3e50;
}

#days-since-last-value {
    font-weight: bold;
    font-size: 2.5rem;
    color: #dc3545;
    margin-right: 0.5rem;
}

#highest-value-text {
    font-weight: bold;
    font-size: 2.5rem;
    color: #3a8a5f;
    margin-left: 0.5rem;
}

.text-danger {
    color: #dc3545 !important;
}

.alert-info {
    background-color: transparent !important;
    border-color: transparent !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .date-card {
        margin-bottom: 1.5rem;
    }
    
    .date-header {
        font-size: 1.2rem;
        padding: 0.75rem;
    }
    
    .date-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .date-image {
        height: 180px;
    }
}