/* Yenigün Gazete - Ana stiller */

:root {
    --yg-primary: #1a72bf;
    --yg-primary-dark: #155a9a;
    --yg-text: #222;
    --yg-text-light: #666;
    --yg-border: #ededed;
    --yg-bg: #fff;
    --yg-container: 1068px;
    --yg-font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --yg-font-title: 'Roboto', var(--yg-font);
}

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

body {
    margin: 0;
    font-family: var(--yg-font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--yg-text);
    background: var(--yg-bg);
}

a {
    color: var(--yg-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--yg-primary-dark);
}

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

.yg-container {
    width: 100%;
    max-width: var(--yg-container);
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.yg-header {
    background: linear-gradient(to bottom, #222 0%, var(--yg-primary-dark) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 100;
}

.yg-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 70px;
    flex-wrap: wrap;
}

.yg-logo {
    flex-shrink: 0;
}

.yg-logo img,
.custom-logo {
    max-height: 60px;
    width: auto;
}

.yg-logo-text {
    color: #fff;
    font-family: var(--yg-font-title);
    font-size: 1.25rem;
    font-weight: 700;
}

.yg-nav {
    flex: 1;
    min-width: 0;
}

.yg-menu,
.yg-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.yg-menu li a,
.yg-mobile-menu li a {
    display: block;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.yg-menu li a:hover,
.yg-menu .current-menu-item > a,
.yg-menu .current_page_item > a,
.yg-mobile-menu li a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.yg-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.yg-social {
    display: flex;
    gap: 6px;
}

.yg-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #fff;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.yg-social a:hover {
    background: var(--yg-primary);
    color: #fff;
}

.yg-search-toggle {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
}

.yg-search-panel {
    background: #f4f4f4;
    border-top: 3px solid var(--yg-primary);
    padding: 12px 0;
}

.yg-search-form {
    display: flex;
    gap: 8px;
}

.yg-search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.yg-search-form button {
    padding: 10px 20px;
    background: var(--yg-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.yg-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.yg-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
}

.yg-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #222;
    z-index: 200;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.yg-mobile-nav[hidden],
.yg-search-panel[hidden] {
    display: none !important;
}

.yg-mobile-nav-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.yg-mobile-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.yg-mobile-menu {
    flex-direction: column;
}

.yg-mobile-menu li a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.yg-nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
}

/* Main */
.yg-main {
    padding: 20px 0 40px;
}

.yg-section {
    margin-bottom: 28px;
}

/* Grid */
.yg-grid {
    display: grid;
    gap: 20px;
}

.yg-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Cards */
.yg-card {
    border-bottom: 1px solid var(--yg-border);
    padding-bottom: 16px;
}

.yg-card-thumb {
    display: block;
    margin-bottom: 10px;
    overflow: hidden;
    background: #f0f0f0;
}

.yg-card-thumb .yg-thumb {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.yg-card-small .yg-card-thumb {
    aspect-ratio: 218 / 150;
}

.yg-card-medium .yg-card-thumb {
    aspect-ratio: 324 / 160;
}

.yg-card:hover .yg-thumb {
    transform: scale(1.03);
}

.yg-card-title {
    margin: 0;
    font-family: var(--yg-font-title);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

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

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

/* Reklam */
.yg-ads-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    width: 100%;
}

.yg-ad-block {
    width: 100%;
    text-align: center;
    line-height: 0;
}

.yg-ad-block img,
.yg-ad-full img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.yg-widgets-row .yg-widget-col {
    text-align: center;
    width: 100%;
    min-width: 0;
}

.yg-widgets-row .yg-widget-col img,
.yg-widgets-row .wp-block-image img,
.yg-widgets-row figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.yg-widgets-row .wp-block-image,
.yg-widgets-row figure {
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.yg-widgets-row iframe {
    width: 100%;
    max-width: 100%;
}

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

.yg-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Big grid */
.yg-big-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    min-height: 320px;
}

.yg-big-main {
    position: relative;
    overflow: hidden;
    grid-row: span 2;
}

.yg-big-thumb {
    display: block;
    height: 100%;
    min-height: 320px;
}

.yg-big-thumb .yg-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
}

.yg-big-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.yg-big-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.yg-big-title a {
    color: #fff;
}

.yg-big-title a:hover {
    color: #fff;
    opacity: 0.9;
}

.yg-big-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.yg-big-side-item {
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.yg-side-thumb {
    display: block;
    height: 100%;
}

.yg-side-thumb .yg-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 120px;
}

.yg-side-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.yg-side-title a {
    color: #fff;
}

/* Single */
.yg-single {
    max-width: 800px;
}

.yg-article-header {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--yg-primary);
    padding-bottom: 16px;
}

.yg-article-cat {
    display: inline-block;
    background: var(--yg-primary);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    margin-bottom: 10px;
}

.yg-article-title {
    margin: 0 0 10px;
    font-family: var(--yg-font-title);
    font-size: 28px;
    line-height: 1.25;
    color: var(--yg-text);
}

.yg-article-date {
    color: var(--yg-text-light);
    font-size: 13px;
}

.yg-article-featured {
    margin-bottom: 24px;
}

.yg-article-content {
    font-size: 16px;
    line-height: 1.75;
}

.yg-article-content p {
    margin: 0 0 1.2em;
}

.yg-article-content img {
    margin: 1em auto;
}

.yg-related {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--yg-border);
}

.yg-related-title {
    font-size: 18px;
    margin: 0 0 16px;
    color: var(--yg-primary);
    text-transform: uppercase;
}

/* Archive */
.yg-archive-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--yg-primary);
}

.yg-archive-title {
    margin: 0;
    font-size: 24px;
    color: var(--yg-text);
}

.yg-archive-desc {
    color: var(--yg-text-light);
    margin-top: 8px;
}

.yg-pagination {
    margin-top: 30px;
    text-align: center;
}

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

.yg-pagination a,
.yg-pagination span {
    padding: 8px 14px;
    border: 1px solid var(--yg-border);
    color: var(--yg-text);
}

.yg-pagination .current {
    background: var(--yg-primary);
    color: #fff;
    border-color: var(--yg-primary);
}

/* Footer */
.yg-footer {
    background: #222;
    color: #aaa;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

.yg-footer a {
    color: #fff;
}

.yg-copyright {
    margin: 0;
}

.yg-btn {
    display: inline-block;
    background: var(--yg-primary);
    color: #fff !important;
    padding: 10px 20px;
    margin-top: 12px;
}

.yg-404 {
    text-align: center;
    padding: 60px 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 900px) {
    .yg-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .yg-big-grid {
        grid-template-columns: 1fr;
    }

    .yg-big-main {
        grid-row: auto;
        min-height: 240px;
    }

    .yg-big-thumb,
    .yg-big-thumb .yg-thumb {
        min-height: 240px;
    }
}

@media (max-width: 767px) {
    .yg-menu-toggle {
        display: flex;
    }

    .yg-nav {
        display: none;
    }

    .yg-header-actions .yg-social {
        display: none;
    }

    .yg-grid-3 {
        grid-template-columns: 1fr;
    }

    .yg-big-side {
        grid-template-columns: 1fr;
    }

    .yg-article-title {
        font-size: 22px;
    }
}
