/* Asfed Özel Tasarım Stilleri */

/* ==================== GENEL STILLER ==================== */

/* Ana arka plan için subtle gradient */
body {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-attachment: fixed;
}

/* Glassmorphism efekti */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ==================== KART STİLLERİ ==================== */

/* Premium kart efekti */
.card-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.card-premium:hover::before {
    left: 100%;
}

.card-premium:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 25px 50px -12px rgba(26, 108, 245, 0.2),
        0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

/* Baskan rozeti parıltı efekti - Kırmızı ve Altın */
.baskan-glow {
    position: relative;
    background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 50%, #fffbeb 100%) !important;
}

.baskan-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #ef4444, #f59e0b, #ef4444, #fbbf24);
    background-size: 300% 300%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: baskan-border 4s ease infinite;
    z-index: 0;
    pointer-events: none;
}


@keyframes baskan-border {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* İl Başkanı - Daha şık modern tasarım */
.il-baskani-glow {
    border: 1px solid #fdba74 !important;
    /* Daha belirgin turuncu border */
    background: linear-gradient(to bottom right, #fff7ed, #ffffff) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.08) !important;
}

/* ==================== BUTON STİLLERİ ==================== */

/* Gradient buton - Updated to RED */
.btn-gradient {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #dc2626 100%);
    background-size: 200% 200%;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background-position: 100% 0;
    box-shadow: 0 10px 30px -10px rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
}

/* Acil durum butonu */
.btn-urgent {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    background-size: 200% 200%;
    animation: urgent-pulse 2s ease-in-out infinite;
}

@keyframes urgent-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

/* ==================== BADGE STİLLERİ ==================== */

/* Animated badge */
.badge-animated {
    position: relative;
    overflow: hidden;
}

.badge-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* ==================== İNPUT STİLLERİ ==================== */

/* Modern input focus - Updated to RED */
.input-modern {
    transition: all 0.3s ease;
}

.input-modern:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15),
        0 4px 12px rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
}

/* ==================== ANİMASYONLAR ==================== */

/* Pulse animasyonu (bildirim için) */
.pulse-ring {
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    80%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Float animasyonu */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Shake animasyonu (hata için) */
.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translateX(-1px);
    }

    20%,
    80% {
        transform: translateX(2px);
    }

    30%,
    50%,
    70% {
        transform: translateX(-4px);
    }

    40%,
    60% {
        transform: translateX(4px);
    }
}

/* ==================== AVATAR STİLLERİ ==================== */

/* Avatar ring efekti - Updated to RED/ORANGE */
.avatar-ring {
    position: relative;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(135deg, #dc2626, #f97316, #dc2626);
    background-size: 200% 200%;
    animation: ring-rotate 4s linear infinite;
    z-index: -1;
}

@keyframes ring-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==================== LOADING STİLLERİ ==================== */

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==================== SHADOW STİLLERİ ==================== */

/* Soft shadow */
.shadow-soft {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06),
        0 2px 8px -2px rgba(0, 0, 0, 0.04);
}

/* Colored shadows - Updated PRIMARY to RED */
.shadow-primary {
    box-shadow: 0 10px 40px -10px rgba(220, 38, 38, 0.3);
}

.shadow-success {
    box-shadow: 0 10px 40px -10px rgba(16, 185, 129, 0.3);
}

.shadow-danger {
    box-shadow: 0 10px 40px -10px rgba(239, 68, 68, 0.3);
}

/* ==================== SECTION STİLLERİ ==================== */

/* Section divider - Updated to RED */
.section-divider {
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #f97316);
    border-radius: 2px;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 640px) {
    .card-premium:hover {
        transform: translateY(-3px);
    }
}

/* ==================== DARK MODE HAZIRLIK ==================== */

@media (prefers-color-scheme: dark) {
    .glass {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }
}