/* Gömülü Filtre Widget Stilleri */

.embedded-filter-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 22px;
    margin: 28px 0;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Üstte tip vurgusu */
.embedded-filter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.embedded-filter-card:hover {
    border-color: rgba(102, 126, 234, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.18);
}

.filter-embed-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.filter-embed-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 19px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

.filter-embed-info {
    flex: 1;
    min-width: 0;
}

.filter-embed-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-embed-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-embed-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.filter-embed-badge.oran {
    background: var(--bg-primary-alpha);
    color: #60a5fa;
}

.filter-embed-badge.kod {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.filter-embed-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--text-secondary);
}

.filter-embed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
    margin-bottom: 16px;
    background: var(--bg-overlay-subtle);
    border: 1px dashed var(--border-color);
    border-radius: 10px;
}

.filter-embed-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: var(--bg-overlay-subtle);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-embed-tag:hover {
    background: var(--bg-primary-alpha);
    border-color: rgba(102, 126, 234, 0.5);
    color: var(--text-primary);
}

.filter-embed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-embed-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.filter-embed-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.filter-embed-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-embed-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.filter-embed-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.25);
}

.filter-embed-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.45);
}

.filter-embed-btn.secondary {
    background: var(--bg-overlay-subtle);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.filter-embed-btn.secondary:hover {
    background: var(--hover-bg);
    border-color: var(--border-color);
}

.embedded-filter-error {
    background: var(--bg-error-alpha);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    color: #ef4444;
    text-align: center;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .embedded-filter-card {
        padding: 16px;
        margin: 20px 0;
    }

    .filter-embed-header {
        gap: 12px;
    }

    .filter-embed-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .filter-embed-title {
        font-size: 15px;
        white-space: normal;
    }

    .filter-embed-tags {
        padding: 11px;
    }

    .filter-embed-tag {
        font-size: 11px;
        padding: 4px 10px;
    }

    .filter-embed-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .filter-embed-stats {
        justify-content: center;
    }

    .filter-embed-btn.primary {
        width: 100%;
    }
}

/* Modal Detay */
.filter-detail-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s;
}

.filter-detail-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-detail-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

.filter-detail-header-modal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-detail-title-modal {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.filter-detail-close {
    width: 36px;
    height: 36px;
    background: var(--bg-overlay-subtle);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.filter-detail-close:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.filter-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.filter-detail-item {
    background: var(--bg-primary-alpha);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
