/* Tool.css - Equinox & Solstice Finder */

/* Season Cards */
.season-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.season-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .season-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

/* Spring Card */
.spring-card {
    border-color: #4caf50;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

[data-bs-theme="dark"] .spring-card {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
}

/* Summer Card */
.summer-card {
    border-color: #ff9800;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

[data-bs-theme="dark"] .summer-card {
    background: linear-gradient(135deg, #e65100 0%, #f57c00 100%);
}

/* Autumn Card */
.autumn-card {
    border-color: #ff5722;
    background: linear-gradient(135deg, #fbe9e7 0%, #ffccbc 100%);
}

[data-bs-theme="dark"] .autumn-card {
    background: linear-gradient(135deg, #bf360c 0%, #d84315 100%);
}

/* Winter Card */
.winter-card {
    border-color: #2196f3;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

[data-bs-theme="dark"] .winter-card {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
}

/* Season Card Elements */
.season-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.season-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

[data-bs-theme="dark"] .season-title {
    color: #fff;
}

.season-date {
    font-size: 1.3rem;
    font-weight: 600;
    color: #052c65;
    margin-bottom: 8px;
}

[data-bs-theme="dark"] .season-date {
    color: #66a3ff;
}

.season-time {
    font-size: 1.8rem;
    font-weight: 700;
    color: #052c65;
    margin-bottom: 15px;
}

[data-bs-theme="dark"] .season-time {
    color: #4d94ff;
}

.season-info {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

[data-bs-theme="dark"] .season-info {
    background: rgba(0, 0, 0, 0.3);
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #666;
}

[data-bs-theme="dark"] .info-label {
    color: #aaa;
}

.info-value {
    font-weight: 700;
    color: #333;
}

[data-bs-theme="dark"] .info-value {
    color: #fff;
}

.season-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    font-style: italic;
}

[data-bs-theme="dark"] .season-description {
    color: #ccc;
}

/* Timeline */
.timeline-container {
    margin-top: 20px;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

[data-bs-theme="dark"] .timeline-container {
    background: #2a2a2a;
}

.timeline-bar {
    position: relative;
    height: 12px;
    background: linear-gradient(to right, #e3f2fd, #fff3e0, #fbe9e7, #e3f2fd);
    border-radius: 6px;
    margin-bottom: 80px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .timeline-bar {
    background: linear-gradient(to right, #0d47a1, #e65100, #bf360c, #0d47a1);
}

.timeline-marker {
    position: absolute;
    top: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateX(-50%);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.timeline-marker:hover {
    transform: translateX(-50%) scale(1.2);
}

[data-bs-theme="dark"] .timeline-marker {
    border-color: #1a1a1a;
}

.spring-marker {
    background: #4caf50;
}

.summer-marker {
    background: #ff9800;
}

.autumn-marker {
    background: #ff5722;
}

.winter-marker {
    background: #2196f3;
}

.marker-label {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    color: #333;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .marker-label {
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
}

.timeline-months {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.timeline-months span {
    flex: 1;
    text-align: center;
    min-width: 30px;
}

[data-bs-theme="dark"] .timeline-months {
    color: #aaa;
}

/* Additional Info */
.additional-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

[data-bs-theme="dark"] .additional-details {
    background: #2a2a2a;
}

.additional-details h5 {
    margin-bottom: 20px;
    color: #052c65;
}

[data-bs-theme="dark"] .additional-details h5 {
    color: #66a3ff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] .info-card {
    background: #333;
}

.info-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #052c65;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

[data-bs-theme="dark"] .info-card-title {
    color: #4d94ff;
    border-bottom-color: #444;
}

.info-card-body {
    color: #666;
}

[data-bs-theme="dark"] .info-card-body {
    color: #ccc;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

[data-bs-theme="dark"] .info-row {
    border-bottom-color: #3a3a3a;
}

.info-row:last-child {
    border-bottom: none;
}

.info-card-body p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.info-card-body p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .season-icon {
        font-size: 3rem;
    }

    .season-title {
        font-size: 1.3rem;
    }

    .season-date {
        font-size: 1.1rem;
    }

    .season-time {
        font-size: 1.5rem;
    }

    .season-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .timeline-container {
        padding: 20px 15px;
    }

    .timeline-bar {
        margin-bottom: 90px;
    }

    .marker-label {
        font-size: 0.8rem;
        padding: 3px 8px;
        top: 38px;
    }

    .timeline-months {
        font-size: 0.8rem;
        margin-top: 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .timeline-bar {
        margin-bottom: 100px;
    }

    .marker-label {
        font-size: 0.7rem;
        padding: 2px 6px;
        top: 40px;
    }

    .timeline-months {
        font-size: 0.7rem;
        margin-top: 20px;
    }

    .timeline-months span {
        min-width: 25px;
    }
}
