/**
 * ScooterCam Predictors - Styles
 * Version: 2.0.0
 */

/* Card Styles */
.scootercam-forecast-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 20px 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scootercam-forecast-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scootercam-forecast-card .card-title {
    font-size: 1.5em;
    color: #1e3a5f;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.scootercam-forecast-card .card-main-value {
    font-size: 3em;
    font-weight: bold;
    color: #1e3a5f;
    margin: 15px 0;
    line-height: 1.2;
}

.scootercam-forecast-card .grade {
    font-size: 0.7em;
    color: #5a7ba3;
}

.scootercam-forecast-card .card-meta {
    font-size: 1.1em;
    color: #666;
    margin: 10px 0;
}

.scootercam-forecast-card .card-description {
    font-size: 0.95em;
    color: #666;
    margin: 15px 0 0 0;
    line-height: 1.4;
}

/* Responsive Grid */
.scootercam-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

.scootercam-cards-grid .scootercam-forecast-card {
    flex: 1 1 calc(50% - 20px);
    min-width: 280px;
    margin: 0;
}

@media (max-width: 768px) {
    .scootercam-cards-grid .scootercam-forecast-card {
        flex: 1 1 100%;
    }
    
    .scootercam-forecast-card {
        padding: 20px;
    }
    
    .scootercam-forecast-card .card-main-value {
        font-size: 2.5em;
    }
}

/* Simple Display Styles */
.scootercam-score-simple,
.scootercam-time-simple {
    display: inline-block;
    font-size: 1.2em;
    font-weight: bold;
    color: #1e3a5f;
    padding: 5px 10px;
}

.scootercam-description {
    color: #555;
    font-size: 1em;
    line-height: 1.5;
}

/* Full Display Styles */
.scootercam-sunset-full,
.scootercam-moonset-full {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.scootercam-sunset-full h3,
.scootercam-moonset-full h3 {
    color: #1e3a5f;
    margin-top: 0;
    border-bottom: 2px solid #1e3a5f;
    padding-bottom: 10px;
}

.scootercam-current-score {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin: 15px 0;
}

.scootercam-current-score .score-display {
    font-size: 3em;
    font-weight: bold;
    color: #1e3a5f;
    margin: 10px 0;
}

.scootercam-current-score .score-grade {
    font-size: 1.5em;
    color: #5a7ba3;
    margin-left: 10px;
}

.scootercam-current-score .score-description {
    font-size: 1.1em;
    color: #666;
    margin-top: 10px;
}

.scootercam-current-score .score-time {
    font-size: 1.2em;
    color: #888;
    margin-top: 5px;
}

/* Forecast Table */
.scootercam-forecast-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.scootercam-forecast-table th {
    background: #1e3a5f;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.scootercam-forecast-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.scootercam-forecast-table tr:last-child td {
    border-bottom: none;
}

.scootercam-forecast-table tr:nth-child(even) {
    background: #f5f5f5;
}

.scootercam-forecast-score {
    font-weight: bold;
    font-size: 1.1em;
    color: #1e3a5f;
}

/* Grade Color Coding */
.grade-a-plus, .grade-a, .grade-a-minus {
    color: #2e7d32;
}

.grade-b-plus, .grade-b, .grade-b-minus {
    color: #558b2f;
}

.grade-c-plus, .grade-c, .grade-c-minus {
    color: #f57c00;
}

.grade-d-plus, .grade-d, .grade-d-minus {
    color: #e65100;
}

.grade-f {
    color: #c62828;
}

/* Moon Phase Info */
.scootercam-moon-info {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

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

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

.scootercam-moon-info .info-label {
    font-weight: 600;
    color: #1e3a5f;
}

.scootercam-moon-info .info-value {
    color: #666;
}

/* Weather Comparison */
.scootercam-weather-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

@media (max-width: 600px) {
    .scootercam-weather-comparison {
        grid-template-columns: 1fr;
    }
}

.scootercam-weather-location {
    background: white;
    border-radius: 8px;
    padding: 15px;
}

.scootercam-weather-location h4 {
    color: #1e3a5f;
    margin-top: 0;
    font-size: 1.1em;
}

.scootercam-weather-location p {
    margin: 5px 0;
    color: #666;
}

/* Error Messages */
.scootercam-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #c62828;
    margin: 15px 0;
}

/* No Moonset Message */
.scootercam-no-moonset {
    text-align: center;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 20px 0;
}

.scootercam-no-moonset h3 {
    color: #666;
    margin-top: 0;
}

.scootercam-no-moonset p {
    color: #888;
    line-height: 1.6;
}

/* Loading Animation */
.scootercam-loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

.scootercam-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}