/* Ski Weather Sweden - Custom CSS */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --snow-white: #f8f9fa;
    --ice-blue: #cfe2ff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--snow-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar styling */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand i {
    font-size: 1.8rem;
    vertical-align: middle;
}

/* Resort cards */
.resort-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.resort-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.resort-card .card-header {
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.weather-preview {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Distance info */
.distance-info {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Weather icons */
.bi-cloud-rain, .bi-cloud-sun, .bi-snow, .bi-wind {
    color: var(--primary-color);
}

/* Table styling */
.table-hover tbody tr:hover {
    background-color: var(--ice-blue);
}

/* Buttons */
.btn {
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Loading animations */
.spinner-border {
    animation: spinner-border 0.75s linear infinite;
}

/* Card improvements */
.card {
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Alert customization */
.alert {
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-info {
    border-left-color: #0dcaf0;
}

.alert-success {
    border-left-color: #198754;
}

.alert-warning {
    border-left-color: #ffc107;
}

/* Favorite button styling */
.btn-favorite {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.btn-favorite:hover {
    opacity: 1;
    transform: scale(1.2);
}

.btn-favorite.active {
    opacity: 1;
    animation: starPulse 0.5s ease;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Filter favorites button */
#filter-favorites-btn {
    transition: all 0.3s ease;
}

#filter-favorites-btn.active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

#filter-favorites-btn .badge {
    transition: all 0.3s ease;
}

/* Notification toast positioning */
.position-fixed {
    z-index: 9999;
}

/* Resort card favorite state */
.col-md-6[data-resort-id] {
    transition: opacity 0.3s ease;
}

.col-md-6[data-resort-id][style*="display: none"] {
    opacity: 0;
}
