/* USA Birds - Styles
   Color palette derived from banner:
   - Navy Blue: #1a2e5a
   - Red Accent: #c41230
   - Light Blue: #e8f4fc
   - White: #ffffff
   - Dark Text: #2c3e50
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #e8f4fc 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #2c3e50;
}

/* Header & Banner */
.site-header {
    background: linear-gradient(180deg, #f0f7fc 0%, #e8f4fc 100%);
}

.banner-container {
    width: 100%;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Navigation */
.main-nav {
    background: linear-gradient(90deg, #1a2e5a 0%, #2a4073 100%);
    padding: 0;
    box-shadow: 0 2px 10px rgba(26, 46, 90, 0.3);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.main-nav li {
    margin: 0;
}

.nav-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 15px 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: #c41230;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: #c41230;
}

/* Main Content */
.content-area {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

#content-container {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Content Sections */
.section-title {
    color: #1a2e5a;
    font-size: 2.2rem;
    margin-bottom: 10px;
    border-left: 4px solid #c41230;
    padding-left: 15px;
}

.section-subtitle {
    color: #5a6d7e;
    font-size: 1.1rem;
    margin-bottom: 30px;
    padding-left: 19px;
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.article-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(26, 46, 90, 0.1);
    padding: 25px;
    transition: all 0.3s ease;
    border-top: 4px solid #1a2e5a;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 46, 90, 0.15);
    border-top-color: #c41230;
}

.article-card h3 {
    color: #1a2e5a;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.article-card .date {
    color: #c41230;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.article-card p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 0.95rem;
}

.article-card .tag {
    display: inline-block;
    background: #e8f4fc;
    color: #1a2e5a;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 15px;
    margin-right: 5px;
}

/* Home Section */
.hero-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7fc 100%);
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 3px 15px rgba(26, 46, 90, 0.08);
}

.hero-section h1 {
    color: #1a2e5a;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-section .highlight {
    color: #c41230;
}

.hero-section p {
    color: #5a6d7e;
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(26, 46, 90, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #1a2e5a;
}

.tool-card:hover {
    border-left-color: #c41230;
    transform: translateX(5px);
}

.tool-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.tool-card h3 {
    color: #1a2e5a;
    margin-bottom: 10px;
}

.tool-card p {
    color: #5a6d7e;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* About Section */
.about-content {
    background: #ffffff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 3px 15px rgba(26, 46, 90, 0.1);
    line-height: 1.8;
}

.about-content h2 {
    color: #1a2e5a;
    margin-bottom: 20px;
    margin-top: 30px;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    margin-bottom: 15px;
    color: #4a5568;
}

.about-content a {
    color: #c41230;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.about-content a:hover {
    border-bottom-color: #c41230;
}

/* Footer */
.site-footer {
    background: linear-gradient(90deg, #1a2e5a 0%, #2a4073 100%);
    color: #ffffff;
    text-align: center;
    padding: 30px 25px;
    margin-top: auto;
}

.site-footer p {
    margin: 5px 0;
}

.footer-tagline {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.9;
}

.footer-contact {
    font-size: 0.95rem;
    margin: 12px 0 !important;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    transition: border-color 0.3s ease;
}

.footer-contact a:hover {
    border-bottom-color: #c41230;
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 10px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-section h1 {
        font-size: 1.9rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Spinner */
.loading-container {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e8f4fc;
    border-top-color: #1a2e5a;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

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

.loading-container p {
    color: #5a6d7e;
    font-size: 1rem;
}

/* Feed Status */
.feed-status {
    text-align: center;
    color: #5a6d7e;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 8px 15px;
    background: #f0f7fc;
    border-radius: 20px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* Article Card Links */
.article-card h3 a {
    color: #1a2e5a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h3 a:hover {
    color: #c41230;
}

/* Source Tag */
.tag.source {
    background: #1a2e5a;
    color: #ffffff;
}
