/* =========================================
   1. GENEL AYARLAR & PARAGRAF TETİKLEYİCİSİ
   ========================================= */
p.inline-comment-target {
    position: relative;
    transition: background 0.3s ease;
}

/* İkon (Baloncuk) */
.inline-comment-trigger {
    position: absolute;
    right: -45px;
    top: 0; 
    width: 34px;
    height: 34px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    z-index: 10;
    
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .inline-comment-trigger {
        right: -10px;
        top: -30px;
        background-color: rgba(0,0,0,0.8); 
    }
    p.inline-comment-target {
        padding-right: 0;
    }
}

.inline-comment-trigger:hover {
    opacity: 1;
    transform: scale(1.15) rotate(5deg); 
    background-color: rgba(229, 9, 20, 0.8); 
    border-color: transparent;
}

/* Bildirim Rozeti (Sayaç) */
.ic-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #ff4b1f, #ff9068); 
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #121212;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* =========================================
   2. YAN PANEL TASARIMI (MODERN DARK GLASS)
   ========================================= */
#inline-comments-sidebar {
    position: fixed;
    top: 0;
    right: -420px; 
    width: 400px;
    height: 100vh;
    
    background: rgba(18, 18, 18, 0.95); 
    backdrop-filter: blur(10px); 
    
    z-index: 99999;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

#inline-comments-sidebar.active {
    right: 0;
}

#inline-comments-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}
#inline-comments-overlay.active {
    display: block;
    opacity: 1;
}

/* =========================================
   3. BAŞLIK VE LİSTE ALANI
   ========================================= */
.ic-header {
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end; /* DEĞİŞTİ: Sağa yasla */
    align-items: center;
}

#close-ic {
    cursor: pointer;
    font-size: 28px;
    color: #888;
    transition: color 0.2s;
    line-height: 1;
}
#close-ic:hover { color: #fff; }

#ic-list {
    flex: 1; 
    padding: 20px 25px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
    padding-bottom: 200px; 
}

#ic-list::-webkit-scrollbar { width: 6px; }
#ic-list::-webkit-scrollbar-thumb { background-color: #444; border-radius: 3px; }

/* =========================================
   4. YORUM KARTLARI
   ========================================= */
.ic-item {
    background-color: #252525;
    padding: 15px 18px;
    border-radius: 12px;
    border-bottom-left-radius: 2px; 
    margin-bottom: 15px;
    color: #e0e0e0; 
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    transition: transform 0.2s;
}

.ic-item:hover {
    transform: translateY(-2px);
    background-color: #2a2a2a;
}

.ic-item strong {
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 6px;
}

.ic-item p {
    margin: 0;
    font-weight: 400;
    color: #ccc;
}

.admin-badge {
    background: rgba(229, 9, 20, 0.2); 
    color: #ff4b4b;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    border: 1px solid rgba(229, 9, 20, 0.3);
    font-weight: 700;
}

.ic-reply-item {
    margin-left: 20px;
    background-color: #2c2c2c !important; 
    border-left: 2px solid #e50914;
    border-radius: 8px;
    border-bottom-left-radius: 8px;
}

.ic-reply-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
}
.ic-reply-link:hover { opacity: 1; color: #e50914; text-decoration: underline; }

/* =========================================
   5. FORM ALANI
   ========================================= */
.ic-form {
    padding: 20px 25px;
    background: #181818; 
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative; 
    z-index: 100;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

#ic-replying-to {
    background: rgba(229, 9, 20, 0.1);
    color: #ffcccc;
    padding: 8px 12px;
    font-size: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border-left: 2px solid #e50914;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#cancel-reply {
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.7;
}
#cancel-reply:hover { opacity: 1; }

#ic-author-name {
    width: 100%;
    height: 38px;
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    padding: 0 12px;
    margin-bottom: 10px;
    font-size: 13px;
    transition: border-color 0.3s;
}
#ic-author-name:focus { outline: none; border-color: #555; }

#ic-comment-text {
    width: 100%;
    height: 60px; 
    min-height: 50px;
    background: #222;
    border: 1px solid #333;
    border-radius: 12px;
    color: #fff;
    padding: 12px;
    margin-bottom: 10px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s;
}
#ic-comment-text:focus { outline: none; border-color: #555; background: #2a2a2a; }

#ic-submit-btn {
    width: 100%;
    padding: 12px;
    background: #e50914; 
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.3);
}

#ic-submit-btn:hover {
    background: #ff1f2c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 9, 20, 0.4);
}