/* =============================================
   haymatlos. — Yönetim & Giriş Ortak Stilleri
   Premium Sinematik Tasarım Dili
   ============================================= */

/* === SIFIRLAMALAR & TEMEL === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #050506;
    color: #f3f4f6;
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(197, 168, 128, 0.25);
    color: #f3f4f6;
}

::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: #050506;
}
::-webkit-scrollbar-thumb {
    background: rgba(197, 168, 128, 0.2);
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(197, 168, 128, 0.4);
}


/* === İPEKSİ FİLM GRENİ === */
.film-grain {
    position: fixed;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    width: 200%; height: 200%;
    background: transparent url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E') repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
    animation: grainShift 8s steps(10) infinite;
}

@keyframes grainShift {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    30% { transform: translate(-15%, 5%); }
    50% { transform: translate(10%, 15%); }
    70% { transform: translate(5%, -15%); }
    90% { transform: translate(-10%, 10%); }
}


/* === SİNEMATİK ODAK ANİMASYONU === */
.cinematic-focus {
    opacity: 0;
    animation: cinematicPull 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

@keyframes cinematicPull {
    0% {
        opacity: 0;
        filter: blur(20px) brightness(1.4);
        transform: scale(1.06);
    }
    15% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        filter: blur(0px) brightness(1);
        transform: scale(1);
    }
}


/* === RADYAL GRADİENT ARKA PLAN === */
.radial-glow {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(197, 168, 128, 0.03) 0%, rgba(5, 5, 6, 1) 80%);
    pointer-events: none;
    z-index: 0;
}


/* === FORM GİRİŞ STİLLERİ === */
.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 12px 16px;
    color: #f3f4f6;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    letter-spacing: 0.05em;
    outline: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-field::placeholder {
    color: rgba(113, 113, 122, 0.6);
    letter-spacing: 0.1em;
    font-size: 11px;
    text-transform: uppercase;
}

.input-field:focus {
    border-color: var(--accent-color, #c5a880);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 1px rgba(197, 168, 128, 0.1);
}

.input-field:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Alt çizgi versiyonu (login sayfası) */
.input-underline {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 14px 4px;
    color: #f3f4f6;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    letter-spacing: 0.08em;
    outline: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-underline::placeholder {
    color: rgba(113, 113, 122, 0.5);
    letter-spacing: 0.15em;
    font-size: 11px;
    text-transform: uppercase;
}

.input-underline:focus {
    border-bottom-color: var(--accent-color, #c5a880);
}

/* Textarea */
.textarea-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 12px 16px;
    color: #f3f4f6;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    letter-spacing: 0.03em;
    line-height: 1.7;
    outline: none;
    resize: vertical;
    min-height: 100px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.textarea-field:focus {
    border-color: var(--accent-color, #c5a880);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 1px rgba(197, 168, 128, 0.1);
}

/* Label */
.input-label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #71717a;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

/* Dosya yükleme */
.file-upload-area {
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.02);
}

.file-upload-area:hover {
    border-color: rgba(197, 168, 128, 0.3);
    background: rgba(197, 168, 128, 0.03);
}

.file-upload-area.dragover {
    border-color: var(--accent-color, #c5a880);
    background: rgba(197, 168, 128, 0.05);
}


/* === BUTON STİLLERİ === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid var(--accent-color, #c5a880);
    color: var(--accent-color, #c5a880);
    background: transparent;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--accent-color, #c5a880);
    color: #050506;
    box-shadow: 0 0 20px rgba(197, 168, 128, 0.15);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #71717a;
    background: transparent;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #f3f4f6;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: rgba(239, 68, 68, 0.7);
    background: transparent;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.6);
    color: #ef4444;
}

.btn-small {
    padding: 6px 14px;
    font-size: 9px;
    letter-spacing: 0.15em;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #71717a;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 12px;
}

.btn-icon:hover {
    border-color: var(--accent-color, #c5a880);
    color: var(--accent-color, #c5a880);
}

.btn-icon.danger:hover {
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}


/* === KART / PANEL STİLLERİ === */
.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 28px;
}


/* === TABLO STİLLERİ === */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead th {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #71717a;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 400;
}

.admin-table tbody td {
    font-size: 13px;
    color: #f3f4f6;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.3s ease;
}

.admin-table tbody tr {
    transition: background 0.3s ease;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}


/* === MODAL / POPUP STİLLERİ === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 6, 0.92);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #0a0a0b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    width: 90%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f3f4f6;
    font-weight: 400;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #71717a;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
    font-size: 12px;
}

.modal-close:hover {
    border-color: var(--accent-color, #c5a880);
    color: var(--accent-color, #c5a880);
}

/* Tam ekran modal (yayın ekleme/düzenleme) */
.modal-fullscreen .modal-content {
    max-width: 900px;
    max-height: 92vh;
}


/* === TOAST BİLDİRİM STİLLERİ === */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(10, 10, 11, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.removing {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.toast-message {
    font-size: 12px;
    letter-spacing: 0.03em;
    color: #f3f4f6;
    line-height: 1.5;
}

.toast.success {
    border-left: 2px solid var(--accent-color, #c5a880);
}
.toast.success .toast-icon {
    color: var(--accent-color, #c5a880);
}

.toast.error {
    border-left: 2px solid #ef4444;
}
.toast.error .toast-icon {
    color: #ef4444;
}

.toast.info {
    border-left: 2px solid #71717a;
}
.toast.info .toast-icon {
    color: #71717a;
}


/* === SEKME NAVİGASYONU === */
.tab-nav {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 28px;
}

.tab-btn {
    position: relative;
    padding: 14px 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #71717a;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-color, #c5a880);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn:hover {
    color: #f3f4f6;
}

.tab-btn.active {
    color: var(--accent-color, #c5a880);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: rgba(197, 168, 128, 0.15);
    color: var(--accent-color, #c5a880);
    font-size: 9px;
    font-weight: 500;
    border-radius: 9px;
    margin-left: 8px;
    letter-spacing: 0;
}

.tab-content {
    display: none;
    animation: tabFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-content.active {
    display: block;
}

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


/* === TOGGLE SWITCH === */
.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    cursor: pointer;
}

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

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    bottom: 2px;
    background: #71717a;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(197, 168, 128, 0.2);
    border-color: rgba(197, 168, 128, 0.4);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(18px);
    background: var(--accent-color, #c5a880);
}


/* === ROZET / BADGE STİLLERİ === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 3px;
    font-family: 'Space Grotesk', sans-serif;
}

.badge-gold {
    background: rgba(197, 168, 128, 0.1);
    color: var(--accent-color, #c5a880);
    border: 1px solid rgba(197, 168, 128, 0.2);
}

.badge-dim {
    background: rgba(255, 255, 255, 0.04);
    color: #71717a;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Okunmamış mesaj göstergesi */
.unread-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-color, #c5a880);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(197, 168, 128, 0.4);
    animation: unreadPulse 2s ease-in-out infinite;
}

@keyframes unreadPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}


/* === İLERLEME ÇUBUĞU === */
.progress-bar-container {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dim-color, #8f7453), var(--accent-color, #c5a880));
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}


/* === ONAY DİYALOGU === */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 6, 0.9);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.confirm-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirm-box {
    background: #0a0a0b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 28px 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.confirm-overlay.active .confirm-box {
    transform: scale(1);
}


/* === RESPONSIVE YARDIMCILARI === */
@media (max-width: 768px) {
    .tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 9px;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
        max-height: 95vh;
        border-radius: 8px;
    }

    .card {
        padding: 16px;
    }

    .panel {
        padding: 20px;
    }

    .toast {
        min-width: 240px;
        max-width: 90vw;
    }

    .toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
    }
}

@media (max-width: 480px) {
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 8px 16px;
        font-size: 9px;
    }

    .modal-fullscreen .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}


/* === YARDIMCI ANİMASYONLAR === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-down {
    animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


/* === GECİKME YARDIMCILARI === */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }


/* === GENEL GEÇİŞLER === */
a, button, input, textarea, select {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

a {
    color: var(--accent-color, #c5a880);
    text-decoration: none;
}

a:hover {
    color: #f3f4f6;
}
