/*
Theme Name: Görsel Kimlik
Theme URI: https://gorselkimlik.com
Author: Görsel Kimlik Ekibi
Author URI: https://gorselkimlik.com
Description: Üreticiler ve marka sahipleri için modern, Tailwind CSS tabanlı blog ve kaynak teması.
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, portfolio, tailwind, modern
Text Domain: gorselkimlik
*/

/* ---------------------------------------------------------
   1. GENEL WORDPRESS DÜZELTMELERİ
--------------------------------------------------------- */

/* Gutenberg Buton Stilleri */
.wp-block-button__link {
    background-color: #e11d48;
    color: white;
    border-radius: 9999px;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
}

/* Contact Form 7 Paragraf Boşluklarını Sıfırla */
/* Eklenti her şeyi p içine alır, bu da layoutu bozar */
.wpcf7 p {
    margin: 0;
    padding: 0;
}

/* ---------------------------------------------------------
   2. MENÜ (DROPDOWN) AYARLARI
--------------------------------------------------------- */

/* SADECE MASAÜSTÜ CİHAZLAR İÇİN DROPDOWN */
@media (min-width: 768px) {
    .menu-item {
        position: relative;
    }

    .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background-color: white;
        border: 1px solid #f1f5f9;
        border-radius: 0.75rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s ease-in-out;
    }

    .menu-item:hover > .sub-menu,
    .menu-item:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .sub-menu li {
        display: block;
        width: 100%;
        margin: 0;
    }

    .sub-menu li a {
        display: block;
        padding: 0.6rem 1.25rem;
        font-size: 0.875rem;
        color: #64748b;
        text-decoration: none;
        transition: all 0.2s;
        font-weight: 500;
    }

    .sub-menu li a:hover {
        background-color: #f8fafc;
        color: #e11d48;
    }
}

/* MOBİL İÇİN MENÜ AYARLARI */
@media (max-width: 767px) {
    .sub-menu {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }
    
    .sub-menu li a {
        padding: 0.5rem 0;
        color: #64748b;
        font-size: 0.9rem;
    }
}

/* ---------------------------------------------------------
   3. CONTACT FORM 7 STİLLERİ
--------------------------------------------------------- */

/* Yükleniyor spinner'ı */
.wpcf7-spinner {
    margin-left: 10px;
    margin-top: 0;
    position: absolute;
}

/* Hata Mesajları */
.wpcf7-not-valid-tip {
    font-size: 0.75rem;
    color: #e11d48;
    margin-top: 0.25rem;
    font-weight: 600;
}

/* Başarı/Hata Kutusu */
.wpcf7-response-output {
    border-radius: 0.5rem;
    padding: 1rem !important;
    margin: 1.5rem 0 0 0 !important;
    font-size: 0.875rem;
    border: none !important;
    text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output {
    background-color: #ecfdf5;
    color: #047857;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    background-color: #fff1f2;
    color: #be123c;
}

/* ---------------------------------------------------------
   4. GÖNDER BUTONU DÜZELTMESİ (KESİN ÇÖZÜM)
--------------------------------------------------------- */

.wpcf7-form button.wpcf7-submit {
    /* 1. Yapı ve Hizalama (En Kritik Kısım) */
    display: flex !important;
    justify-content: center !important;
    
    /* 2. Boyutlandırma (Sabit Yükseklik = Garanti Ortalama) */
    height: 48px !important; /* Diğer inputlarla aynı standart yükseklik */
    width: auto !important;
    min-width: 140px !important;
    
    /* 3. Padding (Sadece Yanlardan) */
    padding: 0 32px !important; /* Üst/Alt 0 çünkü height ve flex kullanıyoruz */
    margin-top: 10px !important;
    
    /* 4. Tipografi */
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1 !important; /* Satır yüksekliğini sıfırla */
    text-transform: none !important;
    
    /* 5. Görünüm */
    background-color: #e11d48 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px -1px rgba(225, 29, 72, 0.2) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

/* Mobilde tam genişlik */
@media (max-width: 767px) {
    .wpcf7-form button.wpcf7-submit {
        width: 100% !important;
    }
}

/* Hover (Üzerine Gelince) */
.wpcf7-form button.wpcf7-submit:hover {
    background-color: #be123c !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 10px -2px rgba(225, 29, 72, 0.3) !important;
}

/* Tıklama Anı */
.wpcf7-form button.wpcf7-submit:active {
    transform: translateY(0);
    box-shadow: none !important;
}

/* ---------------------------------------------------------
   5. WORDPRESS İÇERİK STİLLERİ (GUTENBERG FIX)
   Tailwind reset'i yüzünden kaybolan stilleri geri getiriyoruz.
   Bu stiller sadece yazı içeriğinde (.prose) geçerlidir.
--------------------------------------------------------- */

.prose {
    color: #334155; /* slate-700 */
    line-height: 1.8; /* Okunabilirlik için satır aralığı */
    font-size: 1.125rem; /* 18px */
}

/* Başlıklar */
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: #1e1b4b; /* brand-dark */
    font-weight: 800;
    margin-top: 2.5em;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

.prose h1 { font-size: 2.25em; }
.prose h2 { font-size: 1.75em; padding-bottom: 0.5rem; border-bottom: 1px solid #e2e8f0; } /* H2 altına çizgi */
.prose h3 { font-size: 1.5em; }
.prose h4 { font-size: 1.25em; }

/* Paragraflar */
.prose p {
    margin-bottom: 1.5em;
}

/* Linkler */
.prose a {
    color: #e11d48; /* brand-primary */
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: color 0.2s;
}

.prose a:hover {
    color: #be123c;
}

/* Listeler (Gutenberg Listeleri) */
.prose ul, .prose ol {
    margin-bottom: 1.5em;
    padding-left: 1.6em;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5em;
    padding-left: 0.4em;
}

.prose li::marker {
    color: #e11d48; /* Liste maddeleri kırmızı olsun */
    font-weight: bold;
}

/* Alıntılar (Blockquote) */
.prose blockquote {
    border-left: 4px solid #e11d48;
    background-color: #f8fafc; /* slate-50 */
    padding: 1.5rem;
    margin: 2em 0;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #475569;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

/* Görseller ve Medya */
.prose img, .prose figure {
    margin: 2.5em 0;
    border-radius: 0.75rem;
    height: auto;
    max-width: 100%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.prose figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.75rem;
}

/* Kod Blokları */
.prose code {
    background-color: #f1f5f9;
    color: #e11d48;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: monospace;
}

.prose pre {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin-bottom: 1.5em;
}

.prose pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

/* Kalın ve İtalik Metinler */
.prose strong {
    font-weight: 700;
    color: #0f172a; /* slate-900 */
}

/* Tablolar (WordPress Table Block) */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
    font-size: 0.95em;
}

.prose th {
    background-color: #f1f5f9;
    font-weight: 700;
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid #cbd5e1;
}

.prose td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}