/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    --primary-color: #6366f1; /* Vivid Indigo */
    --secondary-color: #0f172a; /* Deep Slate Black */
    --light-bg: #f1f5f9; /* Soft cool gray background */
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* HEADER */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1005;
}

.top-bar {
    background: #0f172a;
    color: #cbd5e1;
    padding: 6px 0;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-date {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #e2e8f0;
}

.main-header {
    padding: 15px 0;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo span {
    color: var(--secondary-color);
}

/* HEADER RIGHT ELEMENTS */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.market-widget {
    display: flex;
    gap: 15px;
    border-right: 1px solid var(--border-color);
    padding-right: 25px;
}

.market-item {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    font-weight: 800;
    background: var(--light-bg);
    padding: 4px 10px;
    border-radius: 6px;
    text-align: center;
}

.m-label {
    color: var(--text-light);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.m-val.up { color: #10b981; }
.m-val.down { color: #ef4444; }

.header-search form {
    display: flex;
    align-items: center;
    background: var(--light-bg);
    border: 1px solid transparent;
    border-radius: 30px;
    padding: 4px 16px;
    transition: all 0.3s ease;
}

.header-search form:focus-within {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    padding: 6px 4px;
    font-family: inherit;
    width: 140px;
    font-size: 0.85rem;
    transition: width 0.3s ease;
}

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

.header-search button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

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

/* NAVBAR */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    margin-left: 10px;
}

.navbar {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

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

.nav-links li a {
    display: block;
    padding: 16px 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #818cf8);
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* BREAKING NEWS TICKER */
.breaking-ticker {
    background: linear-gradient(90deg, var(--secondary-color) 0%, #1e293b 100%);
    color: var(--white);
    border-top: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.ticker-wrap {
    display: flex;
    align-items: center;
    height: 35px;
}

.ticker-label {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.ticker-news {
    flex-grow: 1;
    overflow: hidden;
    padding-left: 15px;
    display: flex;
    align-items: center;
}

.ticker-news marquee {
    font-size: 0.8rem;
    font-weight: 500;
}

.ticker-news a {
    color: var(--white);
}

.ticker-news a:hover {
    text-decoration: underline;
}

/* DUAL SLIDER SECTION */
.dual-slider-section {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    height: 400px;
}

.slider-big-container {
    flex: 2; /* 66% width */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.slider-small-container {
    flex: 1; /* 33% width */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: var(--white);
    padding: 20px 25px;
}

.slide-content.small-content {
    padding: 15px 20px;
}

.slide-category {
    background: var(--primary-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.slide-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1.2;
}

.slide-content.small-content .slide-title {
    font-size: 1.1rem;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--white);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* MAIN CONTENT GRID */
.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

/* SECTION TITLE */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-left: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* NEWS CARDS */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-3px);
}

.card-img {
    height: 150px;
    overflow: hidden;
    display: block;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-img img {
    transform: scale(1.05);
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-summary {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.card-meta {
    margin-top: auto;
    font-size: 0.75rem;
    color: #999;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-date, .meta-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* CATEGORY SECTIONS */
.category-section {
    margin: 30px 0;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}
.category-section .news-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.category-section .card-img {
    height: 120px;
}
.category-section .card-title {
    font-size: 0.85rem;
}
.category-section .card-summary {
    display: none; /* Hide summary in smaller grids */
}
.category-section .card-body {
    padding: 10px;
}

/* SIDEBAR RECENT NEWS */
.sidebar {
    position: sticky;
    top: 140px;
}

.recent-list {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--card-shadow);
}

.recent-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-content h4 {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 6px;
}

.recent-content .card-meta {
    border: none;
    padding: 0;
}

/* DETAIL PAGE */
.article-header {
    text-align: center;
    margin: 30px 0;
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.85rem;
}

.article-img {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.article-img img {
    width: 100%;
    display: block;
}

.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

.article-content p {
    margin-bottom: 18px;
}

/* FOOTER */
.site-footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 100px 0 0;
    margin-top: 100px;
    position: relative;
}

.relative-container {
    position: relative;
}

/* Floating Newsletter */
.footer-newsletter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    padding: 40px 50px;
    border-radius: 16px;
    margin-bottom: 0;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    position: absolute;
    top: -160px;
    left: 15px;
    right: 15px;
    z-index: 10;
}

.newsletter-text h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.newsletter-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
    display: flex;
    gap: 12px;
    width: 480px;
    max-width: 100%;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 16px 22px;
    border-radius: 10px;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.newsletter-form button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0 35px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.newsletter-form button:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Footer Main */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    padding-top: 40px;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
    margin-bottom: 18px;
    display: inline-block;
}

.footer-logo span {
    color: var(--primary-color);
}

.brand-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    padding-right: 40px;
    color: #94a3b8;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 22px;
    font-weight: 700;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 25px;
}

.legal-links a:hover {
    color: var(--white);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
    .category-section .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-newsletter {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        flex-direction: column;
        text-align: center;
        gap: 25px;
        margin-bottom: 40px;
        margin-top: -120px;
    }
    
    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }
    
    .newsletter-form button {
        padding: 16px 20px;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .top-bar {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-top-wrapper {
        width: 100%;
    }
    
    .main-header {
        padding: 10px 0;
    }
    
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .header-right {
        flex-direction: row;
        width: 100%;
        gap: 10px;
    }
    
    .market-widget {
        display: none;
    }
    
    .header-search {
        width: 100%;
    }
    
    .header-search form {
        width: 100%;
    }
    
    .header-search input {
        flex-grow: 1;
        width: 100%;
    }
    
    .header-search input:focus {
        width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr !important;
    }
    .category-section .news-grid {
        grid-template-columns: 1fr !important;
    }
    
    .dual-slider-section {
        flex-direction: column;
        height: auto;
    }
    
    .slider-big-container {
        height: 300px;
    }

    .slider-small-container {
        height: 250px;
    }
    
    .slide-title {
        font-size: 1.3rem;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        background: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-color);
        z-index: 1000;
    }
    
    .navbar.active .nav-links {
        display: flex;
    }
    
    .nav-links li a {
        padding: 12px 15px;
        border-bottom: 1px solid var(--light-bg);
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    .nav-links li a {
        font-size: 0.85rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .brand-desc {
        padding-right: 0;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 14px;
    }
    
    .footer-newsletter {
        padding: 20px 15px;
    }
}
