/*
Theme Name: Mugisnot
Theme URI: https://www.mugisnot.com
Author: Mugisnot Team
Author URI: https://www.mugisnot.com
Description: Yüksek performanslı, SEO-optimized finans teması. Çok hızlı yüklenme, minimal kod, maksimum performans.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mugisnot
Tags: blog, news, finance, fast-loading, seo-optimized, responsive
*/

/* Critical CSS - Above the fold */
:root {
    --primary: #c4161c;
    --text: #1f1f1f;
    --light-text: #6f6f6f;
    --bg: #ffffff;
    --border: #eaeaea;
    --container-width: 1280px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg)
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text);
    font-weight: 700;
    line-height: 1.3
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

a {
    color: var(--text);
    text-decoration: none;
    transition: all .2s ease
}

a:hover {
    color: var(--primary)
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px
}

.wrap {
    max-width: 100%;
    overflow: hidden
}

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05)
}

.header-main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative
}

.site-branding {
    flex-shrink: 0
}

.site-logo img {
    max-height: 40px;
    width: auto;
    display: block
}

/* Navigation */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px
}

.main-navigation a {
    display: block;
    padding: 10px 15px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.main-navigation a:hover {
    color: var(--primary)
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0
}

.search-toggle,
.menu-toggle {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s
}

.search-toggle:hover,
.menu-toggle:hover {
    color: var(--primary)
}

.search-toggle svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    width: 24px;
    height: 24px
}

/* 3-line Menu Toggle */
.menu-toggle {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    gap: 4px;
    width: 30px;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: all .3s ease;
    border-radius: 2px
}

/* Search Form Dropdown */
.search-form-container {
    position: absolute;
    top: 100%;
    right: 20px;
    background: var(--bg);
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 320px;
    display: none;
    z-index: 1001
}

.search-form-container.active {
    display: block
}

.search-form {
    display: flex;
    gap: 10px
}

.search-field {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit
}

.search-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600
}

/* Main Content Layout */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    margin-top: 40px
}

@media (max-width: 991px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Section */
.hero-section {
    margin-top: 30px;
    margin-bottom: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.featured-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.featured-thumbnail {
    height: 100%;
}

.featured-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
}

.featured-title {
    font-size: 24px;
    margin: 10px 0;
    line-height: 1.3;
}

.featured-title a {
    color: #fff;
}

.featured-small .featured-title {
    font-size: 18px;
}

.featured-large {
    min-height: 450px;
}

.featured-small {
    height: calc(50% - 10px);
}

.hero-secondary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Hero Strip */
.hero-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

@media (max-width: 991px) {
    .hero-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .hero-strip {
        grid-template-columns: 1fr;
    }
}

.strip-item a {
    display: block;
}

.strip-category {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
}

.strip-title {
    font-size: 14px;
    margin-top: 5px;
    font-weight: 600;
    line-height: 1.4;
}

/* Category Badges */
.category-badge {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
    display: inline-block;
}

/* Section Blocks */
.home-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.section-title {
    font-size: 24px;
    color: var(--text);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -12px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.view-all {
    font-size: 13px;
    font-weight: 700;
    color: var(--light-text);
}

/* News Cards & Grids */
.news-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 575px) {
    .news-grid-2x2 {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background: #fff;
    transition: transform .2s;
}

.news-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.news-thumbnail .category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.news-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-excerpt {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 15px;
}

.news-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 15px;
}

/* News List Minimal */
.news-list-minimal {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 20px;
    background: #fdfdfd;
}

.minimal-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 15px;
}

.minimal-item:last-child {
    border-bottom: none;
}

.minimal-item .time {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.minimal-item a {
    font-weight: 600;
    font-size: 15px;
}

/* Single Post Upgrade */
.single-post .entry-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
}

.single-post .entry-title {
    font-size: 42px;
    margin: 15px 0;
    line-height: 1.2;
}

.single-post .post-spot {
    font-size: 20px;
    color: var(--light-text);
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 400;
}

.single-post .entry-meta {
    font-size: 14px;
    color: #888;
}

.single-post .entry-content {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.8;
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
    margin: 40px 0 20px;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 0 0 20px 25px
}

.single-post .entry-content li {
    margin: 0 0 8px
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 13px;
    color: #666;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px
}

.breadcrumbs a {
    color: var(--primary)
}

.breadcrumbs span {
    margin: 0 5px
}

/* Sidebar */
.sidebar {
    width: 100%;
}

@media (min-width: 992px) {
    .sidebar {
        margin-top: 0;
    }
}

.widget {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc
}

.widget ul {
    list-style: none
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5
}

.widget li:last-child {
    border: 0
}

.widget a {
    color: #333;
    font-size: 14px
}

.widget a:hover {
    color: #0066cc
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #f0f0f0;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px
}

@media (max-width: 991px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

.footer-widget h3 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.footer-widget li {
    margin: 0 0 12px
}

.footer-widget a {
    color: #aaa;
    font-size: 14px;
    transition: color .2s
}

.footer-widget a:hover {
    color: #fff
}

.site-info {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #777
}

/* Pagination */
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 60px 0;
    flex-wrap: wrap
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    transition: all .2s;
}

.pagination a:hover,
.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(196, 22, 28, 0.2);
}

/* Animations & Polishing */
.news-card:hover {
    transform: translateY(-5px);
}

.news-card:hover .news-title a {
    color: var(--primary);
}

.news-thumbnail img {
    transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-thumbnail img {
    transform: scale(1.08);
}

.strip-item {
    transition: background .2s;
    padding: 10px;
    border-radius: 6px;
}

.strip-item:hover {
    background: #f9f9f9;
}

/* Responsive Grid Adjustments */
@media (max-width: 767px) {
    .hero-strip {
        grid-template-columns: 1fr;
    }
}

/* Typography Refinement */
.entry-content p {
    margin-bottom: 25px;
    word-spacing: 0.05em;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 12px;
}

/* Responsive */
@media(max-width:767px) {
    .main-navigation ul {
        flex-direction: column
    }

    .main-navigation a {
        padding: 10px 15px
    }

    .site-title {
        font-size: 24px
    }
}

/* Utilities */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden
}

.loading-lazy {
    opacity: 0;
    transition: opacity .3s
}

.loading-lazy.loaded {
    opacity: 1
}