/* assets/css/style.css */
:root {
    --primary: #0f172a;       /* Slate 900 */
    --secondary: #1e293b;     /* Slate 800 */
    --accent: #22c55e;        /* Army Green */
    --accent-hover: #16a34a;  /* Darker Army Green */
    --bg-main: #f8fafc;       /* Slate 50 */
    --text-main: #334155;     /* Slate 700 */
    --text-muted: #64748b;    /* Slate 500 */
    --border-color: #e2e8f0;  /* Slate 200 */
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    line-height: 1.2;
}

.text-accent { color: var(--accent); }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav - Premium Glassmorphism Look */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #475569;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(34, 197, 94, 0.08); /* Army Green transparent */
}

.header-search form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 50px;
    padding: 6px 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.header-search form:focus-within {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #334155;
    width: 140px;
    transition: width 0.3s ease;
}

.header-search input:focus {
    width: 200px;
}

.header-search button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color 0.3s ease;
}

.header-search button:hover {
    color: var(--accent);
}

.mobile-menu-btn { display: none; background: transparent; border: none; font-size: 2rem; cursor: pointer; color: var(--primary); }

/* Main Content Area */
.site-content {
    min-height: calc(100vh - 80px - 200px);
    padding: 10px 0;
}

/* Article Cards Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .card-img {
    transform: scale(1.08);
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.4);
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a {
    color: var(--primary);
}

.card-title a:hover {
    color: var(--accent);
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.read-more::after { content: '→'; transition: var(--transition); }
.read-more:hover::after { transform: translateX(5px); }

/* Single Article Page */
.single-article-header {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.single-category {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.single-title {
    font-size: 1.75rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.single-meta {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.single-featured-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 50px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.single-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.single-content p { 
    margin-bottom: 25px; 
    text-align: justify;
    text-justify: inter-word;
}
.single-content h1 { font-size: 1.6rem; margin: 40px 0 20px; line-height: 1.3; }
.single-content h2 { font-size: 1.4rem; margin: 35px 0 15px; line-height: 1.3; }
.single-content h3 { font-size: 1.2rem; margin: 30px 0 15px; line-height: 1.3; }
.single-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 30px 0; }
.single-content blockquote {
    border-left: 5px solid var(--accent);
    padding: 20px 30px;
    background: #fff;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Hero Grid Section - Enhanced Premium Look */
.hero-grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 500px;
}

.hero-side-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.hero-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--primary);
    display: flex;
    align-items: flex-end;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.hero-item-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.85;
    transition: transform 10s ease-out;
}

.hero-item:hover .hero-item-bg {
    transform: scale(1.1);
}

.hero-item-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0) 100%);
    z-index: 2;
}

.hero-item-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    width: 100%;
}

.hero-main .hero-item-content {
    padding: 40px;
}

.hero-badge {
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
    letter-spacing: 1px;
}

.hero-badge.small-badge {
    padding: 4px 10px;
    font-size: 0.7rem;
    margin-bottom: 10px;
}

.hero-item-title a {
    color: white;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-item-title a:hover {
    color: var(--accent);
}

.hero-item-title.large-title a {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.hero-item-title.small-title a {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.hero-item-meta {
    color: #cbd5e1;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .hero-grid-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    .hero-main {
        height: 400px;
    }
    .hero-side-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
    }
    .hero-sub {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-side-grid {
        grid-template-columns: 1fr;
    }
    .hero-item-title.large-title a {
        font-size: 1.6rem;
    }
    .hero-item-title.small-title a {
        font-size: 1.2rem;
    }
    .hero-main {
        height: 350px;
    }
}

/* Layout with Sidebar */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Prevent grid items blowout on mobile */
.main-content, .sidebar {
    min-width: 0;
}

/* Widgets Styling */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px;
}

.widget {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.02);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-main);
    position: relative;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 40px; height: 2px;
    background: var(--accent);
}

.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-main);
}
.widget-list li:last-child { border-bottom: none; }

.widget-list a {
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: var(--transition);
}

.widget-list a:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* Trending Widget */
.trending-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}
.trending-item:last-child { margin-bottom: 0; }

.trending-img {
    width: 80px; height: 80px;
    border-radius: 8px;
    object-fit: cover;
    transition: var(--transition);
}
.trending-item:hover .trending-img {
    transform: scale(1.05);
}

.trending-info h4 {
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.trending-info h4 a { color: var(--primary); }
.trending-info h4 a:hover { color: var(--accent); }
.trending-meta { font-size: 0.8rem; color: var(--text-muted); }

/* Newsletter Widget */
.newsletter-widget p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}
.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    outline: none;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.newsletter-form button:hover { background: var(--accent-hover); }

/* Footer */
.site-footer {
    background-color: var(--primary);
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about h3 { color: white; font-size: 2rem; margin-bottom: 15px; font-family: 'Outfit', sans-serif;}
.footer-about p { color: #94a3b8; margin-top: 15px; line-height: 1.7; font-size: 0.95rem;}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--accent);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; transition: var(--transition); display: inline-block; font-size: 0.95rem;}
.footer-links a:hover { color: var(--accent); transform: translateX(5px); }

.footer-newsletter p { color: #94a3b8; margin-bottom: 15px; font-size: 0.95rem; }
.footer-newsletter form { display: flex; flex-direction: column; gap: 10px; }
.footer-newsletter input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    background: rgba(0,0,0,0.2);
    color: white;
    outline: none;
}
.footer-newsletter button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}
.footer-newsletter button:hover { background: var(--accent-hover); }

.social-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    font-weight: bold;
    text-decoration: none;
}
.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}
.footer-bottom-links a {
    color: #64748b;
    margin-left: 20px;
    transition: var(--transition);
}
.footer-bottom-links a:hover { color: white; }

/* Page Header (Category/Search) */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 60px 20px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 30px; }
    .sidebar { margin-top: 40px; }
}

@media (max-width: 768px) {
    .nav-links, .header-search { display: none; }
    .mobile-menu-btn { display: block; }

    /* Mobile Menu Active State */
    .header-container.menu-active {
        flex-wrap: wrap;
        height: auto;
        padding-bottom: 20px;
    }
    .header-container.menu-active .main-nav,
    .header-container.menu-active .header-search {
        display: flex;
        width: 100%;
        order: 3;
        margin-top: 20px;
    }
    .header-container.menu-active .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .header-container.menu-active .nav-links a {
        display: block;
        padding: 10px 15px;
        background: #f8fafc;
        border-radius: 8px;
    }
    .header-container.menu-active .header-search {
        order: 4;
        margin-top: 10px;
    }
    .header-container.menu-active .header-search form {
        width: 100%;
    }
    .header-container.menu-active .header-search input {
        width: 100%;
    }

    .single-title { font-size: 1.3rem; }
    .single-content { font-size: 1rem; }
    .single-content h1 { font-size: 1.25rem; margin: 30px 0 15px; }
    .single-content h2 { font-size: 1.15rem; margin: 25px 0 15px; }
    .single-content h3 { font-size: 1.05rem; margin: 20px 0 10px; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .hero-section { height: 400px; }
    .hero-title { font-size: 2rem; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .footer-bottom-links a { margin: 0 10px; }
}

/* Premium Play Button */
.premium-btn-play {
    position: relative;
    background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
    color: white !important;
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4), inset 0 2px 0 rgba(255,255,255,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
}
.premium-btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.6), inset 0 2px 0 rgba(255,255,255,0.3);
}
.premium-btn-play::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine-btn 3s infinite;
}
@keyframes shine-btn {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Fix Header Search & Play Button Layout on Mobile */
@media (max-width: 768px) {
    .header-search {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px;
    }
    .header-search .premium-btn-play {
        text-align: center;
        width: 100%;
        margin-top: 10px;
    }
}

/* Add Desktop Flex for header-search */
@media (min-width: 769px) {
    .header-search {
        display: flex;
        align-items: center;
        gap: 15px;
    }
}
