/**
 * Modern Müşteri Yorumları CSS
 * Modern ve responsive tasarım
 */

/* Ana Container */
.comments-modern-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.comments-modern-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 968px) {
    .comments-modern-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Form Bölümü */
.comments-form-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.comments-form-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}

.comments-form-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-form-header h2 i {
    color: #3b82f6;
    font-size: 28px;
}

.comments-form-header p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* Form Elemanları */
.comments-form-group {
    margin-bottom: 20px;
}

.comments-form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}

.comments-form-input,
.comments-form-select,
.comments-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
}

.comments-form-input:focus,
.comments-form-select:focus,
.comments-form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comments-form-input[readonly] {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.comments-form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.comments-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Submit Button */
.comments-form-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.comments-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

.comments-form-submit:active {
    transform: translateY(0);
}

.comments-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mesajlar */
.comments-message {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.comments-message.info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.comments-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.comments-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Yorumlar Bölümü */
.comments-list-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.comments-list-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}

.comments-list-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-list-header h2 i {
    color: #10b981;
    font-size: 28px;
}

/* Yorum Kartları */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.comment-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.comment-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.comment-info {
    flex: 1;
}

.comment-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.comment-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #6b7280;
}

.comment-rating-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-rating-item img {
    height: 16px;
    width: auto;
}

.comment-body {
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.comment-body p {
    margin: 0 0 8px 0;
}

.comment-body p:last-child {
    margin-bottom: 0;
}

.comment-product {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #1e40af;
}

.comment-product a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-product a:hover {
    text-decoration: underline;
}

.comment-product i {
    color: #3b82f6;
}

.comment-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
}

.comment-footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-footer-item i {
    color: #9ca3af;
}

/* Loading State */
.comments-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.comments-loading i {
    font-size: 32px;
    color: #3b82f6;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Empty State */
.comments-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.comments-empty i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.comments-empty p {
    font-size: 16px;
    margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .comments-modern-container {
        padding: 20px 15px;
    }
    
    .comments-form-section,
    .comments-list-section {
        padding: 20px;
    }
    
    .comments-form-header h2,
    .comments-list-header h2 {
        font-size: 20px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

