/*
Theme Name: GeneratePress Child
Template: generatepress
*/


/* Gabile Ana Sayfa Stilleri - Mobil Uyumlu */
.gabile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* HERO */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    margin-bottom: 40px;
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}
.giris-btn {
    background: #ff69b4;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s;
}
.giris-btn:hover {
    transform: scale(1.05);
}

/* Oda Tablosu */
.oda-tablosu {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
}
.oda-tablosu table {
    width: 100%;
    border-collapse: collapse;
}
.oda-tablosu th, .oda-tablosu td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.toplam-online {
    text-align: right;
    margin-top: 20px;
    font-weight: bold;
    color: #4CAF50;
}

/* Özellikler */
.ozellikler {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.ozellik {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.ozellik:hover {
    transform: translateY(-5px);
}

/* Son Yazılar */
.son-yazilar {
    margin-bottom: 40px;
}
.yazi-listesi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.yazi-karti {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.yazi-karti img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.yazi-karti h3 {
    padding: 15px 15px 0 15px;
}
.yazi-karti h3 a {
    text-decoration: none;
    color: #333;
}
.yazi-ozet {
    padding: 0 15px;
    color: #666;
}
.devam-btn {
    display: inline-block;
    margin: 15px;
    padding: 8px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
}

/* Sohbet Formu */
.sohbet-formu {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
}
.sohbet-formu form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}
.sohbet-formu input, .sohbet-formu select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}
.sohbet-formu button {
    background: #ff69b4;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
}

/* SSS */
.sss {
    margin-bottom: 40px;
}
.sss-item {
    background: white;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
}
.sss-soru {
    background: #667eea;
    color: white;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
}
.sss-cevap {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.sss-item.active .sss-cevap {
    padding: 15px;
    max-height: 200px;
}

/* MOBİL UYUM */
@media (max-width: 768px) {
    .gabile-container {
        padding: 10px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .ozellikler {
        grid-template-columns: 1fr;
    }
    .yazi-listesi {
        grid-template-columns: 1fr;
    }
    .oda-tablosu table, .oda-tablosu thead, .oda-tablosu tbody, .oda-tablosu th, .oda-tablosu td, .oda-tablosu tr {
        display: block;
    }
    .oda-tablosu th {
        display: none;
    }
    .oda-tablosu td {
        position: relative;
        padding-left: 50%;
    }
    .oda-tablosu td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
    }
}

/* Canlı online sayısı animasyonu */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
#toplam-online-sayisi {
    display: inline-block;
    animation: pulse 2s infinite;
}


/* ============================================== */
/* GABİLE SOHBET FORMU - DÜZELTİLMİŞ VERSİYON */
/* ============================================== */

/* Form container - sadece kendisi */
.gabile-yazi-formu {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    color: white;
    text-align: center;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Form içindeki tüm elementler */
.gabile-yazi-formu * {
    max-width: 100%;
    box-sizing: border-box;
}

.gabile-yazi-formu h3 {
    font-size: 26px;
    margin-bottom: 10px;
    color: white;
}

.gabile-yazi-formu p {
    margin-bottom: 20px;
    opacity: 0.95;
    font-size: 16px;
}

/* Form row */
.gabile-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.gabile-form-input {
    flex: 1;
    min-width: 180px;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

.gabile-form-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.gabile-form-btn {
    padding: 14px 30px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.gabile-form-btn:hover {
    background: #ff5252;
    transform: scale(1.02);
}

.gabile-kategori-etiketi {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    margin-top: 15px;
}

/* ============================================== */
/* SAYFA İÇERİK DÜZELTMELERİ (Mobil kayma sorunu) */
/* ============================================== */

/* Sadece içerik alanı - Body'e dokunma! */
.site-content,
.entry-content,
.markdown-main-panel,
.markdown {
    overflow-x: hidden;
    word-wrap: break-word;
}

/* Tablo kaydırma - SADECE tablo için */
.horizontal-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    width: 100%;
}

.horizontal-scroll-wrapper table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

/* İçerikteki tüm resimler */
.entry-content img,
.markdown-main-panel img {
    max-width: 100%;
    height: auto;
}

/* ============================================== */
/* MOBİL ÖZEL (Sadece küçük ekranlar) */
/* ============================================== */
@media (max-width: 600px) {
    .gabile-yazi-formu {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .gabile-yazi-formu h3 {
        font-size: 22px;
    }
    
    .gabile-yazi-formu p {
        font-size: 14px;
    }
    
    .gabile-form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .gabile-form-input,
    .gabile-form-btn {
        width: 100%;
    }
    
    .gabile-form-btn {
        white-space: normal;
        text-align: center;
    }
    
    .gabile-kategori-etiketi {
        font-size: 10px;
    }
    
    /* Tablo mobilde kaydırılabilir */
    .horizontal-scroll-wrapper {
        margin: 15px -10px;
        width: calc(100% + 20px);
        padding: 0 10px;
    }
    
    .horizontal-scroll-wrapper table {
        min-width: 500px;
    }
}

/* Çok küçük telefonlar */
@media (max-width: 380px) {
    .gabile-yazi-formu {
        padding: 15px 12px;
    }
    
    .gabile-form-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .gabile-form-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Masaüstü için ekstra (Geniş ekranlar) */
@media (min-width: 1200px) {
    .gabile-form-row {
        max-width: 550px;
    }
    
    .gabile-form-input {
        min-width: 220px;
    }
}

/* Animasyon */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gabile-yazi-formu {
    animation: slideDown 0.5s ease;
}