/* ===================================
   KeralaOpinion.com - Main Stylesheet
   Malayalam Article Publishing Platform
   =================================== */

/* === Base & Typography === */
* {
    font-family: 'Noto Sans Malayalam', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #1e293b;
    line-height: 1.8;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #0f172a;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}

/* === Disclaimer Banner === */
.disclaimer-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #e2e8f0;
    padding: 8px 0;
    font-size: 13px;
    text-align: center;
    letter-spacing: 0.3px;
}

.disclaimer-banner i {
    color: #93c5fd;
}

/* === Navbar === */
.navbar {
    padding: 12px 0;
}

.logo-placeholder {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 12px;
    color: #64748b;
    line-height: 1.2;
}

.navbar .nav-link {
    font-weight: 500;
    color: #475569;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 15px;
}

.navbar .nav-link:hover {
    color: #2563eb;
    background-color: #eff6ff;
}

/* === Main Content === */
.main-content {
    min-height: 60vh;
}

/* === Home Page === */
.home-header {
    padding: 20px 0;
}

.home-title {
    font-size: 28px;
    color: #0f172a;
    position: relative;
    display: inline-block;
}

.home-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    margin: 10px auto 0;
    border-radius: 2px;
}

.home-subtitle {
    font-size: 16px;
}

/* === Article Cards === */
.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.article-card-body {
    padding: 20px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
}

.article-card-title a {
    color: #0f172a;
}

.article-card-title a:hover {
    color: #2563eb;
}

.article-card-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 12px;
}

.article-card-meta {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* === Single Article === */
.article-full {
    background: #fff;
    border-radius: 0;
}

.article-header {
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.article-title {
    font-size: 32px;
    line-height: 1.5;
    color: #0f172a;
    margin-bottom: 15px;
}

.article-meta {
    font-size: 14px;
}

.article-featured-image img {
    border-radius: 12px;
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-content {
    font-size: 17px;
    line-height: 2;
    color: #334155;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content h2, .article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.article-content blockquote {
    border-left: 4px solid #2563eb;
    padding: 15px 20px;
    background: #eff6ff;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* === Social Share === */
.social-share {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.social-share h5 {
    font-size: 16px;
    margin-bottom: 12px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-facebook { background: #1877F2; color: #fff; border: none; }
.btn-facebook:hover { background: #1565C0; color: #fff; }
.btn-twitter { background: #1DA1F2; color: #fff; border: none; }
.btn-twitter:hover { background: #0D8BDB; color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; border: none; }
.btn-whatsapp:hover { background: #1EBF5B; color: #fff; }
.btn-linkedin { background: #0A66C2; color: #fff; border: none; }
.btn-linkedin:hover { background: #0855A1; color: #fff; }
.btn-email { background: #64748b; color: #fff; border: none; }
.btn-email:hover { background: #475569; color: #fff; }

/* === Article Disclaimer === */
.article-disclaimer {
    background: linear-gradient(135deg, #fefce8, #fef3c7);
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 25px;
}

.article-disclaimer p {
    font-size: 15px;
    color: #92400e;
    margin-bottom: 5px;
    font-weight: 600;
}

.article-disclaimer small {
    color: #a16207;
    font-weight: 500;
    letter-spacing: 1px;
}

/* === Author Disclaimer Section (Footer area) === */
.author-disclaimer-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    padding: 40px 0;
    margin-top: 40px;
}

.disclaimer-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.disclaimer-icon {
    font-size: 36px;
    color: #f87171;
    margin-bottom: 15px;
    display: block;
}

.disclaimer-text {
    font-size: 18px;
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.8;
}

.disclaimer-box small {
    color: #93c5fd;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 500;
}

/* === Static Pages === */
.static-page-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    font-size: 17px;
    line-height: 2;
}

.static-page-content h2 {
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.static-page-content .author-note {
    background: linear-gradient(135deg, #fefce8, #fef3c7);
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
}

.static-page-content .author-note h3 {
    color: #92400e;
    font-size: 18px;
    margin-bottom: 10px;
}

.static-page-content .author-note p {
    color: #78350f;
    line-height: 1.8;
}

/* === Footer === */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 50px 0 0;
}

.footer-heading {
    color: #f8fafc;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-text {
    font-size: 14px;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: #60a5fa;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.2s ease;
    font-size: 16px;
}

.social-icons a:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-2px);
}

/* === Pagination === */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    color: #2563eb;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: #2563eb;
    border-color: #2563eb;
}

/* === Breadcrumb === */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-item a {
    color: #2563eb;
}

.breadcrumb-item.active {
    color: #64748b;
}

/* === Responsive === */
@media (max-width: 768px) {
    .article-title {
        font-size: 24px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .home-title {
        font-size: 24px;
    }
    
    .disclaimer-text {
        font-size: 15px;
    }
    
    .share-buttons .btn {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .brand-name {
        font-size: 16px;
    }
    
    .brand-tagline {
        font-size: 10px;
    }
    
    .logo-placeholder {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .disclaimer-banner {
        font-size: 11px;
        padding: 6px 0;
    }
    
    .static-page-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .article-card-meta {
        flex-direction: column;
        gap: 4px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-buttons .btn {
        width: 100%;
    }
}

/* === Utility === */
.btn-outline-primary {
    border-color: #2563eb;
    color: #2563eb;
}

.btn-outline-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}
