/* 
 * YORUMLAR BÖLÜMÜ CSS - TÜM EKRANLAR İÇİN YATAY DÜZEN
 * java.zamkinos.com/assets/css/_main_column_comments.css
 */

/* YORUMLAR ANA KUTUSU */
.comments-section {
    width: 728px;
    max-width: 100%;
    border: 1px solid #203A5A;
    border-radius: 7px 7px 0 0;
    background: #f5fbff;
    position: relative;
    padding: 0px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* ÜST BAŞLIK ŞERİDİ */
.comments-header {
    width: 100%;
    height: 48px;
    border-radius: 7px 7px 0 0;
    background-color: #7FC4FD;
    padding: 0;
}

.comments-header-text {
    font-family: Helvetica, sans-serif;
    color: #000539;
    font-size: 24px;
    text-align: center;
    line-height: 48px;
    font-weight: bold;
}

/* YORUM LİSTESİ */
.comments-list {
    padding: 20px;
}

/* TEK YORUM KUTUSU */
.comment-box {
    background-color: #eef6fc;
    border-left: 6px solid #7FC4FD; /* Varsayılan mavi */
    padding: 25px;
    margin-bottom: 25px;
    font-family: Helvetica, sans-serif;
    font-size: 14px;
    color: #002447;
    border-radius: 9px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* RENK VARYASYONLARI */
.comment-box.green-left-bar {
    border-left-color: #9FD6A3;
    background-color: #f0f9f1;
}

.comment-box.yellow-left-bar {
    border-left-color: #F4DA73;
    background-color: #fefcf0;
}

.comment-box.purple-left-bar {
    border-left-color: #B69BDB;
    background-color: #f5f0fa;
}

.comment-box.orange-left-bar {
    border-left-color: #F7B284;
    background-color: #fef5f0;
}

/* SATIR 1: AVATAR + USER BİLGİLERİ */
.comment-header {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
    width: 100%;
}

/* COL 1: AVATAR (112px) */
.comment-avatar {
    width: 112px; /* İstediğin ölçü */
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #7FC4FD;
    margin-right: 20px;
    flex-shrink: 0;
}

/* COL 2: USER BİLGİLERİ (3 satır) */
.comment-user-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
}

/* 1. SATIR: JAVA.000.000.011 */
.comment-userID {
    font-weight: bold;
    color: #163f67;
    font-size: 22px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    word-break: break-all;
}

/* 2. SATIR: name_bilgisi */
.comment-name {
    font-weight: normal;
    color: #466582;
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* 3. SATIR: Bayrak ve country - DÜZELTİLDİ */
.comment-flag-city {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #3a5b79;
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    border-radius: 15px;
    width: fit-content;
    max-width: 100%;
    border: 1px solid #d4e3f0;
    flex-wrap: wrap;
    overflow: hidden; /* Taşmayı engelle */
}

/* BAYRAK - KESİN BOYUTLANDIRMA */
.comment-flag {
    width: 24px !important; /* Kesinlikle 24px */
    height: 24px !important; /* Kesinlikle 24px */
    object-fit: contain !important; /* Orantılı sığdır */
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid #a0b8d0;
    flex-shrink: 0;
    display: block; /* Inline özelliği kaldır */
}

/* SATIR 2: YORUM METNİ - AVATAR İLE AYNI HİZADAN BAŞLAR */
.comment-text {
    line-height: 1.7;
    padding: 18px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border-left: 3px solid #b4bbd5;
    font-size: 15px;
    color: #002447;
    word-break: break-word;
    margin-left: 132px; /* Avatar genişliği (112px) + margin-right (20px) */
    width: calc(100% - 132px);
    box-sizing: border-box;
}

/* YORUMLAR ARASI AYRAÇ */
.comment-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #b4bbd5, transparent);
    margin: 25px 0;
}

/* ALT KAPANIŞ ŞERİDİ */
.comments-footer {
    position: absolute;
    width: 100%;
    height: 24px;
    background-color: #d4edf5;
    bottom: 0;
    font-family: Helvetica, sans-serif;
    color: #252f75;
    font-size: 12px;
    text-align: center;
    line-height: 24px;
}

/* MOBİL İÇİN İNCE AYARLAR */
@media (max-width: 768px) {
    .comments-section {
        width: 100%;
    }
    
    .comment-avatar {
        width: 84px; /* 112px * 0.75 */
        height: 84px;
        margin-right: 15px;
    }
    
    .comment-userID {
        font-size: 18px;
    }
    
    .comment-name {
        font-size: 14px;
    }
    
    .comment-flag-city {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .comment-flag {
        width: 20px !important;
        height: 20px !important;
    }
    
    .comment-text {
        margin-left: 99px; /* 84px + 15px */
        width: calc(100% - 99px);
        padding: 15px;
    }
}

/* ÇOK KÜÇÜK EKRANLAR İÇİN */
@media (max-width: 480px) {
    .comment-avatar {
        width: 70px; /* 112px * 0.625 */
        height: 70px;
        margin-right: 12px;
    }
    
    .comment-text {
        margin-left: 82px; /* 70px + 12px */
        width: calc(100% - 82px);
        padding: 12px;
        font-size: 14px;
    }
    
    .comment-userID {
        font-size: 16px;
    }
    
    .comment-name {
        font-size: 13px;
    }
    
    .comment-flag-city {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .comment-flag {
        width: 18px !important;
        height: 18px !important;
    }
}

/* MASAÜSTÜ HOVER EFEKTİ */
@media (min-width: 769px) {
    .comment-box:hover {
        transform: translateY(-2px);
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.12);
        transition: all 0.3s ease;
    }
}