/* =========================================================
   MEDYABİR PRO - YAZARLAR MODÜLÜ
   Dosya: modules/yazarlar/style.css
   Amaç:
   - Eski tasarım korunur
   - Sayfayı tam genişliğe yaymaz
   - Haber.php / diğer modüllerle birebir 1240px ölçüde ortalı durur
   - Swiper taşması engellenir
========================================================= */

/* =========================================================
   ANA KAPSAYICI
========================================================= */

.yazarlar-section-wrapper {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 30px auto !important;
    padding: 25px 16px 30px 16px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow:
        0 4px 10px -2px rgba(0,0,0,0.025),
        0 -4px 10px -2px rgba(0,0,0,0.025);
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    box-sizing: border-box !important;
}

/* Eğer zaten .container içinde çağrılıyorsa diğer modüllerle aynı dış çizgiye gelir */
.container .yazarlar-section-wrapper,
.container > .yazarlar-section-wrapper {
    width: calc(100% + 32px) !important;
    max-width: calc(100% + 32px) !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
}

/* Aynı elemanda hem container hem yazarlar-section-wrapper varsa */
.container.yazarlar-section-wrapper {
    width: 100% !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* =========================================================
   SLIDER KAPSAYICI
========================================================= */

.yazarlar-slider-container {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0 45px;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.yazarlar-yatay-swiper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.yazarlar-yatay-swiper .swiper-wrapper {
    height: auto !important;
    align-items: stretch;
    max-width: 100% !important;
}

.yazarlar-yatay-swiper .swiper-slide {
    height: auto !important;
    display: flex;
    justify-content: center;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* =========================================================
   YAZAR KARTI
========================================================= */

.yazar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.profile-wrapper {
    width: 135px;
    height: 135px;
    border-radius: 50%;
    background-color: #ffffff;
    margin-bottom: 14px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.profile-wrapper:hover {
    transform: translateY(-5px);
}

.profile-wrapper::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-left-color: #ff0000;
    border-bottom-color: #cc0000;
    box-shadow:
        inset -1px 1px 3px rgba(255, 0, 0, 0.1),
        -2px 2px 5px rgba(255, 0, 0, 0.3),
        -3px 3px 10px rgba(255, 0, 0, 0.4);
    transform: rotate(-15deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    opacity: 0.9;
}

.yazar-card:hover .profile-wrapper::before {
    transform: rotate(-195deg);
    opacity: 1;
    box-shadow:
        inset -1px 1px 2px rgba(255, 0, 0, 0.2),
        -2px 2px 6px rgba(255, 0, 0, 0.5),
        -4px 4px 15px rgba(255, 0, 0, 0.6);
}

.profile-image-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(1.05);
    transition: transform 0.4s ease;
}

.yazar-card:hover .profile-image-container img {
    transform: scale(1.06);
}

/* =========================================================
   METİN ALANI
========================================================= */

.text-info {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 0 5px;
    box-sizing: border-box;
}

.author-name {
    color: #cc0000;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
    transition: color 0.3s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-title {
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
    max-width: 100%;
}

.yazar-card:hover .author-name {
    color: #ff0000;
}

.yazar-card:hover .article-title {
    color: #1e293b;
}

/* =========================================================
   OK BUTONLARI
========================================================= */

.yzr-btn-next,
.yzr-btn-prev {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.1rem;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.yzr-btn-next:hover,
.yzr-btn-prev:hover {
    color: #ffffff;
    background-color: #e60000;
    box-shadow: 0 6px 12px rgba(230, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.05);
}

.yzr-btn-next {
    right: 0;
}

.yzr-btn-prev {
    left: 0;
}

/* =========================================================
   ALT BAŞLIK VE TÜMÜ BUTONU
========================================================= */

.yazarlar-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
    gap: 15px;
    box-sizing: border-box;
}

.y-line-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;
}

.y-line {
    flex: 1;
    height: 1px;
    background-color: #cbd5e1;
}

.y-title-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 8px;
    margin: 0 15px;
    margin-right: 7px;
    text-transform: uppercase;
    white-space: nowrap;
}

.y-tumu-btn {
    background-color: #475569;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 8px 26px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.y-tumu-btn:hover {
    background-color: #e60000;
    color: #ffffff;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
    .yazarlar-section-wrapper,
    .container .yazarlar-section-wrapper,
    .container > .yazarlar-section-wrapper,
    .container.yazarlar-section-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 24px auto !important;
        padding: 24px 14px 28px 14px !important;
    }

    .yazarlar-slider-container {
        padding: 0 42px;
    }
}

/* =========================================================
   MOBİL
========================================================= */

@media (max-width: 768px) {
    .yazarlar-section-wrapper,
    .container .yazarlar-section-wrapper,
    .container > .yazarlar-section-wrapper,
    .container.yazarlar-section-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px auto !important;
        padding: 22px 12px 26px 12px !important;
        border-radius: 8px;
        overflow: hidden !important;
    }

    .yazarlar-slider-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 32px;
        overflow: hidden !important;
    }

    .yazarlar-yatay-swiper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .profile-wrapper {
        width: 110px;
        height: 110px;
    }

    .author-name {
        font-size: 0.96rem;
    }

    .article-title {
        font-size: 0.80rem;
    }

    .y-title-text {
        font-size: 1rem;
        letter-spacing: 5px;
        margin: 0 10px;
        margin-right: 5px;
    }

    .yzr-btn-next,
    .yzr-btn-prev {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* =========================================================
   KÜÇÜK MOBİL
========================================================= */

@media (max-width: 420px) {
    .yazarlar-section-wrapper {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .yazarlar-slider-container {
        padding: 0 28px;
    }

    .profile-wrapper {
        width: 96px;
        height: 96px;
    }

    .author-name {
        font-size: 0.9rem;
    }

    .article-title {
        font-size: 0.76rem;
    }

    .y-title-text {
        font-size: 0.95rem;
        letter-spacing: 4px;
    }

    .y-tumu-btn {
        font-size: 0.72rem;
        padding: 7px 22px;
    }
}