/* Global styles */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    background: #343a40;
    color: white;
    padding: 2rem 0;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: 600;
}

/* Featured news */
.featured-news {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-height: 400px;
}

.featured-news img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-news .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.featured-news .overlay h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.featured-news .overlay .lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.featured-news .source-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 2;
}

.featured-news .btn-light {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

/* News grid */
.news-grid .card {
    transition: transform 0.3s ease;
    height: 100%;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.news-grid .card:hover {
    transform: translateY(-5px);
}

.news-grid .card img {
    height: 200px;
    object-fit: cover;
}

.news-grid .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.news-grid .card-title a {
    color: inherit;
    text-decoration: none;
}

.news-grid .card-title a:hover {
    color: #0d6efd;
}

/* Loading indicator */
#loading {
    display: none;
    text-align: center;
    padding: 20px;
}

/* Source badge */
.source-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 1;
}

/* Стили для заголовков */
.card-title strong,
.card-title em,
.card-title u,
.news-article h1 strong,
.news-article h1 em,
.news-article h1 u {
    color: inherit;
    text-decoration-color: rgba(13, 110, 253, 0.5);
}

.card-title em,
.news-article h1 em {
    font-style: italic;
    color: #2c3e50;
}

.card-title strong,
.news-article h1 strong {
    font-weight: 700;
    color: #2c3e50;
}

.card-title u,
.news-article h1 u {
    text-decoration: underline;
    text-decoration-color: rgba(13, 110, 253, 0.5);
    text-decoration-thickness: 2px;
} 