/* =====================================================
   SEO Temel | Yeni Backlink Ekleme — stbl-style.css
   ===================================================== */

/* Kapsayıcı */
.stbl-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.stbl-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.stbl-form-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #012345;
    margin: 0 0 28px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f4f8;
}

/* Alan grupları */
.stbl-field {
    margin-bottom: 24px;
}

.stbl-field--submit {
    margin-top: 32px;
    margin-bottom: 0;
}

/* Label */
.stbl-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a2b3c;
    margin-bottom: 8px;
}

.stbl-required {
    color: #e53e3e;
    margin-left: 2px;
}

/* Input */
.stbl-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d9e0;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #1a2b3c;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}

.stbl-input:focus {
    border-color: #012345;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(1,35,69,0.08);
}

.stbl-input.stbl-input--error {
    border-color: #e53e3e;
    background: #fff5f5;
}

/* Prefix (₺ işareti) */
.stbl-input-prefix-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #d1d9e0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stbl-input-prefix-wrap:focus-within {
    border-color: #012345;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(1,35,69,0.08);
}

.stbl-input-prefix-wrap.stbl-input--error {
    border-color: #e53e3e;
    background: #fff5f5;
}

.stbl-prefix {
    padding: 10px 12px;
    background: #eef2f7;
    color: #4a6785;
    font-size: 0.9375rem;
    font-weight: 600;
    border-right: 1.5px solid #d1d9e0;
    user-select: none;
}

.stbl-input--prefixed {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    flex: 1;
}

.stbl-input--prefixed:focus {
    border: none !important;
    box-shadow: none !important;
}

/* Hint */
.stbl-hint {
    display: block;
    font-size: 0.78rem;
    color: #7a93aa;
    margin-top: 6px;
}

/* Hata mesajları */
.stbl-field-error {
    display: block;
    font-size: 0.82rem;
    color: #e53e3e;
    margin-top: 6px;
    min-height: 1em;
}

/* Görsel yükleme alanı */
.stbl-upload-area {
    position: relative;
    border: 2px dashed #c9d8e8;
    border-radius: 10px;
    background: #f4f8fc;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    overflow: hidden;
}

.stbl-upload-area:hover {
    border-color: #012345;
    background: #eef4fb;
}

.stbl-upload-area.stbl-input--error {
    border-color: #e53e3e;
    background: #fff5f5;
}

.stbl-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.stbl-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    gap: 8px;
    color: #7a93aa;
    pointer-events: none;
}

.stbl-upload-placeholder svg {
    opacity: 0.5;
}

.stbl-upload-placeholder p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.stbl-upload-placeholder small {
    font-size: 0.78rem;
}

/* Önizleme */
.stbl-preview-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

.stbl-preview-wrap img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin: 16px auto;
    border: 2px solid #e5e7eb;
}

.stbl-remove-img {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e53e3e;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.stbl-remove-img:hover {
    background: #c53030;
}

/* Checkboxlar */
.stbl-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.stbl-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1.5px solid #d1d9e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #1a2b3c;
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}

.stbl-checkbox-label:hover {
    border-color: #012345;
    background: #eef4fb;
}

.stbl-checkbox-label input[type="checkbox"] {
    accent-color: #012345;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.stbl-checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #012345;
}

.stbl-checkbox-label:has(input:checked) {
    border-color: #012345;
    background: #e8f0f9;
}

/* Bildirim kutuları */
.stbl-notice {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.stbl-notice--success {
    background: #f0fff4;
    border: 1.5px solid #68d391;
    color: #276749;
}

.stbl-notice--error {
    background: #fff5f5;
    border: 1.5px solid #fc8181;
    color: #c53030;
}

/* Buton */
.stbl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #012345;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 13px 32px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    width: 100%;
    letter-spacing: 0.01em;
}

.stbl-btn:hover {
    background: #123456;
}

.stbl-btn:active {
    transform: scale(0.98);
}

.stbl-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.stbl-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: stbl-spin 0.7s linear infinite;
}

@keyframes stbl-spin {
    to { transform: rotate(360deg); }
}

/* Hata durumu genel */
.stbl-error {
    color: #c53030;
    background: #fff5f5;
    border: 1.5px solid #fc8181;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 520px) {
    .stbl-form-card {
        padding: 24px 20px;
    }
    .stbl-checkboxes {
        grid-template-columns: repeat(2, 1fr);
    }
}
