/* ================================
   MySnowDayChance - Main Stylesheet
   ================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #2d5a8c 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    padding: 20px;
    padding-top: 80px;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.3em;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(74, 144, 226, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Snowflake Animation */
.snowflake {
    position: fixed;
    top: -20px;
    font-size: 1.2em;
    animation: fall linear infinite;
    pointer-events: none;
    opacity: 0.8;
    z-index: 1;
    will-change: transform;
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(110vh) rotate(360deg); }
}

/* Main Container */
main {
    width: 100%;
    max-width: 650px;
    z-index: 2;
}

.container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 24px;
}

h1 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Info Section */
.info-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.info-section h2 {
    color: #7ec8f8;
    font-size: 1.15em;
    margin-bottom: 12px;
    font-weight: 600;
}

.info-section p {
    font-size: 0.95em;
    opacity: 0.9;
    margin-bottom: 8px;
}

.info-section p:last-child {
    margin-bottom: 0;
}

/* Form Elements */
.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 8px;
    opacity: 0.9;
}

.input-wrapper {
    position: relative;
}

input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1em;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.3);
}

input[type="text"]::placeholder {
    color: #888;
}

/* Location Dropdown */
.location-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    border: 2px solid rgba(74, 144, 226, 0.3);
}

.location-dropdown.visible {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-header svg {
    width: 16px;
    height: 16px;
}

.location-option {
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
}

.location-option:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.location-option:hover,
.location-option:focus {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(53, 122, 189, 0.1));
}

.location-option:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(74, 144, 226, 0.5);
}

.location-option.selected {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(53, 122, 189, 0.15));
}

.location-name {
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-name .country-flag {
    font-size: 1.1em;
}

.location-details {
    font-size: 0.85em;
    color: #666;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.location-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.location-details .population {
    color: #888;
}

.dropdown-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

.dropdown-loading .mini-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(74, 144, 226, 0.2);
    border-top-color: #4a90e2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 8px;
}

.dropdown-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}

.dropdown-no-results p {
    margin-bottom: 8px;
}

.dropdown-no-results .suggestion {
    font-size: 0.85em;
    color: #888;
}

button {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Recent Searches */
.recent-searches {
    margin-top: 12px;
    display: none;
}

.recent-searches.visible {
    display: block;
}

.recent-searches p {
    font-size: 0.85em;
    opacity: 0.7;
    margin-bottom: 8px;
}

.recent-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recent-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 8px 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.recent-tag:hover {
    background: rgba(255, 255, 255, 0.25);
}

.recent-tag .tag-text {
    cursor: pointer;
}

.recent-tag .tag-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.recent-tag .tag-remove:hover {
    background: rgba(239, 68, 68, 0.8);
    opacity: 1;
    transform: scale(1.1);
}

.clear-all-btn {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-all-btn:hover {
    border-color: rgba(239, 68, 68, 0.5);
    color: rgba(239, 68, 68, 0.9);
    background: rgba(239, 68, 68, 0.1);
}

/* Loading State */
.loading {
    text-align: center;
    display: none;
    margin-top: 24px;
    padding: 20px;
}

.loading.visible {
    display: block;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    opacity: 0.9;
}

/* Results */
.result {
    display: none;
    margin-top: 24px;
    animation: fadeIn 0.5s ease;
}

.result.visible {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-header {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 16px;
}

.percentage {
    font-size: 4em;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #a8d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.verdict {
    font-size: 1.3em;
    margin-top: 8px;
}

.breakdown {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
}

.breakdown h3 {
    font-size: 1em;
    margin-bottom: 16px;
    opacity: 0.9;
}

.factor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.factor:last-child {
    border-bottom: none;
}

.factor-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.factor-value {
    font-weight: 600;
}

/* Share & Actions */
.result-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.result-actions button {
    flex: 1;
    padding: 12px;
    font-size: 0.95em;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.result-actions button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

.disclaimer {
    text-align: center;
    font-size: 0.85em;
    opacity: 0.7;
    margin-top: 16px;
}

/* Error State */
.error-box {
    background: rgba(255, 80, 80, 0.2);
    border: 1px solid rgba(255, 80, 80, 0.3);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.error-box p {
    margin-bottom: 12px;
}

.error-box .suggestion {
    font-size: 0.9em;
    opacity: 0.8;
}

/* FAQ Section */
.faq-section {
    margin-top: 32px;
}

.faq-section h2 {
    font-size: 1.3em;
    margin-bottom: 20px;
    text-align: center;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.3em;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 20px 16px;
    font-size: 0.95em;
    opacity: 0.85;
    line-height: 1.6;
}

/* Blog Preview Section */
.blog-preview {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-preview-header {
    text-align: center;
    margin-bottom: 24px;
}

.blog-preview-header h2 {
    font-size: 1.5em;
    margin-bottom: 8px;
}

.blog-preview-header p {
    opacity: 0.8;
    font-size: 0.95em;
}

.blog-preview-grid {
    display: grid;
    gap: 16px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.blog-card-icon {
    font-size: 2em;
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #7ec8f8;
}

.blog-card p {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 12px;
    line-height: 1.5;
}

.read-more {
    font-size: 0.85em;
    color: #a8d8ff;
    font-weight: 600;
}

.blog-preview-footer {
    text-align: center;
    margin-top: 24px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Footer */
footer {
    margin-top: 40px;
    width: 100%;
    max-width: 650px;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.footer-section h4 {
    font-size: 1em;
    margin-bottom: 12px;
    color: #7ec8f8;
}

.footer-section p {
    font-size: 0.85em;
    opacity: 0.7;
    line-height: 1.5;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85em;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #a8d8ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85em;
    opacity: 0.7;
}

.footer-bottom a {
    color: #a8d8ff;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* ================================
   Blog Page Styles
   ================================ */

.blog-container {
    max-width: 900px;
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-header h1 {
    font-size: 2.5em;
    margin-bottom: 12px;
}

.blog-header p {
    font-size: 1.1em;
    opacity: 0.8;
}

.blog-grid {
    display: grid;
    gap: 24px;
}

.blog-list-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 28px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
}

.blog-list-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.blog-list-icon {
    font-size: 2.5em;
    background: rgba(255, 255, 255, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-list-content h2 {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: #7ec8f8;
}

.blog-list-content p {
    font-size: 0.95em;
    opacity: 0.8;
    margin-bottom: 12px;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8em;
    opacity: 0.6;
}

/* ================================
   Article Page Styles
   ================================ */

.article-container {
    max-width: 750px;
}

.article-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-icon {
    font-size: 3em;
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 2em;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9em;
    opacity: 0.7;
}

.article-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 32px;
}

.article-content h2 {
    font-size: 1.4em;
    color: #7ec8f8;
    margin: 32px 0 16px;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    opacity: 0.9;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
    opacity: 0.9;
}

.article-content strong {
    color: #a8d8ff;
}

.key-point {
    background: rgba(74, 144, 226, 0.2);
    border-left: 4px solid #4a90e2;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 12px 12px 0;
}

.key-point p {
    margin: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95em;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #7ec8f8;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cta-box {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.3), rgba(53, 122, 189, 0.3));
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin: 32px 0;
}

.cta-box h3 {
    font-size: 1.2em;
    margin-bottom: 12px;
}

.cta-box p {
    margin-bottom: 16px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-nav a {
    color: #a8d8ff;
    text-decoration: none;
    font-size: 0.95em;
    transition: opacity 0.2s ease;
}

.article-nav a:hover {
    opacity: 0.8;
}

.related-articles {
    margin-top: 40px;
}

.related-articles h3 {
    font-size: 1.2em;
    margin-bottom: 20px;
    text-align: center;
}

.related-grid {
    display: grid;
    gap: 16px;
}

.related-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-card:hover {
    background: rgba(255, 255, 255, 0.12);
}

.related-card span:first-child {
    font-size: 1.5em;
}

.related-card span:last-child {
    font-size: 0.95em;
    color: #7ec8f8;
}

/* About & Contact Pages */
.page-container {
    max-width: 700px;
}

.page-header {
    text-align: center;
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 2.2em;
    margin-bottom: 12px;
}

.page-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-content h2 {
    font-size: 1.3em;
    color: #7ec8f8;
    margin: 28px 0 16px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    opacity: 0.9;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9em;
    opacity: 0.9;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.3);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        flex-direction: column;
        padding: 16px;
        gap: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .blog-list-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .blog-list-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
        padding-top: 72px;
    }
    
    .container,
    .blog-preview,
    .page-content,
    .article-content {
        padding: 24px 20px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .percentage {
        font-size: 3em;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .location-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .article-nav {
        flex-direction: column;
        text-align: center;
    }
}

/* ================================
   Stats Bar
   ================================ */

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 20px;
}

.stat-icon {
    font-size: 1.1em;
}

.stat-value {
    font-weight: 600;
}

.stat-label {
    opacity: 0.8;
}

.stat-item.decision-active {
    background: rgba(74, 222, 128, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

/* ================================
   Hourly Timeline
   ================================ */

.hourly-timeline {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.hourly-timeline h4 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 1em;
    color: #a8d8ff;
}

.timeline-container {
    width: 100%;
}

.timeline-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    gap: 2px;
    padding: 0 4px;
}

.timeline-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
}

.timeline-bar-wrapper.commute {
    background: rgba(74, 222, 128, 0.1);
    border-radius: 4px 4px 0 0;
}

.timeline-bar-wrapper.night {
    opacity: 0.7;
}

.timeline-bar {
    width: 100%;
    max-width: 20px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: auto;
}

.timeline-bar.none {
    background: rgba(255, 255, 255, 0.1);
}

.timeline-bar.light {
    background: linear-gradient(to top, #60a5fa, #93c5fd);
}

.timeline-bar.moderate {
    background: linear-gradient(to top, #3b82f6, #60a5fa);
}

.timeline-bar.heavy {
    background: linear-gradient(to top, #1d4ed8, #3b82f6);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.bar-value {
    font-size: 0.6em;
    font-weight: 600;
    position: absolute;
    top: -16px;
    white-space: nowrap;
}

.timeline-label {
    font-size: 0.65em;
    opacity: 0.7;
    margin-top: 4px;
    height: 14px;
}

.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    font-size: 0.75em;
    opacity: 0.8;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.commute {
    background: rgba(74, 222, 128, 0.4);
}

.legend-dot.night {
    background: rgba(255, 255, 255, 0.2);
}

/* ================================
   Improved Results UI
   ================================ */

.last-updated {
    font-size: 0.8em;
    opacity: 0.7;
    margin-top: 8px;
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.weather-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weather-icon {
    font-size: 1.5em;
}

.weather-value {
    font-size: 1.3em;
    font-weight: 700;
}

.weather-label {
    font-size: 0.8em;
    opacity: 0.7;
}

.factors-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.factors-section h4 {
    font-size: 0.95em;
    margin-bottom: 12px;
    color: #a8d8ff;
}

.factors-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.factor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9em;
}

.factor-name {
    opacity: 0.9;
}

.factor-impact {
    font-weight: 600;
    color: #ef4444;
}

.factor-impact.positive {
    color: #4ade80;
}

/* ================================
   Alert Signup Section
   ================================ */

.alert-signup {
    margin-top: 40px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(53, 122, 189, 0.2));
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.alert-signup-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.alert-signup-content.alert-success {
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.alert-icon {
    font-size: 2.5em;
}

.alert-text {
    flex: 1;
    min-width: 200px;
}

.alert-text h3 {
    font-size: 1.2em;
    margin-bottom: 4px;
}

.alert-text p {
    font-size: 0.9em;
    opacity: 0.8;
}

.alert-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.alert-form input {
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    font-size: 1em;
    min-width: 220px;
}

.alert-form input:focus {
    outline: none;
    border-color: #4a90e2;
}

.alert-form button {
    padding: 12px 24px;
    width: auto;
    white-space: nowrap;
}

.alert-note {
    text-align: center;
    font-size: 0.8em;
    opacity: 0.6;
    margin-top: 16px;
}

/* ================================
   Enhanced Visual Effects
   ================================ */

/* Animated gradient border for results */
.result.visible .result-header {
    position: relative;
    overflow: hidden;
}

.result.visible .result-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Probability meter animation */
.percentage {
    animation: countUp 0.5s ease-out;
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* Pulse effect for high probability */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50% { box-shadow: 0 0 20px 10px rgba(74, 222, 128, 0); }
}

.result-header:has(.percentage[style*="4ade80"]) {
    animation: pulse 2s ease-in-out infinite;
    border-radius: 16px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .snowflake,
    .spinner {
        animation: none;
    }
    
    .result,
    .location-dropdown.visible {
        animation: none;
    }
    
    .result.visible .result-header::before,
    .percentage,
    .result-header {
        animation: none;
    }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
input:focus-visible,
.faq-question:focus-visible,
.recent-tag:focus-visible,
.location-option:focus-visible,
a:focus-visible {
    outline: 3px solid #4a90e2;
    outline-offset: 2px;
}

/* ================================
   Responsive Updates
   ================================ */

@media (max-width: 600px) {
    .stats-bar {
        flex-direction: column;
        gap: 8px;
    }
    
    .stat-item {
        justify-content: center;
    }
    
    .timeline-bars {
        height: 80px;
    }
    
    .bar-value {
        display: none;
    }
    
    .weather-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .weather-card {
        padding: 12px;
    }
    
    .weather-value {
        font-size: 1.1em;
    }
    
    .alert-signup-content {
        flex-direction: column;
        text-align: center;
    }
    
    .alert-form {
        width: 100%;
        flex-direction: column;
    }
    
    .alert-form input {
        width: 100%;
        min-width: unset;
    }
    
    .alert-form button {
        width: 100%;
    }
}
