/*
Theme Name: Sigorta Rehberi
Theme URI: https://sigortac.com
Author: Sigorta Rehberi Team
Author URI: https://sigortac.com
Description: Sigorta, Kasko ve Emeklilik Dünyasında Güvenilir Bilgi Kaynağı
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: Sigorta
*/

:root {
    /* Premium Sigorta Renk Paleti */
    --primary-color: #0B1120;
    /* Deep Midnight Blue */
    --primary-light: #1E293B;
    --secondary-color: #475569;
    --accent-color: #0369a1;
    /* Sky 700 - Accessible Contrast */
    /* Electric Blue */
    --accent-hover: #075985;
    /* Sky 800 */
    --success-color: #34D399;
    --background-color: #F1F5F9;
    --surface-color: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #334155;
    /* Darkened for better contrast (was #64748B) */
    --border-color: #E2E8F0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-accent: linear-gradient(135deg, #38BDF8 0%, #3B82F6 100%);
    --gradient-hero: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);

    /* Tipografi */
    --font-family-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-family-serif: 'Merriweather', Georgia, serif;

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --border-radius: 16px;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-highlight: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --glass-blur: blur(12px);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Setup */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.site-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    /* Very subtle shadow */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    width: 100%;
}

.site-branding {
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
    /* Allow it to take space if needed */
}

/* Logo */
.custom-logo-link img {
    max-height: 40px;
    width: auto;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* Desktop Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--accent-color);
}

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 2000;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    margin-bottom: 5px;
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle .bar:last-child {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    :root {
        --header-height: 65px;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle span {
        display: block;
    }

    /* Standard Dropdown / Slide Down Menu */
    .main-navigation {
        position: absolute;
        top: 100%;
        /* Directly below header */
        left: 0;
        right: 0;
        background: #FFFFFF;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease-out;
        visibility: visible;
        /* Always visible for animation but hidden by height */
        z-index: 999;
    }

    .main-navigation.is-active {
        max-height: 500px;
        /* Arbitrary large height */
        border-top: 1px solid var(--border-color);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        align-items: stretch;
    }

    .main-navigation li {
        border-bottom: 1px solid #f1f5f9;
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--primary-color);
        font-size: 1rem;
        font-weight: 500;
    }

    .main-navigation a:hover {
        background-color: #f8fafc;
        color: var(--accent-color);
    }
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    text-align: center;
    background: var(--surface-color);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.03em;
    font-weight: 800;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Grid & Cards */
.grid {
    display: grid;
    gap: 2.5rem;
}

.post-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid white;
    display: flex;
    flex-direction: column;
    position: relative;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(56, 189, 248, 0.3);
}

.post-thumbnail {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.08);
}

.post-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.post-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.post-title a:hover {
    color: var(--accent-hover);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.read-more-link {
    margin-top: auto;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-link:hover {
    color: var(--accent-color);
    gap: 0.75rem;
}

/* Featured Post (Span 2 cols) */
@media (min-width: 1024px) {
    .post-card.featured {
        grid-column: span 2;
        flex-direction: row;
        align-items: center;
    }

    .post-card.featured .post-thumbnail {
        width: 55%;
        height: 100%;
        aspect-ratio: auto;
    }

    .post-card.featured .post-content {
        width: 45%;
        padding: 3rem;
    }

    .post-card.featured .post-title {
        font-size: 2rem;
    }
}

/* Button generic */
.btn-primary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--gradient-accent);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(14, 165, 233, 0.45);
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 5rem 0 2rem;
    margin-top: 6rem;
}

.footer-widgets {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    content-visibility: auto;
    /* Performance boost for off-screen content */
    contain-intrinsic-size: 1px 300px;
}

.footer-widget {
    flex: 1;
    min-width: 220px;
}

@media (max-width: 768px) {
    .footer-widgets {
        flex-direction: column;
        /* Stack only on mobile */
    }
}

.footer-widget h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
    padding-top: 2rem;
    color: #CBD5E1;
    /* Lightened for contrast on dark bg (was #94A3B8) */
    font-size: 0.9rem;
}

/* Responsive */
/* News Layout & Ads */
.news-header {
    margin-bottom: 2rem;
}

.news-category a {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.news-title {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.news-thumbnail {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.news-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
}

.news-content p {
    margin-bottom: 1.5rem;
}

/* Ad Spaces Removed */

/* Related News */
.related-news-section {
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

.section-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

.related-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    /* Space for scrollbar */
    scroll-snap-type: x mandatory;
    margin-right: -1rem;
    /* Offset for right padding adjustment if needed */
    padding-right: 1rem;
    -webkit-overflow-scrolling: touch;
}

.related-card {
    flex: 0 0 280px;
    /* Fixed width for standard size */
    scroll-snap-align: start;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.related-card .related-thumb {
    width: 100%;
    height: 180px;
    /* Standard fixed height */
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

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

.related-card:hover .related-thumb img {
    transform: scale(1.05);
}

.related-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
    margin: 0;
}

/* Hide scrollbar for cleaner look if desired, but functionality remains */
.related-grid::-webkit-scrollbar {
    height: 8px;
}

.related-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.related-grid::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .news-title {
        font-size: 2rem;
    }
}

/* Comments Section Styling */
.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

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

.comment-body {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.comment-body:hover {
    box-shadow: var(--shadow-sm);
    border-color: #cbd5e1;
}

.comment-meta {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.comment-author cite {
    font-style: normal;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.comment-metadata a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.comment-content p {
    margin-bottom: 1rem;
    color: #334155;
    line-height: 1.6;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply a {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Comment Form */
.comment-respond {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    margin-top: 3rem;
    border: 1px solid var(--border-color);
}

.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--primary-color);
    font-weight: 700;
}

.comment-form p {
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background: #ffffff;
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.comment-form .form-submit {
    margin-bottom: 0;
}

.comment-form .submit {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

/* Hide cookies consent for cleaner look if desired, or style it */
.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form-cookies-consent input {
    width: auto;
    margin: 0;
}

.comment-form-cookies-consent label {
    margin: 0;
    font-weight: normal;
    color: var(--text-secondary);
    font-size: 0.9rem;
}