/* assets/css/style.css - Pixel-Perfect Styling for "Dünyanın Enleri" (Blog V1 Design) */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Open+Sans:wght@400;600;700&display=swap');

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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13px;
    color: #444;
    background-color: #e9ecef;
    line-height: 1.5;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #b83b3b;
}

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

/* Container */
.site-wrapper {
    max-width: 1020px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

/* Top Dark Header Bar */
.top-bar {
    background-color: #262626;
    height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    font-size: 11px;
    font-weight: 700;
}

.top-nav a {
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-nav a:hover {
    color: #ffffff;
}

.top-nav span.sep {
    color: #666;
    margin: 0 8px;
}

.top-search form {
    display: flex;
    align-items: center;
}

.top-search input[type="text"] {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    color: #aaa;
    font-size: 11px;
    padding: 4px 10px;
    width: 180px;
    outline: none;
}

.top-search input[type="text"]::placeholder {
    color: #777;
}

.top-search button {
    background-color: #111111;
    border: 1px solid #333333;
    border-left: none;
    color: #ccc;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 11px;
}

.top-search button:hover {
    background-color: #b83b3b;
    color: #fff;
}

/* Main Logo Header */
.main-header {
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.logo-area {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.logo-title {
    font-family: 'Oswald', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #222222;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}

.logo-tagline {
    font-size: 12px;
    color: #888888;
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-icon {
    width: 34px;
    height: 34px;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.social-facebook:hover {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}

.social-instagram:hover {
    background: #e4405f;
    color: #ffffff;
    border-color: #e4405f;
}

.social-twitter:hover {
    background: #1da1f2;
    color: #ffffff;
    border-color: #1da1f2;
}

.social-whatsapp:hover {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

/* Navigation Bar */
.main-nav {
    background-color: #b83b3b;
    position: relative;
}

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

.nav-links {
    display: flex;
    flex-wrap: wrap;
}

.nav-links a {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 13px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5px;
    display: block;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: #982c2c;
    color: #ffffff;
}

/* Page Layout */
.page-container {
    display: flex;
    align-items: stretch;
    padding: 20px;
    gap: 20px;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.sidebar-area {
    width: 320px;
    flex-shrink: 0;
    border-left: 1px dotted #b8b8b8;
    padding-left: 20px;
    align-self: stretch;
}

/* Hero Slider (Smooth Right-to-Left Sliding Animation) */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 25px;
}

.hero-slider-mask {
    width: 100%;
    overflow: hidden;
}

.hero-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.slide-item {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    display: block;
}

.slide-image-box {
    position: relative;
    width: 100%;
    height: 340px;
    background: #1a1a1a;
    overflow: hidden;
    border-radius: 2px;
}

.slide-image-box .slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slider Dots (Inside Top-Right Corner of the Image) */
.slider-dots {
    position: absolute;
    top: 14px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.dot.active,
.dot:hover {
    background: #ffffff;
}

/* Slide Caption Below Image (Exact Match to Reference Screenshot) */
.slide-caption-below {
    padding: 12px 0 5px 0;
}

.slide-caption-below .slide-meta {
    color: #b83b3b;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

.slide-caption-below .slide-title {
    font-family: 'Oswald', sans-serif;
    font-size: 21px;
    color: #222222;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
}

.slide-caption-below .slide-title a {
    color: #222222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.slide-caption-below .slide-title a:hover {
    color: #b83b3b;
}

.slide-caption-below .slide-summary {
    font-size: 12px;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 5px;
}

/* 🧠 SLEEK COMPACT QUIZ MODULE STYLING */
.quiz-section {
    background: linear-gradient(135deg, #1e2229 0%, #282e39 100%);
    border-left: 5px solid #b83b3b;
    border-radius: 4px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.quiz-title {
    font-family: 'Oswald', sans-serif;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.quiz-progress {
    font-size: 10px;
    font-weight: bold;
    background: #b83b3b;
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.quiz-opt-btn {
    background: #2b313c;
    border: 1px solid #3d4554;
    color: #e0e0e0;
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quiz-opt-btn:hover {
    background: #b83b3b;
    color: #ffffff;
    border-color: #b83b3b;
}

.quiz-opt-btn.correct {
    background: #198754 !important;
    border-color: #198754 !important;
    color: #ffffff !important;
}

.quiz-opt-btn.wrong {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

/* Section Titles */
.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    color: #b83b3b;
    text-transform: uppercase;
    border-bottom: 2px solid #b83b3b;
    padding-bottom: 5px;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* EDİTÖRÜN SEÇİMİ (Matching Blog V1 Reference Design with Dotted Lines Above & Below) */
.section-title.editor-title {
    font-size: 16px;
    border-top: 1px dotted #b8b8b8;
    border-bottom: 1px dotted #b8b8b8;
    padding: 9px 0;
    margin-top: 25px;
    margin-bottom: 20px;
}

.editor-grid {
    border-bottom: 1px dotted #b8b8b8;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.sidebar-title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    color: #b83b3b;
    text-transform: uppercase;
    border-bottom: 2px solid #b83b3b;
    padding-bottom: 4px;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Post Grid (2 Columns) */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.post-card-thumb {
    width: 100%;
    height: 170px;
    object-fit: cover;
    margin-bottom: 10px;
}

.post-card-meta {
    font-size: 11px;
    color: #b83b3b;
    font-weight: 700;
    margin-bottom: 5px;
}

.post-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.post-card-title a {
    color: #333;
}

.post-card-title a:hover {
    color: #b83b3b;
}

.post-card-excerpt {
    font-size: 12px;
    color: #666666;
    margin-bottom: 12px;
    flex-grow: 1;
    line-height: 1.5;
}

.btn-read-more {
    align-self: flex-start;
    background-color: #b83b3b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    text-transform: uppercase;
    border-radius: 2px;
}

.btn-read-more:hover {
    background-color: #982c2c;
    color: #ffffff;
}

/* Footer Top Ad Banner Container (Shifted left to align with main content) */
.footer-ad-container {
    max-width: 1020px;
    margin: 25px auto 20px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    padding-right: 170px; /* Sağdaki sidebar boşluğunu telafi ederek sola doğru dengeli ortalar */
}

/* Ad Banner 728x90 */
.ad-banner-728 {
    max-width: 728px;
    width: 100%;
    height: 90px;
    background: #0a6eb4;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    border-radius: 3px;
    overflow: hidden;
}

.ad-banner-728 a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ad-banner-728 img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Ad Box 300x250 */
.ad-box-300 {
    width: 100%;
    height: 250px;
    background: #a71d2a;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.3;
    margin-top: 25px;
    margin-bottom: 25px;
}

/* Popular Posts Widget */
.widget-popular-list {
    list-style: none;
}

.widget-popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e0e0e0;
}

.widget-popular-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Sabit 100px x 60px Yatay Dikdörtgen Çerçeve (Tüm Görseller Kesinlikle Yatay Olur) */
.widget-popular-thumb-link {
    display: block;
    width: 100px;
    height: 60px;
    flex: 0 0 100px;
    max-width: 100px;
    min-width: 100px;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid #e8e8e8;
    background-color: #f2f2f2;
}

.widget-popular-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.widget-popular-thumb-link:hover .widget-popular-thumb {
    transform: scale(1.06);
    opacity: 0.88;
}

.widget-popular-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.widget-popular-title {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 4px;
}

.widget-popular-title a {
    color: #222222;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-popular-title a:hover {
    color: #b83b3b;
}

.widget-popular-meta {
    font-size: 10px;
    color: #b83b3b;
    font-weight: 700;
}

/* Single Post Detail Page */
.post-detail-header {
    margin-bottom: 15px;
}

.post-detail-title {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: #222222;
    margin-bottom: 10px;
    line-height: 1.2;
}

.post-detail-meta {
    font-size: 12px;
    color: #b83b3b;
    font-weight: 700;
    margin-bottom: 15px;
}

.post-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 20px;
}

.post-detail-content {
    font-size: 14px;
    color: #333333;
    line-height: 1.7;
    margin-bottom: 30px;
}

.post-detail-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    color: #b83b3b;
    margin: 25px 0 12px 0;
    font-weight: 500;
}

.post-detail-content p {
    margin-bottom: 15px;
}

.post-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
}

.post-detail-content th,
.post-detail-content td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
}

.post-detail-content th {
    background-color: #f2f2f2;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

/* Comments Section */
.comments-section {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

.comment-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 3px;
}

.comment-author {
    font-weight: 700;
    color: #b83b3b;
    font-size: 13px;
}

.comment-date {
    font-size: 10px;
    color: #999;
    margin-left: 10px;
}

.comment-website {
    margin: 2px 0 6px 0;
    font-size: 12px;
}

.comment-website a {
    color: #b83b3b;
    text-decoration: underline;
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
    display: inline;
    transition: color 0.2s ease;
}

.comment-website a:hover {
    color: #1e2229;
    text-decoration: underline;
    background: none;
}

.comment-website a svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.comment-text {
    font-size: 13px;
    color: #444;
    margin-top: 4px;
    line-height: 1.5;
}

.comment-form-container {
    margin-top: 30px;
}

.comment-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-form-row input {
    flex: 1;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .comment-form-row {
        flex-direction: column;
        gap: 0;
    }
    .comment-form-row input {
        margin-bottom: 12px;
    }
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.comment-form button {
    background-color: #b83b3b;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.comment-form button:hover {
    background-color: #982c2c;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info-box {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.contact-info-item {
    margin-bottom: 15px;
}

.contact-info-item h4 {
    font-family: 'Oswald', sans-serif;
    color: #b83b3b;
    font-size: 15px;
    margin-bottom: 4px;
}

/* Footer Area */
.footer-main {
    background-color: #262626;
    color: #aaaaaa;
    padding: 30px 20px 20px 20px;
    border-top: 3px solid #b83b3b;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.footer-col h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    color: #ffffff;
    text-transform: uppercase;
    border-bottom: 1px solid #444444;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
    font-size: 12px;
    border-bottom: 1px dashed #333333;
    padding-bottom: 6px;
}

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

.footer-col ul li a {
    color: #aaaaaa;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

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

.footer-category-list li {
    margin-bottom: 8px;
    border-bottom: 1px dashed #333333;
    padding-bottom: 6px;
}

.footer-category-list li:last-child {
    border-bottom: none;
}

.footer-category-list li a {
    color: #aaaaaa;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-category-list li a:hover {
    color: #ffffff;
}

/* Bottom Centered Copyright Bar */
.footer-bottom {
    background-color: #1a1a1a;
    padding: 14px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    color: #aaaaaa;
    position: relative;
}

.footer-copyright {
    text-align: center;
    color: #aaaaaa;
}

.btn-scroll-top {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #000000;
    color: #ffffff;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.btn-scroll-top:hover {
    background-color: #b83b3b;
}

/* Alert Boxes */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 3px;
}

/* Responsive Adjustments for Mobile & Tablets */
@media (max-width: 800px) {

    .quiz-options-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Hamburger Navigation */
    .mobile-menu-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 12px 18px;
        background-color: #b83b3b;
        color: #ffffff;
        font-family: 'Oswald', sans-serif;
        font-size: 15px;
        font-weight: 700;
        border: none;
        cursor: pointer;
        outline: none;
        letter-spacing: 1px;
    }

    .hamburger-icon {
        font-size: 20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #982c2c;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 12px 18px;
    }

    /* Header Stacked Mobile View */
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
    }

    .logo-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .logo-title {
        font-size: 32px;
    }

    .logo-tagline {
        font-size: 11px;
        display: block;
        margin-top: 2px;
    }

    .social-links {
        margin-top: 5px;
    }

    .top-bar {
        height: auto;
        padding: 8px 12px;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .top-search input[type="text"] {
        width: 140px;
    }

    .page-container {
        flex-direction: column;
    }

    .sidebar-area {
        width: 100%;
        border-left: none;
        border-top: 1px dotted #b8b8b8;
        padding-left: 0;
        padding-top: 25px;
    }

    /* 📱 Mobil Manşet Slider (Görsellerin Dikey Değil Yatay / 16:9 Görünmesi) */
    .slide-image-box {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: 180px;
        max-height: 230px;
    }

    .slide-image-box .slide-bg {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .slider-dots {
        top: 10px;
        right: 10px;
        gap: 5px;
    }

    .dot {
        width: 9px;
        height: 9px;
    }

    .slide-caption-below .slide-title {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .slide-caption-below .slide-summary {
        font-size: 12px;
        line-height: 1.4;
    }

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

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

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

    .footer-ad-container {
        padding-right: 20px;
    }
}

@media (max-width: 550px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
