/*
Theme Name: Media Premier
Theme URI: https://example.com
Author: Media Premier
Description: Lightweight custom WordPress theme for modern media websites.
Version: 1.0.0
Text Domain: mediapremier
*/

/* ========================================
   Base
======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #111111;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ========================================
   Layout
======================================== */

.container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

/* ========================================
   Header
======================================== */

.site-header {
    border-bottom: 1px solid #e5e5e5;
    background: #ffffff;
}

.site-header-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-branding {
    font-size: 24px;
    font-weight: 700;
}

.site-branding img {
    max-height: 60px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation a {
    font-size: 15px;
    font-weight: 600;
}

/* ========================================
   Post Card
======================================== */

.post-card {
    overflow: hidden;
}

.post-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eeeeee;
}

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

.post-card:hover .post-card-image img {
    transform: scale(1.03);
}

.post-card-content {
    padding-top: 14px;
}

.post-card-category {
    margin-bottom: 7px;
}

.post-card-category a {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card-title {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 700;
}

.post-card-title a:hover {
    text-decoration: underline;
}

.post-card-meta {
    margin-top: 10px;
    font-size: 13px;
    color: #777777;
}

/* ========================================
   Posts Grid
======================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ========================================
   Hero News
======================================== */

.hero-news {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 60px;
}

.hero-main {
    position: relative;
}

.hero-main-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eeeeee;
}

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

.hero-main-content {
    padding-top: 18px;
}

.hero-main h1 {
    margin: 8px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}


.hero-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.hero-small {
    min-width: 0;
}

.hero-small-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eeeeee;
}

.hero-small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-small-content {
    padding-top: 12px;
}

.hero-small h2 {
    margin: 6px 0 0;
    font-size: 21px;
    line-height: 1.2;
}

/* ========================================
   Responsive
======================================== */

@media (max-width: 768px) {

    .container {
        width: min(100% - 24px, 1200px);
    }

    .hero-news {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-main h1 {
        font-size: 30px;
    }

    .hero-secondary {
        gap: 20px;
    }

    .hero-small {
        grid-template-columns: 120px 1fr;
        gap: 14px;
    }

    .hero-small h2 {
        font-size: 18px;
    }

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

/* ========================================
   Horizontal Post Card
======================================== */

.post-card-horizontal {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: start;
}

.post-card-horizontal .post-card-image {
    aspect-ratio: 16 / 10;
}

.post-card-horizontal .post-card-content {
    padding-top: 0;
}

.post-card-horizontal .post-card-title {
    font-size: 24px;
}


/* ========================================
   Large Post Card
======================================== */

.post-card-large .post-card-title {
    font-size: 28px;
}


/* ========================================
   Post Meta
======================================== */

.post-meta {
    margin-top: 10px;
    font-size: 13px;
    color: #777;
}

/* ========================================
   Single Post
======================================== */

.single-post {
    max-width: 900px;
    margin: 60px auto 0;
}

.single-post-category {
    margin-bottom: 14px;
}

.single-post-category a {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.single-post-title {
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.single-post-meta {
    margin-top: 18px;
}

.single-post-featured-image {
    margin: 35px 0 0;
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
}

.single-post-content {
    margin-top: 35px;
    font-size: 19px;
    line-height: 1.75;
}

.single-post-content p {
    margin: 0 0 1.5em;
}

.single-post-content h2 {
    margin-top: 2em;
    font-size: 32px;
    line-height: 1.2;
}

.single-post-content h3 {
    margin-top: 2em;
    font-size: 26px;
    line-height: 1.3;
}

.single-post-content img {
    margin: 30px auto;
}

.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.single-post-tags-label {
    font-weight: 700;
}

.single-post-tags a {
    padding: 5px 10px;
    background: #f2f2f2;
    border-radius: 4px;
    font-size: 13px;
}


/* ========================================
   Related Posts
======================================== */

.related-posts {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.section-heading {
    margin-bottom: 25px;
}

.section-heading h2 {
    margin: 0;
    font-size: 28px;
}

@media (max-width: 768px) {

    .single-post {
        margin-top: 35px;
    }

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

    .single-post-content {
        font-size: 18px;
        line-height: 1.7;
    }

    .single-post-content h2 {
        font-size: 28px;
    }

    .related-posts {
        margin-top: 50px;
    }

}

/* ========================================
   Category / Archive
======================================== */

.archive-header {
    margin: 60px 0 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #111111;
}

.archive-title {
    margin: 0;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1;
}

.archive-description {
    max-width: 700px;
    margin-top: 15px;
    color: #666666;
    font-size: 17px;
    line-height: 1.6;
}


/* ========================================
   Category Posts
======================================== */

.category-posts {
    max-width: 900px;
}

.category-posts .post-card-horizontal {
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e5e5;
}


/* ========================================
   Pagination
======================================== */

.pagination {
    margin: 50px 0;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #dddddd;
    font-size: 14px;
}

.pagination .current {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

/* ========================================
   Header
======================================== */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.header-top {
    border-bottom: 1px solid #eeeeee;
}

.header-top-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-branding img {
    display: block;
    width: auto;
    max-height: 58px;
}

.header-info {
    margin-left: auto;
    font-size: 13px;
    color: #666666;
}


/* ========================================
   Navigation
======================================== */

.header-navigation {
    background: #ffffff;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 15px 18px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.main-navigation a:hover {
    background: #f5f5f5;
}


/* ========================================
   Mobile menu button
======================================== */

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-toggle span:not(.screen-reader-text) {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: #111111;
}

/* ========================================
   Accessibility
======================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Mobile Header
======================================== */

@media (max-width: 768px) {

    .header-top-inner {
        min-height: 68px;
    }

    .header-info {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-navigation {
        display: none;
        border-top: 1px solid #eeeeee;
    }

    .site-header.menu-open .header-navigation {
        display: block;
    }

    .main-navigation ul {
        display: block;
    }

    .main-navigation a {
        padding: 14px 0;
        border-bottom: 1px solid #eeeeee;
    }

}


