/* Becayiş — YAZİYO tema uyumlu sayfa stilleri */

html:not(.is-logged-in) #becayis-content { display: none; }
html.is-logged-in #auth-gate { display: none; }

.bc-stat-card {
    border-radius: 1rem;
    border: 1px solid rgb(var(--yaziyo-border-rgb) / 0.85);
    background: rgb(var(--yaziyo-card-rgb));
    padding: 1.25rem 1.35rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bc-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgb(0 0 0 / 0.08);
    border-color: rgb(var(--yaziyo-gold-rgb) / 0.35);
}

.bc-legal-card {
    border-radius: 1rem;
    border: 1px solid rgb(var(--yaziyo-gold-rgb) / 0.25);
    background: linear-gradient(135deg, rgb(var(--yaziyo-gold-rgb) / 0.08), rgb(var(--yaziyo-card-rgb)));
    padding: 1.1rem 1.25rem;
}

.bc-legal-dismiss-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: rgb(var(--yaziyo-text-secondary-rgb));
    user-select: none;
}

.bc-legal-dismiss-check {
    width: 1rem;
    height: 1rem;
    accent-color: rgb(var(--yaziyo-gold-rgb));
    cursor: pointer;
    flex-shrink: 0;
}

.bc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 9999px;
    border: 1px solid rgb(var(--yaziyo-border-rgb) / 0.85);
    background: rgb(var(--yaziyo-bg-rgb) / 0.55);
}

.bc-tab-btn {
    flex: 1 1 auto;
    min-width: 7.5rem;
    padding: 0.65rem 1rem;
    border-radius: 9999px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgb(var(--yaziyo-text-secondary-rgb));
    transition: all 0.25s ease;
}

.bc-tab-btn:hover {
    color: rgb(var(--yaziyo-text-rgb));
    background: rgb(var(--yaziyo-gold-rgb) / 0.08);
}

.bc-tab-btn.active {
    color: #0f172a;
    background: linear-gradient(135deg, rgb(var(--yaziyo-gold-rgb)), #ca8a04);
    box-shadow: 0 4px 14px rgb(var(--yaziyo-gold-rgb) / 0.35);
}

.bc-panel { display: none; animation: bcFadeIn 0.35s ease; }
.bc-panel.active { display: block; }

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

.bc-filter-card,
.bc-form-card {
    border-radius: 1.25rem;
    border: 1px solid rgb(var(--yaziyo-border-rgb) / 0.85);
    background: rgb(var(--yaziyo-card-rgb));
    padding: 1.35rem 1.5rem;
    box-shadow: 0 4px 18px rgb(0 0 0 / 0.04);
}

.bc-form-card-wide {
    max-width: 56rem;
    margin-inline: auto;
    padding: 1.5rem 1.35rem;
}

@media (min-width: 640px) {
    .bc-form-card-wide {
        padding: 1.75rem 2rem;
    }
}

.bc-form-card-header {
    margin-bottom: 1.35rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(var(--yaziyo-border-rgb) / 0.65);
}

.bc-form-card-desc {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgb(var(--yaziyo-text-secondary-rgb));
}

/* —— Form bölümleri —— */
.bc-form-section {
    border: 1px solid rgb(var(--yaziyo-border-rgb) / 0.55);
    border-radius: 1rem;
    padding: 1rem 1rem 1.1rem;
    background: rgb(var(--yaziyo-bg-rgb) / 0.28);
    min-width: 0;
}

.bc-form-section-flat {
    background: transparent;
    border: none;
    padding: 0 0 0.75rem;
}

.bc-form-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgb(var(--yaziyo-gold-rgb));
    margin: 0 0 0.9rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgb(var(--yaziyo-gold-rgb) / 0.18);
}

.bc-form-section-title i {
    font-size: 0.85rem;
    opacity: 0.9;
}

.bc-form-section-title-inline {
    margin-bottom: 0.85rem;
    padding-bottom: 0.55rem;
}

.bc-create-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .bc-create-layout {
        grid-template-columns: 1fr auto 1fr;
        gap: 1.25rem;
        align-items: start;
    }
}

.bc-create-divider {
    display: none;
    align-items: center;
    justify-content: center;
    color: rgb(var(--yaziyo-gold-rgb));
    font-size: 1.35rem;
    padding-top: 2.5rem;
    opacity: 0.65;
}

@media (min-width: 1024px) {
    .bc-create-divider {
        display: flex;
    }
}

.bc-form-footer {
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgb(var(--yaziyo-border-rgb) / 0.65);
}

/* —— Alan gridleri —— */
.bc-field-grid,
.bc-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem 1rem;
}

@media (min-width: 480px) {
    .bc-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.bc-field-grid-compact {
    gap: 0.75rem 1rem;
}

.bc-filter-grid {
    gap: 0.85rem 1rem;
}

@media (min-width: 640px) {
    .bc-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .bc-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.bc-field-span-full,
.bc-field-span-wide {
    grid-column: 1 / -1;
}

@media (min-width: 900px) {
    .bc-filter-grid .bc-field-span-wide {
        grid-column: span 2;
    }
}

.bc-filter-actions {
    display: flex;
    align-items: flex-end;
    grid-column: 1 / -1;
}

@media (min-width: 900px) {
    .bc-filter-actions {
        grid-column: auto;
        justify-content: flex-end;
    }

    .bc-filter-actions .bc-action-btn {
        width: auto;
        min-width: 9.5rem;
    }
}

.bc-field-grid .bc-form-field,
.bc-filter-grid .bc-form-field {
    margin-bottom: 0;
}

.bc-field-grid-kurum {
    grid-template-columns: 1fr;
}

@media (min-width: 480px) {
    .bc-field-grid-kurum {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.bc-filter-row {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 20rem;
}

@media (min-width: 640px) {
    .bc-filter-row {
        max-width: 16rem;
    }
}

/* —— Giriş bileşenleri —— */
.bc-select,
.bc-input,
.bc-textarea {
    display: block;
    width: 100%;
    min-height: 2.625rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(var(--yaziyo-border-rgb) / 0.9);
    background: rgb(var(--yaziyo-card-rgb));
    color: rgb(var(--yaziyo-text-rgb));
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bc-select {
    padding-right: 2rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 1rem;
}

.bc-select:disabled,
.bc-input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bc-select:focus,
.bc-input:focus,
.bc-textarea:focus {
    outline: none;
    border-color: rgb(var(--yaziyo-gold-rgb) / 0.65);
    box-shadow: 0 0 0 3px rgb(var(--yaziyo-gold-rgb) / 0.12);
}

.bc-textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.bc-submit-btn {
    width: 100%;
    margin-top: 1.1rem;
    min-height: 2.75rem;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .bc-submit-btn {
        max-width: 16rem;
    }
}

.bc-form-label-hint {
    font-weight: 400;
    opacity: 0.7;
    text-transform: none;
    letter-spacing: normal;
}

.bc-cards-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .bc-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .bc-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.bc-ilan-card {
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    border: 1px solid rgb(var(--yaziyo-border-rgb) / 0.85);
    background: rgb(var(--yaziyo-card-rgb));
    padding: 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bc-ilan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgb(0 0 0 / 0.08);
    border-color: rgb(var(--yaziyo-gold-rgb) / 0.35);
}

.bc-ilan-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgb(var(--yaziyo-gold-rgb));
    margin-bottom: 0.25rem;
}

.bc-ilan-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(var(--yaziyo-text-rgb));
    margin-bottom: 0.65rem;
}

.bc-ilan-sebep {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgb(var(--yaziyo-text-secondary-rgb));
    flex-grow: 1;
    margin-bottom: 1rem;
}

.bc-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgb(var(--yaziyo-gold-rgb)), #ca8a04);
    color: #0f172a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bc-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgb(var(--yaziyo-gold-rgb) / 0.35);
}

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

.bc-action-btn.secondary {
    background: rgb(var(--yaziyo-bg-rgb));
    color: rgb(var(--yaziyo-text-rgb));
    border: 1px solid rgb(var(--yaziyo-border-rgb));
    box-shadow: none;
}

.bc-action-btn.danger {
    background: rgb(239 68 68 / 0.12);
    color: #dc2626;
    border: 1px solid rgb(239 68 68 / 0.25);
}

.bc-action-btn.success {
    background: rgb(var(--yaziyo-green-rgb) / 0.15);
    color: rgb(var(--yaziyo-green-rgb));
    border: 1px solid rgb(var(--yaziyo-green-rgb) / 0.3);
}

.bc-empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    border: 1px dashed rgb(var(--yaziyo-border-rgb));
    background: rgb(var(--yaziyo-bg-rgb) / 0.4);
}

.bc-empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgb(var(--yaziyo-gold-rgb));
    background: rgb(var(--yaziyo-gold-rgb) / 0.1);
}

.bc-char-count {
    font-size: 0.7rem;
    color: rgb(var(--yaziyo-text-secondary-rgb));
    text-align: right;
    margin-top: 0.25rem;
}

.bc-char-count.warn { color: #dc2626; }

.bc-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgb(0 0 0 / 0.55);
    backdrop-filter: blur(4px);
}

.bc-modal-backdrop.open { display: flex; }

.bc-modal {
    width: 100%;
    max-width: 28rem;
    border-radius: 1.25rem;
    border: 1px solid rgb(var(--yaziyo-border-rgb));
    background: rgb(var(--yaziyo-card-rgb));
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgb(0 0 0 / 0.2);
    animation: bcFadeIn 0.3s ease;
}

.bc-modal-lg { max-width: 32rem; }

.bc-modal-xl {
    max-width: 36rem;
    max-height: min(92vh, 52rem);
    overflow-y: auto;
}

@media (min-width: 640px) {
    .bc-modal-xl { max-width: 40rem; }
}

.bc-form-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgb(var(--yaziyo-text-secondary-rgb));
    margin-bottom: 0.4rem;
}

.bc-form-field { margin-bottom: 0.85rem; }

.bc-modal .bc-form-field:last-child {
    margin-bottom: 0;
}

.bc-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 120;
    max-width: 22rem;
    padding: 0.85rem 1.1rem;
    border-radius: 0.85rem;
    border: 1px solid rgb(var(--yaziyo-green-rgb) / 0.35);
    background: rgb(var(--yaziyo-card-rgb));
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.15);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.bc-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.bc-talep-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 1rem;
}
