/**
 * Aurora Hunter Public Styles
 */

/* Container */
.aurora-forecast-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.aurora-header {
    text-align: center;
    margin-bottom: 30px;
}

.aurora-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.aurora-subtitle {
    color: #7f8c8d;
    margin: 10px 0;
}

.aurora-upgrade-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.aurora-upgrade-notice a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

/* Forecast Grid */

.aurora-forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.aurora-forecast-grid.one {
	max-width: 480px;	
	margin: 0 auto;
	padding-bottom: 16px;
}


/* Day Cards */
.aurora-day-card {
    background: #efefef;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.aurora-day-card:hover {
    transform: translateY(-5px);
	background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.aurora-day-card.today {
    border-color: #667eea;
    background: #f8f9ff;
}

.aurora-day-card.exceptional {
    border-color: #27ae60;
}

.aurora-day-card.excellent {
    border-color: #2ecc71;
}

.aurora-day-card.good {
    border-color: #f39c12;
}

.aurora-day-card.fair {
    border-color: #e67e22;
}

.aurora-day-card.poor {
    border-color: #95a5a6;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.day-date strong {
    display: block;
    font-size: 18px;
    color: #2c3e50;
}

.date-small {
    color: #7f8c8d;
    font-size: 14px;
}

.day-score {
    text-align: right;
}

.score-large {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    color: #444;
}

.score-high {
	text-shadow: 0 0 6px rgba(244, 244, 244, 0.25);
}

.score-max {
    font-size: 32px;
    color: #95a5a6;
}

.day-rating {
    margin-bottom: 20px;
}

.day-rating strong {
    display: block;
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.day-rating p {
    color: #7f8c8d;
    margin: 0;
}

.meteor-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #e8f4fd;
    border: 1px solid #b6dbff;
    border-radius: 10px;
    padding: 12px;
    margin: 10px 0 16px;
}

.meteor-icon {
    font-size: 20px;
    line-height: 1.2;
}

.meteor-text strong {
    display: block;
    color: #1b73d1;
}

.meteor-text p {
    margin: 4px 0 0;
    color: #2c3e50;
}

/* Details */
.day-details {
    border-top: 1px solid #ecf0f1;
    padding-top: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.detail-label {
    color: #7f8c8d;
    font-size: 14px;
	max-width: 80px;
}

.detail-value {
    font-weight: 600;
    color: #2c3e50;
}

.score-component {
    display: inline-block;
    background: #ecf0f1;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 5px;
    color: #7f8c8d;
}

/* Best Nights Section */
.aurora-best-nights-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.aurora-best-nights-section h3 {
    margin-top: 0;
    color: #2c3e50;
}

.best-nights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.best-night-card {
    background: white;
    padding: 20px;
    border-radius: 0px;
    border-left: 4px solid #cccccc;
    display: flex;
    align-items: center;
    gap: 15px;
}

.best-night-rank {
    font-size: 32px;
    font-weight: bold;
    color: #333333;
    min-width: 50px;
}

.best-night-info strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
}

.best-night-score {
    font-size: 14px;
    color: #7f8c8d;
}

.rating-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 5px;
}

/* Legend */
.aurora-legend {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.aurora-legend h4 {
    margin-top: 0;
    color: #2c3e50;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 30px;
    height: 30px;
    border-radius: 4px;
}

.legend-color.exceptional {
    background: #27ae60;
}

.legend-color.excellent {
    background: #2ecc71;
}

.legend-color.good {
    background: #f39c12;
}

.legend-color.fair {
    background: #e67e22;
}

.legend-color.poor {
    background: #95a5a6;
}

/* Tips */
.aurora-tips {
    background: #fff9e6;
    border: 1px solid #f39c12;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.aurora-tips h4 {
    margin-top: 0;
    color: #f39c12;
}

.aurora-tips ul {
    margin: 0;
    padding-left: 20px;
}

.aurora-tips li {
    margin-bottom: 10px;
    color: #7f8c8d;
}

/* Footer */
.aurora-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #ecf0f1;
}

.aurora-disclaimer {
    color: #95a5a6;
    font-size: 13px;
    margin-top: 15px;
}

/* Buttons */
.button, .button-primary {
    background: #667eea;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.button:hover, .button-primary:hover {
    background: #5568d3;
}

.button-secondary {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.button-secondary:hover {
    background: #d5dbdb;
}

/* Score Widget */
.aurora-score-widget {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
}

.aurora-score-circle {
    min-width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid;
}

.aurora-score-circle .score {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
}

.aurora-score-circle .max {
    font-size: 16px;
    color: #95a5a6;
}

.aurora-score-circle.exceptional {
    border-color: #27ae60;
    color: #27ae60;
}

.aurora-score-circle.excellent {
    border-color: #2ecc71;
    color: #2ecc71;
}

.aurora-score-circle.good {
    border-color: #f39c12;
    color: #f39c12;
}

.aurora-score-circle.fair {
    border-color: #e67e22;
    color: #e67e22;
}

.aurora-score-circle.poor {
    border-color: #95a5a6;
    color: #95a5a6;
}

.aurora-score-details strong {
    display: block;
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.aurora-score-meta {
    color: #7f8c8d;
    font-size: 14px;
    margin: 10px 0 0 0;
}

/* Aurora Activity Widget */
.aurora-activity-widget {
    padding: 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
}

.aurora-activity-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.aurora-activity-header h3 {
    margin: 0;
    color: #2c3e50;
}

.aurora-activity-updated {
    color: #7f8c8d;
    font-size: 14px;
}

.aurora-activity-main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.aurora-activity-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    min-height: 180px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.aurora-activity-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 45px;
}

.aurora-activity-bar-fill {
    width: 100%;
    max-width: 60px;
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    border-radius: 8px 8px 2px 2px;
    min-height: 6px;
    transition: height 0.3s ease;
}

.aurora-activity-bar-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7f8c8d;
    text-align: center;
    display: inline-block;
    transform: rotate(-90deg);
    transform-origin: center;
    white-space: nowrap;
    height: 70px;
}

.aurora-activity-bar-value {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.aurora-activity-kp,
.aurora-activity-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aurora-activity-kp .label,
.aurora-activity-status .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7f8c8d;
}

.aurora-activity-kp .value {
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
}

.aurora-activity-status .value {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.aurora-activity-status .description {
    font-size: 14px;
    color: #7f8c8d;
}

.aurora-activity-widget.aurora-activity-storm {
    border-color: #27ae60;
}

.aurora-activity-widget.aurora-activity-high {
    border-color: #2ecc71;
}

.aurora-activity-widget.aurora-activity-elevated {
    border-color: #f39c12;
}

.aurora-activity-widget.aurora-activity-moderate {
    border-color: #e67e22;
}

.aurora-activity-widget.aurora-activity-quiet {
    border-color: #95a5a6;
}

.aurora-forecast-images {
    margin: 30px 0;
    padding: 20px;
    background: #f9fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.aurora-forecast-images__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.aurora-forecast-images__header h3 {
    margin: 0;
    font-size: 1.4em;
    color: #1e293b;
}

.aurora-forecast-images__source {
    font-size: 0.9em;
    color: #4f46e5;
    text-decoration: none;
}

.aurora-forecast-images__source:hover {
    text-decoration: underline;
}

.aurora-forecast-images__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.aurora-forecast-images__figure {
    margin: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
}

.aurora-forecast-images__figure img {
    width: 100%;
    height: auto;
    display: block;
}

.aurora-forecast-images__figure figcaption {
    padding: 10px 12px 12px;
    font-size: 0.9em;
    color: #475569;
}

/* Location Form */
.aurora-location-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-actions {
    margin-top: 25px;
}

#location-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
}

#location-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#location-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Messages */
.aurora-login-message,
.aurora-setup-message,
.aurora-error {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.aurora-login-message {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    color: #1565c0;
}

.aurora-setup-message {
    background: #fff3e0;
    border: 1px solid #ff9800;
    color: #e65100;
}

.aurora-error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

/* Meteor showers reference */
.aurora-meteor-showers {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.aurora-meteor-showers h2,
.aurora-meteor-showers h3 {
    color: #2c3e50;
}

.aurora-meteor-showers ul {
    padding-left: 20px;
}

.aurora-meteor-showers-table {
    overflow-x: auto;
    margin-bottom: 20px;
}

.aurora-meteor-showers-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.aurora-meteor-showers-table th,
.aurora-meteor-showers-table td {
    padding: 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top;
}

.aurora-meteor-showers-table thead {
    background: #f5f7fa;
}

/* Responsive */
@media (max-width: 768px) {
    .aurora-forecast-grid {
        grid-template-columns: 1fr;
    }
    
    .best-nights-grid {
        grid-template-columns: 1fr;
    }
    
    .legend-items {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .aurora-score-widget {
        flex-direction: column;
        text-align: center;
    }
}
