/* ==========================================================================
   KRATOS 3D ESTETİK TOPLULUĞU — COMMUNITY CSS
   UI/UX Pro Max Standartları (Accessible & Ethical, Luxury Medical Clinic, 44px Touch Targets)
   ========================================================================== */

:root {
    --comm-bg: #F7F5F0;
    --comm-card-bg: #FFFFFF;
    --comm-sage: #2F5D57;
    --comm-sage-dark: #1E3F3B;
    --comm-sage-light: #EBF3F1;
    --comm-ink: #1C2826;
    --comm-ink-soft: #4A4642;
    --comm-muted: #78716C;
    --comm-border: #E8E3D9;
    --comm-border-soft: #F1ECE3;
    --comm-radius-lg: 20px;
    --comm-radius-md: 14px;
    --comm-radius-sm: 8px;
    --comm-shadow-sm: 0 2px 8px rgba(28, 40, 38, 0.04);
    --comm-shadow-md: 0 8px 24px -4px rgba(28, 40, 38, 0.07);
    --comm-shadow-hover: 0 16px 36px -6px rgba(28, 40, 38, 0.12);
}

.community-page-root {
    min-height: 100vh;
    background-color: var(--comm-bg);
    color: var(--comm-ink);
    font-family: inherit;
    padding-bottom: 5rem;
}

/* --------------------------------------------------------------------------
   1. HERO BÖLÜMÜ
   -------------------------------------------------------------------------- */
.community-hero {
    background: linear-gradient(180deg, #EDE8DF 0%, #F7F5F0 100%);
    border-bottom: 1px solid var(--comm-border);
    padding: 3.5rem 0 3rem;
}

.community-hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .community-hero-container {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 3.5rem;
    }
}

.community-hero-content {
    max-width: 640px;
}

.community-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: #FFFFFF;
    border: 1px solid var(--comm-border);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--comm-sage);
    margin-bottom: 1.25rem;
    box-shadow: var(--comm-shadow-sm);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDotAnim 2s infinite;
}

@keyframes pulseDotAnim {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.community-hero-title {
    font-family: inherit;
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    line-height: 1.18;
    color: var(--comm-ink);
    letter-spacing: -0.02em;
    margin: 0 0 1.15rem;
}

.community-hero-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--comm-ink-soft);
    margin: 0 0 2rem;
}

.community-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.btn-community-hero-cta {
    min-height: 48px;
    padding: 0.75rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(47, 93, 87, 0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-community-hero-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(47, 93, 87, 0.35);
}

.btn-hero-secondary {
    min-height: 48px;
    padding: 0.75rem 1.4rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FFFFFF;
}

/* İstatistik Izgarası */
.community-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 576px) {
    .community-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    background: #FFFFFF;
    border: 1px solid var(--comm-border);
    border-radius: var(--comm-radius-md);
    padding: 1.4rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: var(--comm-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--comm-shadow-md);
}

.stat-num {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 800;
    color: var(--comm-sage);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--comm-muted);
}

/* --------------------------------------------------------------------------
   2. FİLTRE VE KATEGORİ ÇUBUĞU
   -------------------------------------------------------------------------- */
.community-filter-bar {
    position: sticky;
    top: 72px;
    z-index: 40;
    background: rgba(247, 245, 240, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--comm-border);
    padding: 0.85rem 0;
}

.filter-scroll-wrapper {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.15rem 0;
}

.filter-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    white-space: nowrap;
    min-height: 42px;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1.5px solid var(--comm-border);
    color: var(--comm-ink-soft);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.filter-pill:hover {
    border-color: var(--comm-sage);
    color: var(--comm-sage);
    background: #FAF8F5;
}

.filter-pill.is-active {
    background: var(--comm-sage);
    border-color: var(--comm-sage);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(47, 93, 87, 0.2);
}

.filter-ghost-toggle.is-active {
    background: #0F172A;
    border-color: #0F172A;
    color: #F8FAFC;
}

/* --------------------------------------------------------------------------
   3. ANA DÜZEN: FEED + SAĞ SIDEBAR
   -------------------------------------------------------------------------- */
.community-main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2.25rem;
}

@media (min-width: 992px) {
    .community-main-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 2.5rem;
    }
}

.community-feed-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* --------------------------------------------------------------------------
   TOPLULUK VAKA KARTI (COMMUNITY CARD)
   -------------------------------------------------------------------------- */
.community-card {
    background: var(--comm-card-bg);
    border: 1px solid var(--comm-border);
    border-radius: var(--comm-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--comm-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.community-card:hover {
    box-shadow: var(--comm-shadow-md);
    border-color: #D8D2C6;
}

/* Kart Başlığı & Yazar */
.card-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.card-author-meta {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.card-avatar-box {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    background: #EAE6DE;
    border: 1.5px solid var(--comm-border);
    flex-shrink: 0;
}

.author-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Siyah Estetik Göz Gizlilik Maskesi */
.eye-censor-mask {
    position: absolute;
    top: 38%;
    left: 8%;
    width: 84%;
    height: 18%;
    background: #0F172A;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
    z-index: 10;
    pointer-events: none;
}

.author-text-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.author-alias {
    font-size: 1rem;
    font-weight: 700;
    color: var(--comm-ink);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-dark {
    background: #0F172A;
    color: #F8FAFC;
}

.badge-sage {
    background: #E8F0EE;
    color: var(--comm-sage);
}

.author-sub-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--comm-muted);
    flex-wrap: wrap;
}

.post-category-tag {
    font-weight: 600;
    color: var(--comm-sage);
}

.post-duration-tag {
    font-weight: 600;
    color: #475569;
}

.btn-card-menu {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--comm-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease;
}

.btn-card-menu:hover {
    background: #F1ECE3;
    color: var(--comm-ink);
}

/* Kart İçeriği & Soru */
.card-content-body {
    margin-bottom: 1.35rem;
}

.card-question-text {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--comm-ink);
    margin: 0 0 0.65rem;
}

.card-patient-note {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--comm-ink-soft);
    margin: 0;
}

/* --------------------------------------------------------------------------
   İNTERAKTİF 3D MODEL SAHNESİ (THREE.JS 360° & TEXTURE ÜZERİNDE GHOST MASK)
   -------------------------------------------------------------------------- */
.card-3d-stage-wrap {
    position: relative;
    width: 100%;
    height: clamp(300px, 42vh, 420px);
    background: radial-gradient(circle at 50% 40%, #0F172A 0%, #040812 100%);
    border-radius: var(--comm-radius-md);
    overflow: hidden;
    margin: 1.25rem 0 1.5rem;
    border: 1px solid #1E293B;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.card-3d-stage-wrap:active {
    cursor: grabbing;
}

.card-3d-canvas-host {
    width: 100%;
    height: 100%;
    display: block;
}

.card-3d-canvas-host canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    outline: none;
}

.card-3d-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 18, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #F8FAFC;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.card-3d-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: #34D399;
    border-radius: 50%;
    animation: threeCardSpinAnim 0.8s linear infinite;
}

@keyframes threeCardSpinAnim {
    to { transform: rotate(360deg); }
}

.card-3d-badge-bar {
    position: absolute;
    bottom: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    pointer-events: none;
    z-index: 6;
}

.badge-3d-rotate {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #F1F5F9;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge-3d-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(11, 15, 25, 0.9);
    border: 1px solid #334155;
    color: #94A3B8;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.card-3d-controls-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    pointer-events: auto;
}

.btn-3d-ctrl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.92);
    color: #0F172A;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
    user-select: none;
}

.btn-3d-ctrl:hover {
    background: #FFFFFF;
    color: #000000;
    transform: translateY(-1px);
}

.btn-3d-ctrl:active {
    transform: translateY(0);
}

.btn-3d-zoom-in,
.btn-3d-zoom-out {
    width: 28px;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1;
}

.btn-3d-reset-cam {
    font-size: 0.74rem;
}

/* İnteraktif Anket Toolbar (Minimal Üst Çubuk) */
/* Oylama Sonuclarini Gizle/Goster & Minimal Durum Rozetleri */
.card-poll-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
    padding: 0 0.15rem;
    flex-wrap: wrap;
}

.poll-meta-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 500;
}

.poll-meta-summary svg {
    color: #2F5D57;
    opacity: 0.85;
}

.poll-private-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: -0.01em;
}

.poll-private-badge.is-author {
    background: #F0FDF4;
    border-color: #DCFCE7;
    color: #166534;
}

.btn-toggle-results {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: transparent;
    border: 1px solid #E5E0D5;
    color: #57534E;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.btn-toggle-results:hover {
    background: #FAF7F2;
    border-color: #2F5D57;
    color: #2F5D57;
}

.btn-toggle-results svg {
    flex-shrink: 0;
}

/* Interaktif Anket Cubuklari (Ultra Minimal Modern Tasarim) */
.card-poll-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.15rem;
}

.poll-option-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    background: #FAF8F5;
    border: 1px solid #ECE7DE;
    border-radius: 10px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.poll-option-row:hover {
    border-color: #DDD6C9;
    background: #F5F1E8;
}

.poll-row-content {
    flex: 1;
    min-width: 0;
}

.poll-label-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.poll-opt-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: #1E293B;
    line-height: 1.3;
}

.poll-stats-box {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 0.76rem;
    font-weight: 700;
}

.pct-num {
    color: #2F5D57;
    font-variant-numeric: tabular-nums;
}

.votes-num {
    color: #8C827A;
    font-weight: 500;
    font-size: 0.7rem;
}

/* Ultra Minimal Ilerleme Cizgisi */
.poll-progress-track {
    width: 100%;
    height: 3px;
    background: #E8E3DA;
    border-radius: 999px;
    overflow: hidden;
}

.poll-progress-bar {
    height: 100%;
    background: #2F5D57;
    border-radius: 999px;
    transition: width 0.35s ease;
}

/* Sonuclari Gizle / Kilitli Modu */
.card-poll-group.is-results-hidden .poll-stats-box {
    display: none !important;
}

.card-poll-group.is-results-hidden .poll-progress-track {
    display: none !important;
}

.card-poll-group.is-results-hidden .poll-label-line {
    margin-bottom: 0;
}

.card-poll-group.is-results-hidden .poll-option-row {
    padding: 0.65rem 0.85rem;
}

.btn-vote-feed {
    min-height: 32px;
    padding: 0.25rem 0.75rem;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    border: 1px solid #D5CEBF;
    background: #FFFFFF;
    color: #1E293B;
}

.btn-vote-feed:hover:not(:disabled) {
    border-color: #2F5D57;
    color: #2F5D57;
    background: #F4F8F7;
}

.btn-vote-feed.is-voted {
    background: #E8F0EE;
    border-color: #B8D3CC;
    color: #2F5D57;
    font-weight: 700;
}
/* Cerrah Tavsiye Kutusu */
.card-surgeon-insight {
    background: #FAF9F6;
    border: 1px solid #E4E0D6;
    border-left: 4px solid var(--comm-sage);
    border-radius: var(--comm-radius-md);
    padding: 1.15rem 1.35rem;
    margin-bottom: 1.4rem;
}

.surgeon-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--comm-sage);
    margin-bottom: 0.5rem;
}

.surgeon-comment-text {
    font-size: 0.92rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--comm-ink);
    margin: 0 0 0.65rem;
}

.surgeon-author-line {
    font-size: 0.82rem;
    color: var(--comm-muted);
}

.surgeon-author-line strong {
    color: var(--comm-ink);
}

/* Kart Alt Butonları */
.card-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--comm-border-soft);
}

.footer-left-group,
.footer-right-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action-pill {
    min-height: 40px;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: #FAF8F5;
    border: 1px solid var(--comm-border);
    color: var(--comm-ink-soft);
    font-size: 0.84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-action-pill:hover {
    background: #FFFFFF;
    border-color: var(--comm-sage);
    color: var(--comm-sage);
}

.btn-feed-like.is-liked {
    background: #FEE2E2;
    border-color: #FCA5A5;
    color: #DC2626;
}

.heart-icon {
    font-size: 1rem;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-feed-like:hover .heart-icon {
    transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   4. SAĞ SIDEBAR (BİLGİ PANELLERİ)
   -------------------------------------------------------------------------- */
.community-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.sidebar-box {
    background: #FFFFFF;
    border: 1px solid var(--comm-border);
    border-radius: var(--comm-radius-lg);
    padding: 1.5rem 1.6rem;
    box-shadow: var(--comm-shadow-sm);
}

.privacy-guarantee-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F9F8 100%);
    border-color: #C9DDD9;
}

.privacy-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #E8F2F0;
    color: var(--comm-sage);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.privacy-guarantee-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--comm-ink);
}

.privacy-guarantee-card p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--comm-ink-soft);
    margin: 0 0 1rem;
}

.privacy-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--comm-sage-dark);
}

/* Danışman Cerrahlar Kutusu */
.surgeons-box .box-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.surgeons-box h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}

.box-subtext {
    font-size: 0.82rem;
    color: var(--comm-muted);
    margin: 0 0 1.25rem;
}

.surgeons-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.surgeon-mini-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--comm-radius-md);
    background: #FAF8F5;
    border: 1px solid var(--comm-border-soft);
    transition: background 0.18s ease;
}

.surgeon-mini-card:hover {
    background: #F4F0E8;
}

.surgeon-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--comm-border);
}

.surgeon-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.surgeon-info strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--comm-ink);
}

.surgeon-info span {
    font-size: 0.78rem;
    color: var(--comm-sage);
    font-weight: 600;
}

.surgeon-info small {
    font-size: 0.72rem;
    color: var(--comm-muted);
}

/* Topluluk İlkeleri */
.community-guidelines-box h4 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.community-guidelines-box p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--comm-ink-soft);
    margin: 0 0 1rem;
}

.guideline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.guideline-tags span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--comm-sage);
    background: #E8F0EE;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
}

/* --------------------------------------------------------------------------
   5. YÜZEN FAB BUTONU (MOBİL & MASAÜSTÜ KISAYOL)
   -------------------------------------------------------------------------- */
.floating-ask-wrap {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
}

@media (max-width: 768px) {
    .floating-ask-wrap {
        bottom: 5.5rem;
        right: 1.25rem;
    }
}

.btn-floating-ask {
    min-height: 52px;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    background: var(--comm-sage);
    color: #FFFFFF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(47, 93, 87, 0.4);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.btn-floating-ask:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(47, 93, 87, 0.5);
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   6. BİLDİRİM TOAST
   -------------------------------------------------------------------------- */
.community-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 10500;
    background: #0F172A;
    color: #F8FAFC;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.community-toast.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}


/* =========================================================
   Faz 2 — Hazır yorumlar, geri bildirim özeti, bildirim, tek anket sayfası
   ========================================================= */
.card-feedback-summary,
.comments-feedback-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.card-feedback-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.85rem;
    margin-bottom: 0.35rem;
    padding: 0;
}

.comments-feedback-cloud:empty { display: none; }

.feedback-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;
    background: #F2EDE6;
    color: #44403C;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.feedback-tag b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    box-shadow: 0 0.5px 1.5px rgba(0,0,0,0.06);
}

.feedback-tag.tone-positive {
    background: #EBF3F0;
    color: #244C46;
    border-color: #D3E4DF;
}

.feedback-tag.tone-suggestion {
    background: #F8F3EA;
    color: #735323;
    border-color: #EBDDC6;
}

.feedback-tag.tone-support {
    background: #EFF3F8;
    color: #364B6B;
    border-color: #D8E2EE;
}

.card-comments-drawer {
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem 1rem;
    border-top: 1px solid #ECE7DE;
    background: #FAF8F5;
    border-radius: 0 0 var(--comm-radius-lg, 16px) var(--comm-radius-lg, 16px);
}

.comments-list {
    display: grid;
    gap: 0.5rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.comments-empty {
    margin: 0;
    font-size: 0.78rem;
    color: #8C847B;
    font-style: italic;
    padding: 0.25rem 0;
}

.comment-item {
    position: relative;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid #ECE7DE;
    transition: border-color 0.15s ease;
}

.comment-item.is-doctor {
    border-color: #D2E4E0;
    border-left: 3px solid #2F5D57;
    background: #FAFCFB;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.25rem;
}

.comment-author {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1E293B;
}

.comment-time {
    margin-left: auto;
    font-size: 0.7rem;
    color: #94A3B8;
}

.comment-badge {
    padding: 0.12rem 0.48rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.badge-doctor {
    background: #E8F0EE;
    color: #2F5D57;
    border: 1px solid #C4DDD7;
}

.badge-owner {
    background: #F5EFE9;
    color: #6B5D4E;
    border: 1px solid #E6DDD0;
}

.comment-preset {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #EBF3F0;
    color: #244C46;
    border: 1px solid #D4E4DF;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.25;
}

.comment-text {
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #334155;
}

.comment-report {
    position: absolute;
    right: 0.75rem;
    bottom: 0.45rem;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.68rem;
    color: #94A3B8;
    cursor: pointer;
}

.comment-report:hover, .comment-report:focus-visible {
    color: #B42318;
    text-decoration: underline;
}

.comments-compose {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px dashed #E5DFD4;
}

.compose-title {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748B;
}

.compose-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.preset-chip {
    min-height: 30px;
    padding: 0.28rem 0.65rem;
    border: 1px solid #DDD7CC;
    border-radius: 999px;
    background: #FFFFFF;
    color: #334155;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.2;
}

.preset-chip:hover, .preset-chip:focus-visible {
    border-color: #2F5D57;
    background: #F4F8F7;
    color: #2F5D57;
    transform: translateY(-1px);
    outline: none;
}

.preset-chip.is-selected {
    border-color: #2F5D57;
    background: #2F5D57;
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(47, 93, 87, 0.22);
}

.compose-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.45rem 0.75rem;
    background: #FFFFFF;
    border: 1px solid #ECE7DE;
    border-radius: 9px;
    margin-top: 0.15rem;
}

.selected-preset-status {
    font-size: 0.76rem;
    color: #64748B;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.selected-preset-status strong {
    color: #2F5D57;
    font-weight: 700;
}

.btn-send-comment {
    min-height: 32px;
    padding: 0.25rem 0.95rem;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.15s ease;
    cursor: pointer;
    background: #2F5D57;
    color: #FFFFFF;
    border: 1px solid #2F5D57;
}

.btn-send-comment:hover:not(:disabled) {
    background: #244C46;
    border-color: #244C46;
    box-shadow: 0 2px 8px rgba(47, 93, 87, 0.25);
}

.btn-send-comment:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.4);
}

.compose-hint {
    margin: 0;
    font-size: 0.7rem;
    color: #8C847B;
    line-height: 1.35;
}

/* Tek Yorum Bilgilendirme Rozeti */
.comments-already-done {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.95rem;
    border-radius: 10px;
    background: #F0FDF4;
    border: 1px solid #DCFCE7;
    margin-top: 0.35rem;
}

.already-done-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22C55E;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.already-done-text strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #166534;
    line-height: 1.25;
}

.already-done-text small {
    display: block;
    font-size: 0.72rem;
    color: #15803D;
    line-height: 1.35;
}

.btn-report-poll { color: #A8A29E; }
.btn-report-poll:hover, .btn-report-poll:focus-visible { color: #B42318; }

.single-poll-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 0.9rem 1.2rem;
    border-radius: 16px;
    background: #E6EEEC;
    color: #234743;
}

.single-poll-banner p { flex: 1 1 260px; min-width: 0; margin: 0; font-size: 0.92rem; font-weight: 600; }

@media (max-width: 640px) {
    .compose-action-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.5rem;
    }
    .btn-send-comment {
        width: 100%;
        min-height: 38px;
    }
    .preset-chip { flex: 1 1 calc(50% - 0.45rem); }
}

@media (prefers-reduced-motion: reduce) {
    .preset-chip { transition: none; }
}


/* ========================================================================== */
/* TOPLULUK TANITIM VE MİSAFİR KARŞILAMA ALANI (ÜYE OLMAYAN ZİYARETÇİLER)     */
/* ========================================================================== */
.community-guest-welcome {
    padding: 1.5rem 0 4rem;
}

.guest-welcome-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.guest-badge-lock {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.95rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
    margin-bottom: 1rem;
}

.guest-welcome-title {
    font-family: var(--font-serif, "Playfair Display", Georgia, serif);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: #111827;
    margin: 0 0 1rem;
    line-height: 1.25;
    max-width: 800px;
}

.guest-welcome-title em {
    font-style: italic;
    color: #2F5D50;
}

.guest-welcome-lead {
    font-size: 1.05rem;
    color: #4B5563;
    line-height: 1.6;
    max-width: 740px;
    margin: 0 auto 2.5rem;
}

.guest-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    width: 100%;
    margin-bottom: 2.5rem;
    text-align: left;
}

.guest-feature-box {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.35rem;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.guest-feature-box:hover {
    transform: translateY(-2px);
    border-color: #2F5D50;
    box-shadow: 0 6px 18px rgba(47, 93, 80, 0.06);
}

.guest-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #FFFFFF;
    font-size: 1.35rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    border: 1px solid #F3F4F6;
}

.guest-feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.guest-feature-text h4 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #1F2937;
}

.guest-feature-text p {
    margin: 0;
    font-size: 0.88rem;
    color: #6B7280;
    line-height: 1.45;
}

.guest-cta-box {
    width: 100%;
    background: linear-gradient(135deg, #F0F6F3 0%, #E6F0EB 100%);
    border: 1px solid #CFE2D8;
    border-radius: 20px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.guest-cta-box h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1F3F37;
}

.guest-cta-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #4A6B63;
    max-width: 580px;
}

.guest-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.btn-guest-register {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.85rem;
    font-size: 1rem;
    font-weight: 700;
    background: #2F5D50;
    color: #FFFFFF;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(47, 93, 80, 0.3);
    transition: all 0.2s ease;
}

.btn-guest-register:hover {
    background: #24493F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 93, 80, 0.4);
    color: #FFFFFF;
}

.btn-guest-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-size: 0.98rem;
    font-weight: 600;
    background: #FFFFFF;
    color: #374151;
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-guest-login:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
    color: #111827;
}

@media (max-width: 840px) {
    .guest-welcome-card {
        padding: 2rem 1.25rem;
    }
    .guest-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .guest-cta-buttons {
        flex-direction: column;
    }
    .btn-guest-register, .btn-guest-login {
        width: 100%;
        justify-content: center;
    }
}
