/**
 * Pozitif Ekip Hub - Görsel SEO & Alt Tag Modülü Stilleri
 * Linear / Vercel Standardı, 1px Pürüzsüz Çizgiler, Sıfır Hover Float
 */

/* Görsel SEO Ana Düzen */
.visual-seo-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Thumbnail Kutusu */
.visual-thumb-wrapper {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
    transition: border-color 0.15s ease;
}

.visual-thumb-wrapper:hover {
    border-color: var(--primary);
}

.visual-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.visual-format-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}

/* Mevcut Alt Metin Kutusu */
.visual-existing-alt {
    font-size: 12.5px;
    color: var(--text-primary);
    line-height: 1.45;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    word-break: break-word;
    max-height: 72px;
    overflow-y: auto;
}

.visual-empty-alt {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    padding: 4px 8px;
    border-radius: 4px;
}

/* AI Alt Metin Textarea & Karakter Sayacı */
.visual-ai-alt-container {
    position: relative;
    width: 100%;
}

.visual-ai-textarea {
    width: 100%;
    min-height: 64px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-family: inherit;
    line-height: 1.45;
    color: #0f172a;
    background: #ffffff;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.visual-ai-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.visual-char-counter {
    display: flex;
    justify-content: flex-end;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.visual-char-counter.char-good {
    color: #16a34a;
}

.visual-char-counter.char-warning {
    color: #dc2626;
    font-weight: 700;
}

/* Kural Yönetim Kartları */
.visual-rule-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    transition: border-color 0.15s ease;
    border-left: 3px solid #6366f1;
}

.visual-rule-card.inactive {
    opacity: 0.55;
    border-left-color: #94a3b8;
    background: #f8fafc;
}

.visual-rule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.visual-rule-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.visual-rule-card.inactive .visual-rule-number {
    background: #e2e8f0;
    color: #64748b;
}

.visual-rule-title-input {
    flex: 1;
    border: 1px solid transparent;
    background: transparent;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 3px 6px;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.visual-rule-title-input:focus,
.visual-rule-title-input:hover {
    border-color: var(--border);
    background: #ffffff;
}

.visual-rule-desc-textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12.5px;
    font-family: inherit;
    line-height: 1.45;
    color: var(--text-primary);
    background: #ffffff;
    resize: vertical;
    outline: none;
}

.visual-rule-desc-textarea:focus {
    border-color: #6366f1;
}

/* Switch Toggle (iOS / Linear Tarzı) */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    margin: 0;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider.round {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: 0.2s ease;
    border-radius: 20px;
}

.slider.round:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s ease;
    border-radius: 50%;
}

.switch-toggle input:checked + .slider.round {
    background-color: #10b981;
}

.switch-toggle input:checked + .slider.round:before {
    transform: translateX(16px);
}
