/* Custom CSS for deepdiscoveries.com - Science/Discovery Theme (Blue) */

/* Color Palette */
:root {
    --primary-color: #3498db;
    --secondary-color: #5dade2;
    --accent-color: #2980b9;
    --text-color: #333;
    --light-bg: #f0f8ff;
    --card-bg: #f5faff;
    --border-color: #e0e0e0;
}

/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--light-bg), #eaf4fc) !important;
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.logo {
    height: unset !important;
    max-height: 70px;
    width: auto;
}

/* Navigation */
.nav-link {
    color: var(--accent-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.2);
}

/* Category Icons */
.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Article Styles */
.article {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

.article-title {
    color: var(--accent-color) !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-title:hover {
    color: var(--primary-color) !important;
}

.article-excerpt {
    color: #666;
    line-height: 1.8;
}

/* Search Styles */
.search-box {
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background: var(--primary-color) !important;
    color: white;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: var(--accent-color) !important;
}

/* IA Layout Overrides */
.ia-search input[type="text"]:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
}

.ia-search input[type="submit"] {
    background: var(--primary-color) !important;
}

.ia-search input[type="submit"]:hover {
    background: var(--accent-color) !important;
}

.ia-footer-links a:hover {
    color: var(--primary-color) !important;
}

/* Hero Section Override */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

/* Section Titles */
.section-title {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color) !important;
}

.category-title {
    color: var(--primary-color) !important;
}

.category-card:hover {
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15) !important;
    border-color: var(--primary-color) !important;
}

/* Sidebar */
.sidebar h3 {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color) !important;
}

.sidebar_article_title:hover {
    color: var(--primary-color) !important;
}

/* Footer */
.footer {
    background: #333;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-link {
    color: var(--secondary-color) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 0;
    }

    .article {
        padding: 1.5rem;
    }

    .search-box {
        margin: 0 1rem;
    }

    .category-icon {
        font-size: 2.5rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}
