/*
Theme Name: PureSpeed Premium
Theme URI: http://purespeed.test
Description: Ultra-fast, premium-grade news and blog theme.
Author: Antigravity
Version: 2.5.0
Text Domain: purespeed
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --accent: #9c27b0;
    --accent-light: #f3e5f5;
    --accent-gradient: linear-gradient(135deg, #9c27b0, #e91e63);
    --dark: #121212;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --bg-light: #fefefe;
    --white: #ffffff;
    --border: #f0f0f0;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    --radius: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif !important;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Header --- */
.site-top-bar {
    background: var(--white);
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Premium Search Bar */
.header-search {
    width: 650px;
    margin-left: 40px;
}

.header-search .search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 6px 6px 6px 15px;
    border-radius: 50px;
    transition: 0.4s;
}

.header-search .search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.12);
    transform: translateY(-2px);
}

.header-search label {
    flex: 1;
    display: flex;
    align-items: center;
    margin: 0;
}

.header-search .search-field {
    width: 100%;
    border: none !important;
    background: transparent !important;
    padding: 10px 15px !important;
    outline: none !important;
    font-size: 15px !important;
    color: #444 !important;
    font-family: 'Outfit', sans-serif !important;
}

.header-search .search-submit {
    background: var(--accent-gradient);
    color: #fff !important;
    border: none !important;
    padding: 12px 35px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 1.5px !important;
    cursor: pointer !important;
    transition: 0.4s !important;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.25);
    font-family: 'Outfit', sans-serif !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search .search-icon {
    display: none;
    width: 22px;
    height: 22px;
}

.header-search .search-submit:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
}

/* Navigation */
.site-header {
    background: #000;
    position: sticky;
    top: 0;
    z-index: 2000;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    font-family: 'Outfit', sans-serif !important;
}

.nav-menu li a {
    color: #fff;
    padding: 18px 25px;
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu li a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 15px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* --- Layout --- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    margin-top: 40px;
}

/* --- Unified Card Styling --- */
.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.hero-card,
.post-card-overlay {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow);
}

.hero-card {
    height: 400px;
}

.hero-card.small {
    height: 192px;
}

.post-card-overlay {
    height: 320px;
}

.hero-sidebar-grid {
    display: grid;
    gap: 15px;
}

.hero-card img,
.post-card-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: 0.5s;
}

.hero-card:hover img,
.post-card-overlay:hover img {
    transform: scale(1.03);
    opacity: 0.7;
}

.hero-overlay,
.card-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
    color: #fff;
}

.label {
    background: #000;
    color: #fff;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
    border-radius: 2px;
    font-family: 'Outfit', sans-serif !important;
}

/* UNIVERSAL PREMIUM TITLES (Outfit Only) */
.hero-title,
.card-overlay-title,
.sec-title,
.wid-title,
.editorial-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
    margin: 0 0 10px !important;
    line-height: 1.2 !important;
}

.hero-title {
    font-size: 24px;
    color: #fff !important;
}

.card-overlay-title {
    font-size: 18px;
    color: #fff !important;
}

.sec-title {
    background: #000;
    color: #fff !important;
    padding: 6px 20px;
    font-size: 14px;
    border-radius: 4px 4px 0 0;
}

.wid-title {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 12px;
    font-size: 14px;
    color: var(--dark) !important;
}

.editorial-title {
    font-size: 48px;
    color: var(--dark) !important;
    text-align: center;
    margin-bottom: 40px !important;
    text-transform: none !important;
}

.card-meta-light {
    font-size: 11px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Outfit', sans-serif !important;
}

/* Section Headers */
.sec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    margin: 40px 0 20px;
}

.sec-more {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    font-family: 'Outfit', sans-serif !important;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- Sidebar --- */
.widget {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.cat-item-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f8f8f8;
    font-weight: 700;
    font-size: 13px;
    font-family: 'Outfit', sans-serif !important;
}

.cat-count-badge {
    background: #f5f5f5;
    color: #bbb;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 10px;
}

/* --- Footer --- */
.site-footer {
    background: #1a1a1a;
    color: #999;
    padding: 30px 0;
    margin-top: 60px;
    font-size: 13px;
    font-family: 'Outfit', sans-serif !important;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: #fff;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 50px 0;
    font-family: 'Outfit', sans-serif !important;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #444;
    transition: 0.3s;
}

.pagination .page-numbers.current {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.2);
}

.pagination a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* --- Page/Single Content --- */
.magazine-article {
    margin-bottom: 60px;
}

.editorial-header {
    text-align: center;
    margin-bottom: 40px;
}

.editorial-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 48px !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    line-height: 1.1 !important;
    margin-bottom: 20px !important;
    text-transform: none !important;
    /* No forced uppercase per user feedback */
}

.editorial-meta {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.editorial-featured {
    margin-bottom: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.editorial-featured img {
    width: 100%;
    height: auto;
    display: block;
}

.editorial-body {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.post-content-inner {
    font-family: 'Outfit', sans-serif !important;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.post-content-inner p {
    margin-bottom: 25px;
}

/* Category pill for single posts */
.editorial-cat {
    margin-bottom: 15px;
}

.pill-label a {
    background: var(--accent-gradient);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .header-flex {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-search {
        width: 100%;
        max-width: 550px;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000;
        max-height: 0;
        overflow: hidden;
        transition: 0.4s;
        z-index: 1000;
    }

    .site-nav.active {
        max-height: 500px;
    }

    .nav-menu {
        flex-direction: column;
    }

    .hero-title,
    .card-overlay-title {
        font-size: 13px !important;
    }

    .sec-title,
    .wid-title {
        font-size: 12px !important;
    }

    .editorial-title {
        font-size: 24px !important;
    }

    .header-search .search-form {
        padding: 4px;
    }

    .header-search .search-field {
        padding: 8px 10px !important;
        font-size: 14px !important;
    }

    .header-search .submit-text {
        display: none;
    }

    .header-search .search-icon {
        display: block;
    }

    .header-search .search-submit {
        padding: 0 !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .custom-logo {
        max-height: 50px !important;
    }

    .hero-title,
    .card-overlay-title {
        font-size: 11px !important;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}