/* Base styles and CSS reset */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: #1a2b3c;
    -webkit-font-smoothing: antialiased;
}

.news-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    box-sizing: border-box;
}

/* Header styles */
h1 {
    color: #1a2b3c;
    text-align: center;
    font-size: 2rem;
    margin: 1.5rem 0 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.flag {
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

/* Mode selector styles */
.mode-container {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 1000;
}

.mode-selector {
    position: relative;
}

.mode-menu-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #1a2b3c;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    justify-content: center;
}

.mode-menu-button::after {
    content: "⋮";
    line-height: 1;
}

.mode-menu-button:hover {
    background: #f1f5f9;
}

.mode-buttons {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
    z-index: 1000;
}

.mode-buttons.show {
    display: flex;
}

.mode-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.mode-button:hover {
    background: #f1f5f9;
    transform: none;
}

.mode-button.active {
    background: #f1f5f9;
}

/* Toggle button (Sources) styles */
.toggle-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #1a2b3c;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Summary section styles */
.summary-item {
    background: transparent;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.summary-item h3 {
    color: #e2e8f0;
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-line {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.summary-line:hover {
    background: #f1f5f9;
}

/* News items styles */
.news-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.news-item h4 {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.news-item p {
    color: #475569;
    margin: 0 0 1rem;
}

.news-item small {
    color: #64748b;
    font-size: 0.875rem;
}

/* Link styles */
.article-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.article-link:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
        margin: 1rem 0 1.5rem;
    }

    .mode-buttons {
        grid-template-columns: 1fr;
    }

    .mode-button {
        padding: 1rem;
    }

    .summary-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .article-link {
        align-self: flex-start;
    }

    .summary-item, .news-item {
        padding: 1rem;
        border-radius: 12px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0f172a;
        color: #e2e8f0;
    }

    h1 {
        color: #e2e8f0;
    }

    .mode-menu-button {
        color: #e2e8f0;
    }

    .mode-menu-button:hover {
        background: #334155;
    }

    .mode-buttons {
        background: #1e293b;
    }

    .mode-button {
        background: #1e293b;
    }

    .mode-button:hover {
        background: #334155;
    }

    .mode-button.active {
        background: #334155;
    }

    .toggle-button {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }

    .toggle-button:hover {
        background: #334155;
        border-color: #475569;
    }

    .summary-line {
        background: #1e293b;
    }

    .summary-line:hover {
        background: #334155;
    }

    .news-item h4 {
        color: #e2e8f0;
    }

    .news-item p {
        color: #cbd5e1;
    }

    .news-item small {
        color: #94a3b8;
    }

    .summary-item {
        background: transparent;
    }
    
    .summary-item h3 {
        color: #e2e8f0;
    }
}

.test-button {
    padding: 10px 20px;
    background-color: #FF4081;  /* Bright pink to be very visible */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin: 20px;
    display: block;  /* Make sure it's block level */
    width: 200px;    /* Fixed width */
}

.test-button:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
} 