/*
Theme Name: BlogVerse
Theme URI: https://blogverse-demo.com
Author: BlogVerse Media
Author URI: https://blogverse-demo.com
Description: Teknoloji, Sağlık ve Gelecek Arşivi - Premium WordPress Blog Teması. Karanlık mod desteği, SEO uyumlu, hızlı ve modern tasarım.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blogverse
Tags: blog, dark-mode, responsive, seo, tailwind
*/

/* ===========================
   DİNAMİK TEMA DEĞİŞKENLERİ
   =========================== */
:root {
    --bg-body: #fdfdfd;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(15, 23, 42, 0.08);
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.92);
    --ad-bg: #f8fafc;
    --footer-bg: #f8fafc;
    --tag-bg: #f1f5f9;
    --tag-text: #475569;
    --modal-overlay: rgba(15, 23, 42, 0.6);
    --social-bg: #ffffff;
    --social-icon: #64748b;
    --accent: #2563eb;
    --icon-color: #475569;
}

body.dark {
    --bg-body: #07090d;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: #0f1218;
    --glass-bg: rgba(15, 18, 24, 0.92);
    --ad-bg: #0d1117;
    --footer-bg: #030406;
    --tag-bg: #1e293b;
    --tag-text: #94a3b8;
    --modal-overlay: rgba(0, 0, 0, 0.85);
    --social-bg: #1e293b;
    --social-icon: #94a3b8;
    --accent: #3b82f6;
    --icon-color: #94a3b8;
}

/* ===========================
   GENEL STILLER
   =========================== */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background-color 0.4s ease, color 0.4s ease;
    text-rendering: optimizeLegibility;
}

.serif {
    font-family: 'Fraunces', serif;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ===========================
   NAVİGASYON
   =========================== */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

/* ===========================
   BENTO CARD STİLLERİ
   =========================== */
.post-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

body.dark .post-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ===========================
   KATEGORİ TABLARI
   =========================== */
.category-tab.active {
    background: var(--text-main);
    color: var(--bg-body);
}

/* ===========================
   ADSENSE REKLAM ALANLARI
   =========================== */
.ad-slot {
    background: var(--ad-bg);
    border: 1px dashed var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* ===========================
   ETİKET STİLLERİ
   =========================== */
.tag-pill {
    background-color: var(--tag-bg);
    color: var(--tag-text);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tag-pill:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* ===========================
   MODAL STİLLERİ
   =========================== */
.modal-container {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-container.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: var(--modal-overlay);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    z-index: 10;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-container.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* ===========================
   PREMIUM İLETİŞİM FORMU
   =========================== */
.contact-modal-inner {
    background: var(--card-bg);
    border-radius: 2rem;
    padding: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 80px rgba(0,0,0,0.25), 0 10px 30px rgba(0,0,0,0.15);
}

.contact-ribbon {
    height: 5px;
    background: linear-gradient(90deg, #6366f1, #3b82f6, #06b6d4, #10b981);
    background-size: 200% 100%;
    animation: ribbonShift 4s ease-in-out infinite;
}

@keyframes ribbonShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.contact-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: var(--tag-bg);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 5;
}

.contact-close-btn:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

.contact-header {
    text-align: center;
    padding: 2.5rem 2.5rem 0;
}

.contact-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.contact-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
    font-family: 'Fraunces', serif;
}

.contact-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Form Alanları */
.contact-form {
    padding: 1.75rem 2.5rem 2.5rem;
}

.contact-field {
    margin-bottom: 1.25rem;
    position: relative;
}

.contact-field label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field input[type="number"],
.contact-field textarea,
.contact-field select {
    width: 100%;
    padding: 0.85rem 1.15rem;
    border: 2px solid var(--border-color);
    border-radius: 0.875rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--tag-bg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    -webkit-appearance: none;
    appearance: none;
}

body.dark .contact-field input[type="text"],
body.dark .contact-field input[type="email"],
body.dark .contact-field input[type="number"],
body.dark .contact-field textarea,
body.dark .contact-field select {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.contact-field input:hover,
.contact-field textarea:hover,
.contact-field select:hover {
    border-color: #818cf8;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 2px 8px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
    background: var(--card-bg);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
    font-style: italic;
}

.contact-field textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.contact-field select {
    cursor: pointer;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

body.dark .contact-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.field-error {
    display: none;
    font-size: 0.72rem;
    color: #ef4444;
    margin-top: 0.35rem;
    font-weight: 600;
    padding-left: 0.25rem;
}

.contact-field.has-error input,
.contact-field.has-error textarea,
.contact-field.has-error select {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.contact-field.has-error .field-error {
    display: block;
}

/* Karakter Sayacı */
.char-counter {
    text-align: right;
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 0.3rem;
}

/* Captcha */
.contact-captcha .captcha-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.captcha-question {
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    background: var(--tag-bg);
    border: 2px solid var(--border-color);
    border-radius: 0.875rem;
    padding: 0.7rem 1rem;
    min-width: 110px;
    text-align: center;
    letter-spacing: 0.05em;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

body.dark .captcha-question {
    background: #1e293b;
    border-color: #334155;
}

.captcha-input {
    width: 80px !important;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem !important;
    letter-spacing: 0.05em;
}

.captcha-refresh {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    background: var(--tag-bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

body.dark .captcha-refresh {
    background: #1e293b;
    border-color: #334155;
}

.captcha-refresh:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
    transform: rotate(180deg);
}

/* Gönder Butonu */
.contact-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 0.875rem;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.contact-submit:hover::before {
    opacity: 1;
}

.contact-submit:active {
    transform: translateY(0);
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-submit .btn-text,
.contact-submit .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-submit .spinner {
    width: 20px;
    height: 20px;
}

/* Başarı Mesajı */
.contact-success {
    text-align: center;
    padding: 3rem 2.5rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.checkmark-path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkDraw 0.6s ease-out 0.3s forwards;
}

@keyframes checkDraw {
    to { stroke-dashoffset: 0; }
}

.contact-success h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 0.5rem;
    font-family: 'Fraunces', serif;
}

.contact-success p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

.contact-another {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.contact-another:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

/* ===========================
   SIDEBAR STİLLERİ
   =========================== */
.sidebar-category-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    color: var(--text-main);
}

.sidebar-category-item:hover {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    transform: translateX(8px);
}

/* ===========================
   SOSYAL MEDYA İKONLARI
   =========================== */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: var(--social-bg);
    border: 1px solid var(--border-color);
    color: var(--social-icon);
}

.social-link:hover {
    background-color: #2563eb;
    color: #ffffff !important;
    border-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(37, 99, 235, 0.2);
}

/* ===========================
   LAYOUT CONTAINER
   =========================== */
.site-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===========================
   MAKALE İÇERİK STİLLERİ (single.php)
   =========================== */
.article-body {
    line-height: 1.85;
    font-size: 1.15rem;
    color: var(--text-main);
}

.article-body p {
    margin-bottom: 2rem;
}

.article-body h2,
.article-body h3 {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    color: var(--text-main);
    margin: 3.5rem 0 1.5rem;
}

.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 1.5rem 0 1.5rem 2.5rem;
    margin: 3.5rem 0;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.6rem;
    color: var(--text-muted);
    background: var(--ad-bg);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 1.5rem;
    margin: 2rem 0;
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.article-body a:hover {
    opacity: 0.7;
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* ===========================
   ANİMASYONLAR
   =========================== */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   WORDPRESS DEFAULTS
   =========================== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1.5rem;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 0.5rem;
}

.gallery-caption {
    font-size: 0.85rem;
}

.sticky {
    border-left: 4px solid var(--accent);
}

.bypostauthor {
    border-left: 4px solid var(--accent);
}

/* WordPress Navigation */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.nav-links a:hover {
    background: var(--text-main);
    color: var(--bg-body);
}

.nav-links .current {
    background: var(--text-main);
    color: var(--bg-body);
}

/* Comment Styles */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
}

.comment-author img {
    border-radius: 9999px;
    margin-right: 0.75rem;
}

/* Widget Styles */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #2563eb;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.widget-title::before {
    content: '';
    width: 1rem;
    height: 1px;
    background: #2563eb;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--accent);
}
