/* تنسيق موحد لبطاقة الدومين */

.domain-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* الجزء العلوي: اسم الدومين */
.domain-card-header {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.domain-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    width: 100%;
}

/* الجزء الأوسط: التصنيفات */
.domain-card-body {
    padding: 10px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

/* نظام موحد للـ Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.3;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: fit-content;
}

/* ألوان التصنيفات */
.badge-ai, .badge-AI {
    background: #e0e7ff;
    color: #667eea;
    border: 2px solid #667eea;
}

.badge-keyword, .badge-KEYWORD {
    background: #dbeafe;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.badge-brandable, .badge-BRANDABLE {
    background: #fee2e2;
    color: #dc2626;
    border: 2px solid #dc2626;
}

.badge-excellent-buy {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: #ffffff;
    border: 2px solid #ff6b6b;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
    }
}

.badge-seo, .badge-SEO {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #1a1a1a;
    border: 2px solid #2fd6b8;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.badge-geo, .badge-GEO {
    background: #d1fae5;
    color: #10b981;
    border: 2px solid #10b981;
}

.badge-personal, .badge-PERSONAL {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    color: #ffffff;
    border: 1px solid #9078c0;
}

.badge-exact, .badge-EXACT {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #ffffff;
    border: 2px solid #ee5a5a;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.badge-other, .badge-OTHER {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #ffffff;
    border: 2px solid #5a6268;
}

.badge-mixed, .badge-MIXED {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: 2px solid #d97706;
}

/* الجزء السفلي: الأزرار */
.domain-card-footer {
    padding: 10px 15px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* حاوية التاريخ */
.card-date {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    flex-shrink: 0;
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.action-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.action-btn:hover {
    background: #f8f9fa;
    color: #495057;
    border-color: #d0d0d0;
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}

/* شارة السكور */
.score-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.score-high {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
}

.score-medium {
    background: linear-gradient(135deg, #ffc107 0%, #ffdb58 100%);
    color: #212529;
}

.score-low {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
    color: #ffffff;
}

/* شارة الحالة */
.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.1;
    z-index: 10;
}

.status-available {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #b8dab8;
}

.status-taken {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #e8b0b8;
}

.status-analyzing {
    background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
    color: #004085;
    border: 1px solid #99c2e8;
}

.status-pending {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
    color: #383d41;
    border: 1px solid #c8cbcf;
}

.status-pending_delete {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
    border: 1px solid #eecf8a;
}

/* تحسينات إضافية */
.domain-card .domain-name {
    transition: color 0.3s ease;
}

.domain-card:hover .domain-name {
    color: #007bff;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}


