/* ======================================================
   REGRETORIUM – STANDALONE PURE DARK THEME (SMOOTH CANDLE)
   ====================================================== */

/* ── KESİN İZOLASYON (Arka plan deseni yok, renk #030305) ── */
* {
    box-sizing: border-box;
}

body {
    background-color: #030305 !important;
    background-image: none !important; /* Dışarıdan sızan her türlü deseni KESİN OLARAK engeller */
    color: #e2e8f0;
    font-family: Georgia, "Times New Roman", serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.regret-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-out forwards;
}

/* ── Mum Animasyonu (Pürüzsüz Işık) ── */
.candle-wrapper {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}
.candle { width: 45px; height: auto; display: block; }
.candle-one { fill: #fdfdfd; }

/* Alev: Titreme Animasyonu ve Hafif Pürüzsüzlük */
.flame {
    /* Fill is from radialGradient in index.php */
    animation: flicker 2s infinite ease-in-out;
    transform-origin: center bottom;
    filter: blur(0.5px); /* Vektör kenarını pürüzsüzleştirir */
}
.flame-inner {
    /* Fill is from radialGradient in index.php */
    animation: flicker-inner 1.5s infinite ease-in-out;
    transform-origin: center bottom;
    filter: blur(0.2px);
}

/* Pürüzsüz Işık Parıltısı (Smooth Glow) */
.candle-glow {
    /* Filter is defined in index.php defs */
    animation: glow-flicker 2s infinite ease-in-out;
}

@keyframes flicker {
    0%, 100% { transform: scale(1) rotate(-0.5deg); opacity: 0.95; }
    20% { transform: scale(1.05) rotate(0.5deg); opacity: 1; }
    40% { transform: scale(0.98) rotate(-0.2deg); opacity: 0.9; }
    60% { transform: scale(1.02) rotate(1deg); opacity: 0.98; }
    80% { transform: scale(0.99) rotate(-0.8deg); opacity: 0.92; }
}
@keyframes flicker-inner {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    30% { transform: scale(1.05) rotate(0.5deg); opacity: 0.98; }
    70% { transform: scale(0.98) rotate(-0.5deg); opacity: 1; }
}
@keyframes glow-flicker {
    0%, 100% { opacity: 0.1; } /* Çok hafif ve pürüzsüz bir parıltı */
    50% { opacity: 0.15; }
}

/* ── Başlıklar ── */
.regret-header { text-align: center; margin-bottom: 30px; }

.regret-title {
    font-family: -apple-system, BlinkMacSystemPlane, "Segoe UI", Roboto, sans-serif;
    font-size: 2rem;
    letter-spacing: 0.08em;
    margin: 0 0 8px 0;
    font-weight: normal;
    color: #e2e8f0;
}

.regret-subtitle {
    font-style: italic;
    color: #94a3b8;
    margin: 0;
    font-size: 15px;
}

/* ── İtiraf Formu ── */
.regret-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}

.regret-form textarea {
    width: 100%;
    min-height: 110px;
    padding: 16px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(230, 230, 230, 0.95);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.regret-form textarea::placeholder {
    color: rgba(200, 200, 200, 0.4);
    font-style: italic;
}

.regret-form textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.char-count {
    font-family: -apple-system, BlinkMacSystemPlane, "Segoe UI", Roboto, sans-serif;
    text-align: right;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(200, 200, 200, 0.5);
    letter-spacing: 0.5px;
}

/* ── Gönder Butonu ── */
.btn-submit {
    align-self: center;
    margin-top: 16px;
    padding: 10px 24px;
    font-family: -apple-system, BlinkMacSystemPlane, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    letter-spacing: 0.05em;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: rgba(10, 10, 10, 0.95);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(1px);
}

.regret-success {
    color: #4ade80;
    font-style: italic;
    text-align: center;
    margin-top: 15px;
}

/* ── İtiraf Havuzu (Regret Pool) ── */
.regret-hr {
    border: 0;
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    margin: 40px 0;
}

.regret-pool-header { text-align: center; width: 100%; margin-bottom: 30px; }
.regret-pool-header h2 {
    font-family: -apple-system, BlinkMacSystemPlane, "Segoe UI", Roboto, sans-serif;
    font-size: 1.4rem;
    font-weight: normal;
    margin: 0 0 5px 0;
    color: #e2e8f0;
}
.regret-pool-header p { font-size: 13px; color: rgba(255,255,255,0.5); margin: 0; }

.regret-pool {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.regret-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.regret-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    word-wrap: break-word;
    color: #e2e8f0;
}

/* Kalp Butonu */
.btn-heart {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-heart:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.regret-footer {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    padding-bottom: 40px;
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}