/* =====================================================
 * ERPIDA İDA - Diamond Premium AI Badge System
 * =====================================================
 * Altın gradient, elmas ikonu, shimmer animasyonu
 * ===================================================== */

/* Base Badge */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #F59E0B, #D97706, #B45309);
    color: #FFFBEB;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
    flex-shrink: 0;
}

/* Shimmer / Shine Efekti */
.ai-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: ai-badge-shimmer 3s ease-in-out infinite;
}

@keyframes ai-badge-shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Badge Icon (Diamond/Star SVG) */
.ai-badge-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.ai-badge-text {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===== Badge Tipleri ===== */

/* Sidebar Navigation Badge */
.ai-badge-nav {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

.ai-badge-nav .ai-badge-icon {
    width: 10px;
    height: 10px;
}

/* Section Header Badge */
.ai-badge-section {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    gap: 4px;
}

.ai-badge-section .ai-badge-icon {
    width: 14px;
    height: 14px;
}

/* Card Badge */
.ai-badge-card {
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 4px;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.ai-badge-card .ai-badge-icon {
    width: 11px;
    height: 11px;
}

/* Inline Badge */
.ai-badge-inline {
    font-size: 0.55rem;
    padding: 1px 5px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 4px;
}

.ai-badge-inline .ai-badge-icon {
    width: 9px;
    height: 9px;
}

/* ===== Hover Efekti ===== */
.ai-badge:hover {
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.5);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* ===== Dark Mode Uyum ===== */
[data-theme="dark"] .ai-badge {
    background: linear-gradient(135deg, #F59E0B, #D97706, #92400E);
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .ai-badge:hover {
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

/* ===== AI Powered Section Header ===== */
.ai-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.ai-section-header h2,
.ai-section-header h3 {
    margin: 0;
}

/* AI Powered Card Wrapper */
.ai-powered-card {
    position: relative;
    border: 1px solid rgba(245, 158, 11, 0.15);
    transition: border-color 0.3s ease;
}

.ai-powered-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
}

/* AI Loading Spinner */
.ai-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #D97706;
    font-size: 0.875rem;
}

.ai-loading-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #F59E0B;
    animation: ai-loading-pulse 1.4s ease-in-out infinite;
}

.ai-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes ai-loading-pulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* AI Result Card */
.ai-result-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-xl, 12px);
    padding: 1.5rem;
    margin-top: 1rem;
    position: relative;
}

.ai-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F59E0B, #D97706, #B45309);
    border-radius: var(--radius-xl, 12px) var(--radius-xl, 12px) 0 0;
}

[data-theme="dark"] .ai-result-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.05) 100%);
    border-color: rgba(245, 158, 11, 0.15);
}

/* AI Button */
.btn-ai {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #FFFBEB;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-ai::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: ai-badge-shimmer 3s ease-in-out infinite;
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.45);
}

.btn-ai:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-ai .ai-badge-icon {
    width: 16px;
    height: 16px;
}
