/* Custom styles for Gulf Shores Beach Flag App */

/* Flag Display Styling */
.flag-display {
    border-radius: 12px;
    padding: 2rem;
    margin: 0 auto;
    max-width: 400px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.flag-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.1) 50%, transparent 51%);
    pointer-events: none;
}

.flag-content {
    position: relative;
    z-index: 2;
}

.flag-color {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    font-size: 2.5rem;
}

/* Mini flag indicators for legend */
.flag-mini {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .flag-display {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .flag-color {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .flag-display {
        padding: 1rem;
    }
    
    .flag-color {
        font-size: 1.75rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Loading animation for refresh button */
.btn:active i[data-feather="refresh-cw"] {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced visual hierarchy */
.lead {
    font-weight: 400;
}

/* Icon alignment */
i[data-feather] {
    vertical-align: -2px;
    width: 18px;
    height: 18px;
}

/* Ensure proper contrast for flag text */
.flag-display .flag-color {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}
