/* Mobile-first CSS for Weather Bulletins App - Design Coloré et Élégant */

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #8b5cf6;
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --danger-color: #ef4444;
    --danger-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-color: #10b981;
    --success-gradient: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
    --shadow-md: 0 8px 24px rgba(99, 102, 241, 0.15);
    --shadow-lg: 0 16px 48px rgba(99, 102, 241, 0.2);
    --radius: 12px;
    --radius-lg: 16px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    font-size: 16px;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-bottom: none;
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 1.75rem;
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.logo::before {
    content: '🌤️';
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.4);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.nav-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: var(--radius);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-user {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.nav-user::before {
    content: '👤';
    font-size: 1rem;
}

.logout-form {
    display: inline;
}

.btn-link {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.btn-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.lang-switcher {
    padding: var(--spacing-xs);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-color);
    font-size: 0.9rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.header .container {
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px; /* Big tap target */
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Forms */
.form-container,
.auth-form {
    max-width: 600px;
    margin: var(--spacing-lg) auto;
    background: var(--bg-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.btn-help {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.btn-help:hover {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-help.active {
    background: var(--primary-gradient);
    color: white;
}

.help-phrases {
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.help-phrases-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(10px);
}

.help-phrases-content h4 {
    margin: 0 0 var(--spacing-md) 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phrases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing-xs);
}

.phrase-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    white-space: nowrap;
}

.phrase-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    min-height: 44px; /* Big tap target */
    transition: all 0.3s ease;
    background: var(--bg-color);
}

.form-group input[type="number"] {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    font-weight: 600;
    font-size: 1.25rem;
    padding: 1.25rem;
    text-align: center;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    color: var(--primary-color);
    width: 100%;
    border-radius: var(--radius);
    font-family: inherit;
    min-height: 44px;
    transition: all 0.3s ease;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 6px 20px rgba(99, 102, 241, 0.25);
    background: #ffffff;
    transform: translateY(-2px);
}

.form-group input[type="number"]::placeholder {
    color: rgba(99, 102, 241, 0.4);
    font-weight: 400;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="date"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: var(--spacing-xs);
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

/* Weather Icons */
.weather-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.weather-icon-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    justify-content: center;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.weather-icon-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weather-icon-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.weather-icon-option:hover::before {
    opacity: 1;
}

.weather-icon-option input[type="radio"] {
    display: none;
}

.weather-icon-option input[type="radio"]:checked + svg {
    color: var(--primary-color);
}

.weather-icon-option input[type="radio"]:checked ~ span {
    font-weight: 600;
    color: var(--primary-color);
}

.weather-icon-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.weather-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-xs);
    object-fit: contain;
    transition: transform 0.3s ease;
}

.weather-icon-option:hover .weather-icon {
    transform: scale(1.1);
}

.weather-icon-option:has(input[type="radio"]:checked) .weather-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.4));
}

.weather-icon-small {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.weather-icon-large {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
}

/* Alerts */
.alert {
    padding: var(--spacing-sm);
    border-radius: var(--radius);
    margin-bottom: var(--spacing-md);
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
    color: var(--danger-color);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Filters */
.filters {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.filter-form {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 180px;
    position: relative;
}

.filter-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0;
}

.filter-group:first-child label::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

.filter-group:last-child label::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

.filter-group select,
.filter-group input[type="date"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.filter-group select:focus,
.filter-group input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 4px 16px rgba(99, 102, 241, 0.15);
    background: #ffffff;
    transform: translateY(-1px);
}

.filter-group select:hover,
.filter-group input[type="date"]:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.filter-group input[type="date"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%236366f1' d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z'/%3E%3C/svg%3E");
    background-size: 18px;
    cursor: pointer;
}

.filter-reset {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--border-color);
}

.btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    color: #ef4444;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-reset span {
    font-size: 1.2rem;
    line-height: 1;
}

.btn-reset:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Bulletins Grid */
.bulletins-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.city-group {
    background: var(--bg-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.city-group:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.city-name {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: var(--spacing-xs);
    border-bottom: 3px solid;
    border-image: var(--primary-gradient) 1;
    font-weight: 700;
}

.bulletins-list {
    display: grid;
    gap: var(--spacing-md);
}

.bulletin-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bulletin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.bulletin-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.bulletin-card:hover::before {
    transform: scaleX(1);
}

.bulletin-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.bulletin-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.bulletin-card-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bulletin-date {
    font-weight: 600;
    color: var(--text-color);
}

.bulletin-temperature {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    display: inline-block;
    margin: 0.25rem 0;
}

.bulletin-author {
    font-size: 0.9rem;
    color: var(--text-light);
}

.bulletin-preview {
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.bulletin-audio-preview {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
}

.btn-play-audio-mini {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-play-audio-mini:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-play-audio-mini.playing {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    color: white;
}

.play-icon-mini {
    font-size: 0.875rem;
    line-height: 1;
}

.audio-label-mini {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Bulletin Detail */
.bulletin-detail {
    background: var(--bg-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.bulletin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
}

.bulletin-meta h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.bulletin-date {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.bulletin-temperature {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: var(--spacing-xs) 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bulletin-author {
    color: var(--text-light);
}

.bulletin-description {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius);
    line-height: 1.8;
}

.bulletin-audio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.audio-player-simple {
    padding: var(--spacing-xl) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 251, 253, 0.98) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.audio-player-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audio-player-simple:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.2);
}

.audio-player-simple:hover::before {
    opacity: 1;
}

.audio-player-simple h3 {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    opacity: 0.8;
}

.btn-play-audio {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 2.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25), 0 0 0 0 rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-play-audio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-play-audio:hover::before {
    width: 120px;
    height: 120px;
}

.btn-play-audio:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35), 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-play-audio:active {
    transform: scale(0.95);
}

.btn-play-audio.playing {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35), 0 0 0 0 rgba(239, 68, 68, 0.2);
    animation: pulse-red 2s ease-in-out infinite;
}

.btn-play-audio.playing:hover {
    box-shadow: 0 10px 28px rgba(239, 68, 68, 0.45), 0 0 0 3px rgba(239, 68, 68, 0.15);
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35), 0 0 0 0 rgba(239, 68, 68, 0.2);
    }
    50% {
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5), 0 0 0 6px rgba(239, 68, 68, 0.08);
    }
}

.play-icon {
    display: block;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.bulletin-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.delete-form {
    display: inline;
}

.back-link {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.back-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.page-info {
    color: var(--text-light);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-light);
}

.page-header {
    margin-bottom: var(--spacing-xl);
    text-align: center;
    position: relative;
    padding: var(--spacing-lg) 0;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.page-header h1 {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
    position: relative;
    display: inline-block;
}

.page-header h1::before {
    content: '📰';
    position: absolute;
    left: -3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header h1::before {
        left: -2rem;
        font-size: 1.5rem;
    }
}

.auth-link {
    text-align: center;
    margin-top: var(--spacing-md);
    color: var(--text-light);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.current-audio {
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.current-audio p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Audio Recording */
.audio-input-container {
    margin-top: var(--spacing-sm);
}

.audio-options {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}

.btn-record,
.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-record:hover,
.btn-upload:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-record.recording {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: #ef4444;
    animation: pulse 1.5s ease-in-out infinite;
}

.btn-record.recorded {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
}

.btn-stop-recording {
    padding: 0.75rem 1.5rem;
    border: 2px solid #ef4444;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-stop-recording:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.audio-or {
    color: var(--text-light);
    font-weight: 500;
}

.audio-preview {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 2px solid var(--border-color);
}

.audio-preview audio {
    width: 100%;
    margin-bottom: var(--spacing-xs);
}

.btn-remove-audio {
    padding: 0.5rem 1rem;
    border: 2px solid var(--danger-color);
    border-radius: var(--radius);
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

.btn-remove-audio:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-top: none;
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-xl);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    box-shadow: 0 -4px 20px rgba(99, 102, 241, 0.2);
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .header {
        padding: var(--spacing-sm) 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo::before {
        font-size: 1.25rem;
    }
    
    .nav {
        gap: var(--spacing-sm);
    }
    
    .nav-link,
    .btn-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .nav-user {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .nav-links {
        gap: var(--spacing-xs);
    }
    
    .filters {
        padding: var(--spacing-md);
    }
    
    .filter-form {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .filter-group {
        width: 100%;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header h1::before {
        display: none;
    }
}

/* Responsive - Tablet and up */
@media (min-width: 768px) {
    .container {
        padding: var(--spacing-lg);
    }
    
    .header .container {
        padding: 0 var(--spacing-lg);
    }
    
    .bulletins-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-form {
        flex-wrap: nowrap;
    }
    
    .bulletin-audio {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
    .bulletins-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .weather-icons-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}


