/**
 * Micro Animations CSS
 * Modern ve profesyonel kullanıcı deneyimi için ince animasyonlar
 */

/* ====================================
   1. BUTON CLICK FEEDBACK ANİMASYONLARI
   ==================================== */

/* Ripple Effect için gerekli yapı */
.btn {
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Ripple animasyonu */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
    transition: width 0s, height 0s;
}

/* Click scale efekti */
.btn:active {
    transform: scale(0.95) translate3d(0, 0, 0);
    transition: transform 0.1s ease;
}

/* Hover efekti iyileştirmesi */
.btn:hover {
    transform: translateY(-2px) translate3d(0, 0, 0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Primary buton için özel ripple rengi */
.btn-primary::after {
    background: rgba(255, 255, 255, 0.4);
}

/* Outline buton için özel ripple rengi */
.btn-outline-light::after {
    background: rgba(255, 255, 255, 0.3);
}

.btn-outline-primary::after {
    background: rgba(78, 115, 223, 0.2);
}

/* Buton loading animasyonu */
.btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: button-spin 0.6s linear infinite;
}

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

/* Success feedback animasyonu */
.btn.success {
    background-color: #1cc88a !important;
    border-color: #1cc88a !important;
    animation: success-pulse 0.5s ease;
}

@keyframes success-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ====================================
   2. FORM INPUT FOCUS EFEKTLERİ
   ==================================== */

/* Input container için relative positioning */
.form-control,
.form-select,
textarea.form-control {
    position: relative;
    border: 2px solid #e0e0e0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Focus glow efekti */
.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.15),
                0 5px 15px rgba(78, 115, 223, 0.1);
    transform: translateY(-1px);
    outline: none;
}

/* Animated border efekti */
.input-animated {
    position: relative;
}

.input-animated::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4e73df, #6f42c1);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.input-animated:focus-within::before {
    width: 100%;
}

/* Label float animasyonu */
.form-floating > label {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Input shake animasyonu (validation error için) */
@keyframes input-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.form-control.is-invalid {
    animation: input-shake 0.5s;
}

/* Checkbox/Radio smooth animation */
.form-check-input {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-check-input:checked {
    transform: scale(1.1);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.2);
}

/* Input içerik yazılırken animasyon */
.form-control:not(:placeholder-shown) {
    border-color: #4e73df;
    box-shadow: 0 2px 8px rgba(78, 115, 223, 0.08);
}

/* ====================================
   3. PAGE TRANSITION ANİMASYONLARI
   ==================================== */

/* Sayfa yüklenme animasyonu */
@keyframes page-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: page-fade-in 0.5s ease-out;
}

/* Section fade-in animasyonu (scroll ile tetiklenecek) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animasyonu (sıralı görünme) */
.stagger-animation > * {
    opacity: 0;
    transform: translateY(20px);
    animation: stagger-fade-in 0.5s ease-out forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes stagger-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card hover animasyonu */
.card,
.service-card,
.blog-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover,
.service-card:hover,
.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Image zoom animasyonu */
.card img,
.service-card img,
.blog-card img {
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover img,
.service-card:hover img,
.blog-card:hover img {
    transform: scale(1.08);
}

/* Link hover animasyonu */
a {
    position: relative;
    transition: color 0.3s ease;
}

a:not(.btn)::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:not(.btn):hover::before {
    width: 100%;
}

/* ====================================
   4. SCROLL ANIMASYONLARI
   ==================================== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Scroll reveal animasyonları */
.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal-down {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal-left.revealed,
.scroll-reveal-right.revealed,
.scroll-reveal-up.revealed,
.scroll-reveal-down.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ====================================
   5. NAVBAR ANİMASYONLARI
   ==================================== */

/* Navbar scroll animasyonu */
.header {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Scroll edildiğinde navbar kompakt görünsün */
.header.scrolled .navbar {
    padding: 8px 0 !important;
}

/* Menu item animasyonu */
.navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4e73df, #6f42c1);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Dropdown animasyonu */
.dropdown-menu {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block !important;
    visibility: hidden;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* ====================================
   6. MODAL ANİMASYONLARI
   ==================================== */

/* Modal fade-in animasyonu */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Modal backdrop animasyonu */
.modal-backdrop.fade {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* ====================================
   7. LOADING ANİMASYONLARI
   ==================================== */

/* Skeleton loading animasyonu */
.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Pulse loading animasyonu */
.pulse-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* ====================================
   8. İKON ANİMASYONLARI
   ==================================== */

/* Icon hover animasyonları */
.fa, .fas, .far, .fab {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover .fa,
a:hover .fas,
button:hover .fa,
button:hover .fas {
    transform: scale(1.1) rotate(5deg);
}

/* Icon spin animasyonu */
.icon-spin {
    animation: icon-spin-animation 2s linear infinite;
}

@keyframes icon-spin-animation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Icon bounce animasyonu */
.icon-bounce {
    animation: icon-bounce-animation 1s ease infinite;
}

@keyframes icon-bounce-animation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ====================================
   9. TOOLTIP ANİMASYONLARI
   ==================================== */

/* Tooltip fade-in animasyonu */
.tooltip {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* ====================================
   10. RESPONSIVE ANIMASYON AYARLARI
   ==================================== */

/* Mobil cihazlarda animasyonları azalt */
@media (max-width: 768px) {
    /* Animasyon sürelerini kısalt */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
    
    /* Karmaşık animasyonları devre dışı bırak */
    .card:hover,
    .service-card:hover,
    .blog-card:hover {
        transform: translateY(-4px);
    }
}

/* Reduced motion tercihi olan kullanıcılar için */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ====================================
   11. UTILITY ANİMASYON CLASSLARI
   ==================================== */

/* Genel amaçlı animasyon sınıfları */
.animate-fade-in {
    animation: fade-in 0.5s ease;
}

.animate-slide-up {
    animation: slide-up 0.5s ease;
}

.animate-slide-down {
    animation: slide-down 0.5s ease;
}

.animate-zoom-in {
    animation: zoom-in 0.5s ease;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Delay yardımcı sınıfları */
.delay-100 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; transition-delay: 0.5s; }

/* ====================================
   12. GLASS MORPHISM EFEKTLERİ
   ==================================== */

/* Glass Morphism temel stil */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-effect-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Glass card temel yapısı */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Glass card hover efekti */
.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.3);
    transform: translateY(-8px) scale(1.02);
}

/* Glass card ışık efekti */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.glass-card:hover::before {
    left: 100%;
}

/* Card hover için glass efekti */
.card.glass-hover,
.service-card.glass-hover,
.blog-card.glass-hover {
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card.glass-hover::after,
.service-card.glass-hover::after,
.blog-card.glass-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-radius: inherit;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    z-index: 1;
}

.card.glass-hover:hover::after,
.service-card.glass-hover:hover::after,
.blog-card.glass-hover:hover::after {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 1;
}

/* Glass modal arka planı */
.modal.glass-modal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 50px 0 rgba(31, 38, 135, 0.25);
    border-radius: 20px;
}

.modal.glass-modal .modal-backdrop {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Glass modal header */
.modal.glass-modal .modal-header {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Glass modal footer */
.modal.glass-modal .modal-footer {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.1)
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Glass button */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #333;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 38, 135, 0.2);
}

/* Glass primary button */
.btn-glass-primary {
    background: rgba(78, 115, 223, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(78, 115, 223, 0.3);
    color: #fff;
}

.btn-glass-primary:hover {
    background: rgba(78, 115, 223, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(78, 115, 223, 0.5);
}

/* Glass navbar */
.navbar.glass-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px 0 rgba(31, 38, 135, 0.1);
}

/* Glass dropdown */
.dropdown-menu.glass-dropdown {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px 0 rgba(31, 38, 135, 0.2);
}

.dropdown-menu.glass-dropdown .dropdown-item:hover {
    background: rgba(78, 115, 223, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Glass sidebar */
.sidebar.glass-sidebar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 4px 0 20px 0 rgba(31, 38, 135, 0.1);
}

/* Glass alert/notification */
.alert.glass-alert {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px 0 rgba(31, 38, 135, 0.15);
}

/* Glass search bar */
.search-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.search-glass:focus {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(78, 115, 223, 0.4);
    box-shadow: 0 5px 20px rgba(78, 115, 223, 0.2);
}

/* Glass badge */
.badge.glass-badge {
    background: rgba(78, 115, 223, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(78, 115, 223, 0.3);
}

/* Glass tooltip */
.tooltip.glass-tooltip .tooltip-inner {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glass progress bar */
.progress.glass-progress {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress.glass-progress .progress-bar {
    background: linear-gradient(
        90deg,
        rgba(78, 115, 223, 0.6),
        rgba(111, 66, 193, 0.6)
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Glass overlay */
.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Glass info box */
.glass-info-box {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.3s ease;
}

.glass-info-box:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.08)
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

/* Colorful glass variants */
.glass-primary {
    background: rgba(78, 115, 223, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(78, 115, 223, 0.2);
}

.glass-success {
    background: rgba(28, 200, 138, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(28, 200, 138, 0.2);
}

.glass-danger {
    background: rgba(231, 74, 59, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(231, 74, 59, 0.2);
}

.glass-warning {
    background: rgba(246, 194, 62, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(246, 194, 62, 0.2);
}

.glass-info {
    background: rgba(54, 185, 204, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(54, 185, 204, 0.2);
}

/* Glass border gradient */
.glass-border-gradient {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 2px;
}

.glass-border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(78, 115, 223, 0.5),
        rgba(111, 66, 193, 0.5),
        rgba(54, 185, 204, 0.5)
    );
    -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;
}

/* Animated glass shimmer */
@keyframes glass-shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.glass-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: glass-shimmer 3s ease-in-out infinite;
}

/* Floating glass effect */
.glass-float {
    animation: glass-float-animation 3s ease-in-out infinite;
}

@keyframes glass-float-animation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Glass pulse effect */
.glass-pulse {
    animation: glass-pulse-animation 2s ease-in-out infinite;
}

@keyframes glass-pulse-animation {
    0%, 100% {
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    }
    50% {
        box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.3);
    }
}

/* Browser uyumluluğu için fallback */
@supports not (backdrop-filter: blur(10px)) {
    .glass-effect,
    .glass-effect-dark,
    .glass-card,
    .glass-modal .modal-content,
    .btn-glass,
    .glass-navbar,
    .glass-dropdown,
    .glass-sidebar {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Dark mode için glass efektleri */
@media (prefers-color-scheme: dark) {
    .glass-card,
    .glass-effect {
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .glass-card:hover {
        background: rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Mobilde blur miktarını azalt (performans için) */
    .glass-effect,
    .glass-card,
    .glass-modal .modal-content {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

