/* =====================================================
   İTİRAF DUVARI — pastel sticky-note masonry
   ===================================================== */

.it-wrap { display: flex; flex-direction: column; }

/* === HERO + COMPOSER === */
.it-hero {
    background:
        radial-gradient(circle at 15% 30%, rgba(236,72,153,.18), transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(245,158,11,.16), transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #1a1a2e 100%);
    color: #fff;
    padding: 36px 0 30px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}
.it-hero::before {
    content: '"';
    position: absolute;
    font-family: Georgia, serif;
    font-size: 540px;
    line-height: 1;
    color: rgba(255,255,255,.03);
    top: -120px; right: 20px;
    pointer-events: none;
    font-weight: 900;
}
.it-hero-icerik {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.it-hero-baslik { }
.it-hero-rozet {
    display: inline-block;
    font-size: 10px; font-weight: 800; letter-spacing: 5px;
    color: #EC4899;
    padding: 4px 12px;
    background: rgba(236,72,153,.15);
    border: 1px solid rgba(236,72,153,.35);
    border-radius: 99px;
    margin-bottom: 12px;
}
.it-hero-baslik h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.2;
    color: #fff;
}
.it-hero-baslik h1 span { color: #EC4899; }
.it-hero-baslik h1 em {
    font-style: italic;
    background: linear-gradient(135deg, #EC4899, #F59E0B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.it-hero-baslik p { margin: 0; opacity: .7; font-size: 14px; }

/* Composer (yazma kutusu) — hero içinde sağda — koyu zemin, hero'dan ayrışır */
.it-composer {
    background: linear-gradient(135deg, #0b0b1a 0%, #15102a 100%);
    border: 2px solid rgba(236,72,153,.55);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow:
        0 0 0 4px rgba(236,72,153,.10),
        0 14px 40px rgba(0,0,0,.5),
        inset 0 1px 0 rgba(255,255,255,.04);
    transition: border-color .2s, box-shadow .2s;
}
.it-composer:focus-within {
    border-color: #EC4899;
    box-shadow:
        0 0 0 4px rgba(236,72,153,.22),
        0 16px 44px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.06);
}
.it-composer input {
    width: 100%;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    padding: 6px 0;
    outline: none;
    letter-spacing: .2px;
}
.it-composer input::placeholder { color: rgba(255,255,255,.55); font-weight: 400; }
.it-composer-alt {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.16);
}
.it-sayac { font-size: 12px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.it-sayac.it-sayac-uyari { color: #F59E0B; }
.it-sayac.it-sayac-dolu { color: #EF4444; }
.it-btn-yaz {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #EC4899, #F59E0B);
    color: #fff; border: 0;
    padding: 7px 18px;
    border-radius: 99px;
    font-size: 13px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(236,72,153,.4);
    transition: transform .15s, box-shadow .15s;
}
.it-btn-yaz:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(236,72,153,.55); }
.it-btn-yaz i { font-size: 14px; }
.it-composer-anon {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #EC4899, #F59E0B);
    border: 0;
    border-radius: 99px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
    justify-self: start;
    box-shadow: 0 8px 22px rgba(236,72,153,.45);
    transition: transform .18s, box-shadow .18s;
    backdrop-filter: none;
    animation: it-anon-pulse 2.4s ease-in-out infinite;
}
.it-composer-anon:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(236,72,153,.6);
}
.it-composer-anon i { color: #fff; font-size: 18px; }
@keyframes it-anon-pulse {
    0%, 100% { box-shadow: 0 8px 22px rgba(236,72,153,.45); }
    50%      { box-shadow: 0 8px 30px rgba(245,158,11,.55); }
}

/* === DUVAR (masonry, CSS columns) === */
.it-duvar {
    column-count: 4;
    column-gap: 14px;
    margin-bottom: 30px;
}
@media (max-width: 1200px) { .it-duvar { column-count: 3; } }
@media (max-width: 900px)  { .it-duvar { column-count: 2; } }
@media (max-width: 580px)  { .it-duvar { column-count: 1; } }

/* === NOT KARTI (sticky-note) === */
.it-not {
    break-inside: avoid;
    margin: 0 0 14px;
    padding: 14px 16px 12px;
    border-radius: 4px 14px 14px 4px;
    box-shadow:
        0 1px 2px rgba(0,0,0,.04),
        0 8px 18px -8px rgba(0,0,0,.18);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
    border-left: 3px solid transparent;
}
.it-not:hover {
    transform: translateY(-3px) rotate(0deg) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 16px 32px -10px rgba(0,0,0,.25);
    z-index: 2;
}

/* Pastel renk çeşitleri — dönüşümlü */
.it-renk-1 { background: #FEF3C7; border-left-color: #F59E0B; color: #78350F; }
.it-renk-2 { background: #FCE7F3; border-left-color: #EC4899; color: #831843; }
.it-renk-3 { background: #DBEAFE; border-left-color: #3B82F6; color: #1E3A8A; }
.it-renk-4 { background: #D1FAE5; border-left-color: #10B981; color: #064E3B; }
.it-renk-5 { background: #EDE9FE; border-left-color: #7C3AED; color: #4C1D95; }
.it-renk-6 { background: #FFE4E6; border-left-color: #F43F5E; color: #881337; }

/* Dark mode için yumuşat */
[data-bs-theme="dark"] .it-renk-1 { background: #422006; border-left-color: #F59E0B; color: #FDE68A; }
[data-bs-theme="dark"] .it-renk-2 { background: #500724; border-left-color: #EC4899; color: #FBCFE8; }
[data-bs-theme="dark"] .it-renk-3 { background: #172554; border-left-color: #3B82F6; color: #BFDBFE; }
[data-bs-theme="dark"] .it-renk-4 { background: #022c22; border-left-color: #10B981; color: #A7F3D0; }
[data-bs-theme="dark"] .it-renk-5 { background: #2e1065; border-left-color: #7C3AED; color: #DDD6FE; }
[data-bs-theme="dark"] .it-renk-6 { background: #4c0519; border-left-color: #F43F5E; color: #FECDD3; }

/* Hafif rotasyon — sticky note hissi */
.it-rot-1 { transform: rotate(-1deg); }
.it-rot-2 { transform: rotate(.8deg); }
.it-rot-3 { transform: rotate(-.5deg); }
.it-rot-4 { transform: rotate(1.2deg); }

/* Sil butonu (editör/sahip için) — sağ üst köşe */
.it-sil-btn {
    position: absolute;
    top: 6px; right: 6px;
    width: 22px; height: 22px;
    background: rgba(0,0,0,.08);
    border: 0;
    border-radius: 50%;
    color: currentColor;
    opacity: 0;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: opacity .15s, background .15s, transform .15s;
}
.it-not:hover .it-sil-btn { opacity: .7; }
.it-sil-btn:hover { opacity: 1 !important; background: #DC2626; color: #fff; transform: scale(1.1); }
.it-sil-btn i { font-size: 14px; line-height: 1; }
[data-bs-theme="dark"] .it-sil-btn { background: rgba(255,255,255,.08); }

/* İçerik metni */
.it-icerik {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 12px;
    font-weight: 500;
    word-break: break-word;
}

/* Alt satır: yazar + oylar */
.it-not-alt {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed currentColor;
    opacity: .92;
}
.it-not:hover .it-not-alt { opacity: 1; }

.it-yazar {
    display: inline-flex; align-items: center; gap: 7px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.it-yazar img {
    width: 24px; height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid currentColor;
    flex-shrink: 0;
}
.it-yazar-bilgi { display: flex; flex-direction: column; gap: 0; min-width: 0; line-height: 1.15; }
.it-nick {
    font-size: 11.5px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: inline-flex; align-items: center; gap: 3px;
}
.it-nick i { font-size: 11px; color: currentColor; opacity: .8; }
.it-zaman { font-size: 10px; opacity: .65; }

.it-oylar { display: flex; gap: 4px; flex-shrink: 0; }
.it-oy {
    display: inline-flex; align-items: center; gap: 3px;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 99px;
    padding: 2px 7px;
    font-size: 10.5px; font-weight: 700;
    color: inherit;
    cursor: pointer;
    transition: all .15s;
    font-variant-numeric: tabular-nums;
    opacity: .75;
}
.it-oy:hover { opacity: 1; transform: scale(1.06); }
.it-oy i { font-size: 12px; }
.it-oy i.ri-heart-fill, .it-oy i.ri-heart-3-fill { display: none; }
.it-oy.active i.ri-heart-line, .it-oy.active i.ri-heart-3-line { display: none; }
.it-oy.active i.ri-heart-fill, .it-oy.active i.ri-heart-3-fill { display: inline; }
.it-lay.active { background: rgba(0,0,0,.06); opacity: 1; }
.it-dis.active { background: rgba(0,0,0,.06); opacity: 1; }
.it-oy:disabled { opacity: .3; cursor: not-allowed; }
.it-oy:disabled:hover { transform: none; }

/* === Boş durum === */
.it-bos {
    text-align: center; padding: 60px 20px;
    color: var(--ee-text-muted);
}
.it-bos i { font-size: 3rem; opacity: .3; display: block; margin-bottom: 14px; }
.it-bos p { margin: 0; font-size: 1rem; color: var(--ee-text); font-weight: 600; }

/* === Yeni eklenen kart (composerdan sonra) === */
.it-yeni-anim {
    animation: it-girish .55s cubic-bezier(.4,1.6,.5,1);
}
@keyframes it-girish {
    from { opacity: 0; transform: translateY(-14px) scale(.9) rotate(0); }
    to   { opacity: 1; }
}

/* Mobil hero kompakt */
@media (max-width: 900px) {
    .it-hero { padding: 24px 0 22px; }
    .it-hero-icerik { grid-template-columns: 1fr; gap: 18px; }
    .it-hero-baslik h1 { font-size: 22px; }
    .it-hero-baslik p { font-size: 13px; }
}
