/*
Theme Name: Oliveloaded
Theme URI: https://oliveloaded.com
Author: Oliveloaded Team
Description: A premium, fast, and responsive theme for informative content
Version: 1.0.0
License: GPL v2 or later
Text Domain: oliveloaded
*/

/* ============================================================
   COMPLETE THEME STYLES - Copy ALL of this
   ============================================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    line-height: 1.7;
}

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

/* --- HEADER --- */
.site-header {
    background: #ffffff;
    padding: 18px 0;
    border-bottom: 1px solid #e8ecf0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

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

.site-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
}

.site-title a {
    background: linear-gradient(135deg, #1a1a2e, #0066cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.site-description {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

/* --- Navigation --- */
.main-navigation ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: #0066cc;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1a1a2e;
}

/* --- FEATURED SECTION --- */
.featured-section {
    margin-bottom: 40px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.featured-main {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e8ecf0;
    transition: transform 0.3s;
}

.featured-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.featured-main .featured-image {
    height: 320px;
    overflow: hidden;
}

.featured-main .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-main .featured-content {
    padding: 28px 30px 30px;
}

.featured-main .featured-content .featured-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0066cc;
    font-weight: 600;
}

.featured-main .featured-content h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin: 8px 0 12px;
}

.featured-main .featured-content h2 a {
    color: #1a1a2e;
    text-decoration: none;
}

.featured-main .featured-content h2 a:hover {
    color: #0066cc;
}

.featured-main .featured-content p {
    color: #4a5568;
    font-size: 15px;
}

.featured-main .featured-meta {
    font-size: 13px;
    color: #9aa6b5;
    margin-top: 12px;
}

.featured-main .featured-meta span {
    margin-right: 18px;
}

.featured-main .featured-meta i {
    margin-right: 4px;
}

/* --- Featured Sidebar --- */
.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-sidebar .sidebar-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8ecf0;
    display: flex;
    gap: 16px;
    padding: 14px;
    align-items: center;
    transition: all 0.2s;
}

.featured-sidebar .sidebar-item:hover {
    transform: translateX(4px);
    border-color: #d0d7de;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.featured-sidebar .sidebar-item .thumb {
    width: 90px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #e8ecf0;
}

.featured-sidebar .sidebar-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-sidebar .sidebar-item .info h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.featured-sidebar .sidebar-item .info h4 a {
    color: #1a1a2e;
    text-decoration: none;
}

.featured-sidebar .sidebar-item .info h4 a:hover {
    color: #0066cc;
}

.featured-sidebar .sidebar-item .info .meta {
    font-size: 12px;
    color: #9aa6b5;
}

/* --- SECTION HEADERS --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e8ecf0;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.section-header .view-all {
    font-size: 14px;
    color: #718096;
    text-decoration: none;
    font-weight: 500;
}

.section-header .view-all:hover {
    color: #0066cc;
}

.section-header .post-count {
    font-size: 14px;
    color: #718096;
    background: #e8ecf0;
    padding: 2px 14px;
    border-radius: 20px;
}

/* --- GRID --- */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 45px;
}

/* --- GRID ITEM --- */
.grid-item {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8ecf0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.grid-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
    border-color: #d0d7de;
}

.grid-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* --- GRID IMAGE --- */
.grid-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e8ecf0;
    position: relative;
}

.grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.grid-item:hover .grid-image img {
    transform: scale(1.04);
}

/* --- BADGES --- */
.trending-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.category-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 102, 204, 0.92);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 14px;
    border-radius: 20px;
}

/* --- GRID CONTENT --- */
.grid-content {
    padding: 20px 22px 24px;
}

.grid-content h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.grid-content h3 a {
    color: #1a1a2e;
    text-decoration: none;
}

.grid-content h3 a:hover {
    color: #0066cc;
}

.grid-excerpt {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 12px;
}

.grid-meta {
    font-size: 12px;
    color: #9aa6b5;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.grid-meta i {
    margin-right: 4px;
    font-size: 11px;
    color: #b8c4d0;
}

/* --- NEWSLETTER --- */
.newsletter-section {
    background: linear-gradient(135deg, #1a1a2e, #2d3748);
    border-radius: 16px;
    padding: 50px 40px;
    margin: 20px 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.newsletter-content h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.newsletter-content p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    min-width: 320px;
    flex: 1;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    background: rgba(255,255,255,0.95);
    transition: all 0.3s;
}

.newsletter-form input[type="email"]:focus {
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

.newsletter-form .btn-subscribe {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    background: #f39c12;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.newsletter-form .btn-subscribe:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(243, 156, 18, 0.3);
}

/* --- FOOTER --- */
.site-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 40px 0 24px;
    margin-top: 30px;
}

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

.footer-grid h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 14px;
}

.footer-grid p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid ul li {
    margin-bottom: 8px;
}

.footer-grid ul a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-grid ul a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
}

/* --- PAGINATION --- */
.pagination-wrapper {
    margin-top: 30px;
    text-align: center;
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a2e;
    transition: all 0.2s;
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.pagination-wrapper .page-numbers.current {
    cursor: default;
}

/* --- WIDGETS --- */
.widget {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8ecf0;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f5;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul a {
    color: #4a5568;
    text-decoration: none;
}

.widget ul a:hover {
    color: #0066cc;
}

/* --- SINGLE POST --- */
.single-post .entry-header {
    margin-bottom: 24px;
}

.single-post .entry-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.single-post .entry-meta {
    font-size: 14px;
    color: #718096;
    margin-top: 10px;
}

.single-post .entry-content {
    font-size: 16px;
    line-height: 1.8;
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
    margin-top: 30px;
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 14px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
    }

    .main-navigation ul.show {
        display: flex;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-image {
        height: 180px;
    }

    .featured-main .featured-image {
        height: 220px;
    }

    .featured-main .featured-content {
        padding: 20px;
    }

    .featured-main .featured-content h2 {
        font-size: 20px;
    }

    .featured-sidebar {
        grid-template-columns: 1fr;
    }

    .newsletter-section {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .newsletter-form {
        min-width: auto;
        width: 100%;
        flex-direction: column;
    }

    .newsletter-form .btn-subscribe {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .grid-content h3 {
        font-size: 16px;
    }

    .single-post .entry-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .grid-content {
        padding: 16px 18px 18px;
    }

    .grid-image {
        height: 160px;
    }

    .container {
        padding: 0 16px;
    }

    .featured-main .featured-content h2 {
        font-size: 18px;
    }
}
