@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Ümumi tənzimləmələr */
.reviews-page {
    font-family: 'Inter', sans-serif;
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    color: #1a2b4a;
}

/* 1. Ümumi Reytinq Kartı */
.rating-summary-card {
    background: #fff;
    border-radius: 25px;
    padding: 35px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
}

.summary-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 25px 0;
    flex-wrap: wrap;
}

.score-display { text-align: center; flex: 1; min-width: 150px; }
.score-num { font-size: 64px; font-weight: 800; display: block; line-height: 1; margin-bottom: 10px; }
.stars-gold { color: #FFD700; font-size: 24px; margin-bottom: 5px; }

/* Tərəqqi Çubuqları */
.stat-bars { flex: 2; min-width: 250px; }
.bar-row { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; font-size: 14px; font-weight: 500; }
.progress-bg { flex: 1; height: 10px; background: #f0f0f0; border-radius: 20px; overflow: hidden; }
.fill { height: 100%; border-radius: 20px; }

/* 2. Rəy Yazma Bölməsi (DUZELDİLMİŞ HİSSƏ) */
.form-wrapper {
    background: #fff;
    border-radius: 25px;
    padding: 30px;
    border: 1px solid #eee;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* İnputların yan-yana düzülməsi üçün Flex istifadə edirik */
.input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.input-row input {
    flex: 1; /* Hər biri bərabər yer tutur */
    min-width: 0; /* Flexbox daxilində daşmanı önləyir */
}

.custom-input, .custom-textarea {
    width: 100% !important;
    padding: 18px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    background: #fff !important;
    color: #333 !important;
    box-sizing: border-box;
}

.custom-input:focus, .custom-textarea:focus {
    border-color: #FFD700 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.custom-textarea {
    margin-bottom: 20px;
    min-height: 120px;
    resize: vertical;
}

/* Captcha və Fayl Bölmələri */
.file-section { margin-bottom: 20px; font-weight: 600; font-size: 15px; }
.file-box { 
    margin-top: 8px; padding: 12px; 
    border: 1px dashed #FFD700; background: #FFFDE7; border-radius: 12px; 
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f1f5f9;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.captcha-img {
    background: #3498db; /* Şəkildəki göy rəng */
    color: #fff;
    padding: 12px 25px;
    font-weight: 700;
    letter-spacing: 4px;
    border-radius: 10px;
    font-size: 18px;
}

/* 3. Brend Sarı Düymə */
.btn-yellow-main {
    background: #FFD700 !important;
    color: #000 !important;
    border: none !important;
    padding: 20px 40px !important;
    border-radius: 15px !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: 0.3s ease;
}
.btn-yellow-main:hover { background: #f0cb00 !important; transform: translateY(-2px); }

/* 1. Səhifənin ümumi enini artırırıq ki, bloklar sağa-sola uzansın */
.reviews-page {
    font-family: 'Inter', sans-serif;
    max-width: 1100px; /* Bu ölçü blokların daha geniş görünməsini təmin edir */
    margin: 30px auto;
    padding: 0 20px;
}

/* 2. REY SİYAHISI - Bu hissə mütləq olmalıdır ki, bloklar 2-2 düzülsün */
.reviews-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 sütunlu düzülüş */
    gap: 25px;
    margin-top: 30px;
    align-items: stretch; /* Blokların boyunu bərabərləşdirir */
}

/* 3. Müştəri Rəy Kartı (Yenilənmiş) */
.user-review-card {
    background: #FFFDE7 !important; 
    border: 2px solid #FFD700 !important;
    border-radius: 25px;
    padding: 30px;
    display: flex; /* İçindəki elementləri idarə etmək üçün */
    flex-direction: column; /* Elementləri yuxarıdan aşağı düzür */
    height: 100%; /* Bütün blokların boyunu eyniləşdirir */
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
    margin-bottom: 0px !important; /* Grid işlədiyi üçün margin-ə ehtiyac yoxdur */
}

.user-avatar {
    width: 65px; height: 65px; border-radius: 50%;
    object-fit: cover; border: 3px solid #FFD700;
}

/* 4. Mətn sahəsi - Boy fərqini aradan qaldıran əsas hissə */
.quote-box {
    font-style: italic; font-size: 17px; line-height: 1.7;
    color: #222 !important; margin: 15px 0;
    flex-grow: 1; /* Mətn qısa olsa belə, bu hissə uzanaraq kartın boyunu tamamlayır */
}

.date-badge {
    background: #FFD700 !important; color: #000 !important;
    font-weight: 600; padding: 5px 15px; border-radius: 10px; font-size: 13px;
}

/* Rəy kartındakı ulduzların yaşıl rəngi */
.stars-green {
    color: #2ecc71 !important; 
    font-size: 20px;
    margin-right: 10px;
    letter-spacing: 2px;
    margin-top: auto; /* Ulduzları həmişə kartın ən aşağısına itələyir */
}

/* Mobil uyğunluq (768px-dən kiçik ekranlar üçün) */
@media (max-width: 768px) {
    .reviews-list {
        grid-template-columns: 1fr; /* Mobildə tək-tək düzülür */
    }
    .input-row { flex-direction: column; }
    .summary-container { justify-content: center; text-align: center; }
}