/*
Theme Name: SohbetGülü
Description: Sohbetgulu.net ana sayfasının WordPress uyarlaması.
Version: 1.4.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sohbetgulu
*/
.sg-inner-header { background: #13152b url(images/header_bg.jpg) center / cover; padding: 24px 0; }
.sg-inner-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sg-inner-header img { width: min(220px, 44vw); }
.sg-inner-header a { color: #fff; }
.sg-inner-content { padding-block: 40px; }
.sg-inner-content article { margin-bottom: 26px; overflow-wrap: anywhere; }
.sg-inner-content img { max-width: 100%; height: auto; }
.login__input:disabled { opacity: 1; cursor: default; }

.home-page { overflow-x: hidden; }

/* Latest posts share the original footer and chat button palette. */
.sg-latest {
    padding: 34px 0 40px;
    border-top: 1px solid #efedf3;
    background: #faf9fc;
}
.sg-latest h2 {
    margin: 0 0 20px;
    color: #323555;
    font-size: 24px;
    font-weight: 700;
}
.sg-latest h2::after {
    display: block;
    width: 36px;
    height: 3px;
    margin-top: 10px;
    border-radius: 3px;
    background: linear-gradient(90deg, #ed4196, #ff7072);
    content: "";
}
.sg-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.sg-post-card {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #eeebf2;
    border-radius: 12px;
    background: #fff;
}
.sg-post-card:only-child { grid-column: 1 / -1; }
.sg-post-card > img {
    display: block;
    flex: 0 0 auto;
    width: clamp(118px, 15vw, 220px);
    height: auto;
    aspect-ratio: 2 / 1;
    align-self: center;
    object-fit: cover;
    margin-left: 12px;
    border-radius: 8px;
}
.sg-post-text { min-width: 0; padding: 16px 18px; }
.sg-post-text time { color: #685c75; font-size: 12px; font-weight: 500; }
.sg-post-text h3 { margin: 5px 0 6px; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.sg-post-text h3 a { color: #323555; }
.sg-post-text h3 a:hover, .sg-post-text h3 a:focus-visible { color: #a82066; }
.sg-post-text p { margin: 0; color: #555469; font-size: 14px; line-height: 1.65; }
.sg-inner-footer { padding: 25px 0; border-top: 1px solid #eceaf2; }
.sg-page-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; row-gap: 12px; }
@media (max-width: 991px) {
    .sg-latest-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .sg-latest { padding-block: 25px 30px; }
    .sg-post-card { display: block; }
    .sg-post-card > img { width: 100%; margin: 0; border-radius: 0; }
    .sg-post-text { padding: 14px; }
}

.header-logo__img { width: min(240px, 56vw); height: auto; }
.header-menu { z-index: 100; min-width: 235px; }
.header-menu__list { padding-top: 18px; }
.sg-inner-header .container { position: relative; }
.sg-inner-header .btn-toggle { position: static; flex: 0 0 40px; }
.sg-footer-logo img { background: #29274a; border-radius: 12px; padding: 10px 14px; }
@media (max-width: 767px) {
    .header-menu { overflow-y: auto; }
    .header-menu__list { padding-top: 30px; }
}
.sg-inner-header .btn-toggle { transform: none; }
.sg-inner-header .btn-toggle.active { transform: rotate(50deg); }

/* Keep the chat card in the hero grid at every viewport width. */
.sg-hero { min-height: 0; padding-bottom: clamp(36px, 6vw, 86px); }
.sg-hero .header { top: auto; padding-top: 28px; }
.sg-hero .header-top { min-height: 48px; }
.sg-hero .hero-wrp { margin-top: 34px; }
.sg-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: clamp(24px, 6vw, 88px);
    align-items: center;
}
.sg-hero .header-content { margin: 0; }
.sg-hero .hero-title { margin-top: 0; }
.sg-hero .hero-txt { margin-bottom: 0; }
.sg-hero .login {
    position: relative;
    z-index: auto;
    right: auto;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 28px;
    border: 1px solid #ece9f3;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(34, 29, 66, .18);
}
.sg-hero .login__title { margin: 0 0 20px; color: #323555; font-size: clamp(24px, 3vw, 31px); }
.sg-hero .login__wrp { width: 100%; max-width: none; padding: 0; box-shadow: none; }
.sg-hero .login__wrp .form-group {
    display: flex;
    align-items: center;
    min-height: 54px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #e7e3ed;
    border-radius: 8px;
    background: #faf9fc;
}
.sg-hero .login__icon { flex: 0 0 auto; min-width: 32px; margin: 0 10px 0 0; padding: 0 8px 0 0; }
.sg-hero .login__icon img { width: 22px; }
.sg-hero .login__input { width: 100%; min-width: 0; min-height: 50px; padding: 0 4px; font-size: 16px; }
.sg-hero .login__input:focus-visible { outline: 2px solid #be2871; outline-offset: 1px; }
.sg-hero .login__submit {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 50px;
    margin: 12px 0 0;
    padding: 10px 12px;
    font-size: 18px;
    line-height: 1.35;
}
.sg-login-note { margin: 12px 0 0; color: #615b72; font-size: 13px; line-height: 1.5; }
.sg-hero .login__bottom { display: block; width: 156px; max-width: 100%; margin: 16px auto 0; }
@media (max-width: 767px) {
    .sg-hero .header { padding-top: 20px; }
    .sg-hero .hero-wrp { margin-top: 20px; }
    .sg-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .sg-hero .header-content-wrp { display: none; }
    .sg-hero .login { width: min(100%, 420px); margin: 0 auto; padding: 20px; }
}
