/*
Bu yazılım anxcure.com'a aittir.
Tüm hakları anxcure.com tarafından saklıdır.
İzinsiz kullanım, kopyalama veya dağıtım yasaktır.
© 2025 anxcure.com. Tüm hakları saklıdır.
*/

/* AnxCure Animasyonlar CSS */

/* Temel Animasyon Değişkenleri */
:root {
    --animation-duration: 0.3s;
    --animation-duration-slow: 0.5s;
    --animation-duration-fast: 0.15s;
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== DARK THEME VARIABLES ===== */
[data-theme="dark"] {
    --animation-duration: 0.3s;
    --animation-duration-slow: 0.5s;
    --animation-duration-fast: 0.15s;
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Sayfa Yükleme Animasyonları */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Hover Animasyonları */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

/* Loading Animasyonları */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

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

/* Animasyon Sınıfları */
.animate-fade-in-up {
    animation: fadeInUp var(--animation-duration) var(--ease-out);
}

.animate-fade-in-down {
    animation: fadeInDown var(--animation-duration) var(--ease-out);
}

.animate-fade-in-left {
    animation: fadeInLeft var(--animation-duration) var(--ease-out);
}

.animate-fade-in-right {
    animation: fadeInRight var(--animation-duration) var(--ease-out);
}

.animate-scale-in {
    animation: scaleIn var(--animation-duration) var(--ease-out);
}

.animate-slide-in-up {
    animation: slideInUp var(--animation-duration-slow) var(--ease-out);
}

.animate-slide-in-down {
    animation: slideInDown var(--animation-duration-slow) var(--ease-out);
}

/* Hover Efektleri */
.hover-pulse:hover {
    animation: pulse 0.6s var(--bounce);
}

.hover-bounce:hover {
    animation: bounce 0.6s var(--bounce);
}

.hover-shake:hover {
    animation: shake 0.6s var(--ease-in-out);
}

.hover-rotate:hover {
    animation: rotate 0.6s var(--ease-in-out);
}

.hover-float:hover {
    animation: float 2s ease-in-out infinite;
}

/* Kart Animasyonları */
.card {
    transition: all var(--animation-duration) var(--ease-in-out);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-scale:hover {
    transform: scale(1.02);
}

/* Buton Animasyonları */
.btn {
    transition: all var(--animation-duration-fast) var(--ease-in-out);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

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

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Form Animasyonları */
.form-control {
    transition: all var(--animation-duration-fast) var(--ease-in-out);
}

.form-control:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.1);
}

/* Modal Animasyonları */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal.show .modal-dialog {
    animation: modalFadeIn var(--animation-duration) var(--ease-out);
}

/* Navbar Animasyonları - navbarcommon.css'te tanımlandı */

/* Progress Bar Animasyonları */
@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: var(--progress-width);
    }
}

.progress-bar {
    animation: progressFill 1s var(--ease-out);
}

/* Star Rating Animasyonları */
.star-rating .star {
    transition: all var(--animation-duration-fast) var(--ease-in-out);
    cursor: pointer;
}

.star-rating .star:hover {
    transform: scale(1.2);
    color: #ffd700;
}

.star-rating .star.active {
    animation: bounce 0.3s var(--bounce);
}

/* Notification Animasyonları */
@keyframes slideInNotification {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutNotification {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification {
    animation: slideInNotification var(--animation-duration) var(--ease-out);
}

.notification.hide {
    animation: slideOutNotification var(--animation-duration) var(--ease-in);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Pulse Loading */
.pulse-loading {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 1s ease-in-out infinite;
}

/* Stagger Animasyonları */
.stagger-item {
    opacity: 0;
    animation: fadeInUp var(--animation-duration) var(--ease-out) forwards;
}

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

/* Responsive Animasyonlar */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Animasyonları */
@media (prefers-color-scheme: dark) {
    .card {
        transition: all var(--animation-duration) var(--ease-in-out);
    }
    
    .card:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Özel Animasyonlar */
.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

.wave {
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(20deg);
    }
    75% {
        transform: rotate(-20deg);
    }
}

/* Scroll Reveal Animasyonları */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Efektleri */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

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

/* Focus Animasyonları */
.focus-ring {
    transition: all var(--animation-duration-fast) var(--ease-in-out);
}

.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.3);
    transform: scale(1.02);
}

/* ===== MODERN ANİMASYONLAR VE MİKRO-ETKİLEŞİMLER ===== */

/* ===== SAYFA YÜKLEME ANİMASYONLARI ===== */
.page-loaded {
    animation: fadeInUp 0.8s ease-out;
}

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

/* ===== HERO ANİMASYONLARI ===== */
.hero-animated {
    animation: heroSlideIn 1.2s ease-out;
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.card-animated {
    animation: cardFloatIn 0.8s ease-out;
}

@keyframes cardFloatIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== BUTON ANİMASYONLARI ===== */
.btn-hovered {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(79, 209, 197, 0.3) !important;
}

.btn-clicked {
    transform: translateY(1px) scale(0.98) !important;
    transition: all 0.1s ease !important;
}

/* ===== KART ANİMASYONLARI ===== */
.hovered {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-hovered {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-clicked {
    transform: scale(0.98) !important;
    transition: all 0.1s ease !important;
}

/* ===== INPUT FOCUS ANİMASYONLARI ===== */
.input-focused .modern-input {
    border-color: var(--ana-renk) !important;
    box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.1) !important;
}

/* ===== SOSYAL MEDYA ANİMASYONLARI ===== */
.social-hovered {
    transform: translateY(-3px) scale(1.1) !important;
    background: var(--ana-renk) !important;
}

/* ===== SCROLL TO TOP BUTONU ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--ana-renk);
    color: var(--metin-acik);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--ikincil-renk);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 209, 197, 0.4);
}

.scroll-to-top i {
    font-size: 1.2rem;
}

/* ===== BİLDİRİM SİSTEMİ ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--kart-arkaplan);
    border-radius: var(--border-radius-normal);
    padding: var(--spacing-md);
    box-shadow: var(--kart-golge-hover);
    border-left: 4px solid var(--ana-renk);
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 350px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #48BB78;
}

.notification-error {
    border-left-color: #F56565;
}

.notification-info {
    border-left-color: #4299E1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success .notification-content i {
    color: #48BB78;
}

.notification-error .notification-content i {
    color: #F56565;
}

.notification-info .notification-content i {
    color: #4299E1;
}

.notification-close {
    background: none;
    border: none;
    color: var(--metin-gri);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--metin-koyu);
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--ana-renk);
    color: var(--metin-acik);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: var(--border-radius-kucuk);
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* ===== FOCUS VISIBLE ===== */
.focus-visible {
    outline: 2px solid var(--ana-renk) !important;
    outline-offset: 2px !important;
}

/* ===== KEYBOARD NAVIGATION ===== */
.keyboard-navigation .modern-btn:focus,
.keyboard-navigation .modern-input:focus {
    outline: 2px solid var(--ana-renk) !important;
    outline-offset: 2px !important;
}

/* ===== MENU OPEN STATE ===== */
body.menu-open {
    overflow: hidden;
}

/* ===== LOADING ANİMASYONLARI ===== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--metin-acik);
    animation: spin 1s ease-in-out infinite;
}

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

/* ===== PARALLAX EFEKTLERİ ===== */
.parallax-element {
    transition: transform 0.1s ease-out;
}

/* ===== HOVER EFEKTLERİ ===== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* ===== TEXT ANİMASYONLARI ===== */
.text-fade-in {
    animation: textFadeIn 0.8s ease-out;
}

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

.text-slide-in-left {
    animation: textSlideInLeft 0.8s ease-out;
}

@keyframes textSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.text-slide-in-right {
    animation: textSlideInRight 0.8s ease-out;
}

@keyframes textSlideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== PULSE ANİMASYONU ===== */
.pulse {
    animation: pulse 2s infinite;
}

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

/* ===== BOUNCE ANİMASYONU ===== */
.bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== SHIMMER EFEKTİ ===== */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::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: left 0.5s;
}

.shimmer:hover::before {
    left: 100%;
}

/* ===== RESPONSIVE ANİMASYONLAR ===== */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .floating-card {
        display: none;
    }
}

/* ===== REDUCED MOTION ===== */
@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;
    }
    
    .scroll-to-top,
    .notification,
    .floating-card {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== DARK MODE DESTEĞİ ===== */
@media (prefers-color-scheme: dark) {
    .notification {
        background: var(--arkaplan-koyu);
        color: var(--metin-acik);
    }
    
    .scroll-to-top {
        background: var(--ana-renk);
        color: var(--metin-acik);
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .notification {
        border: 2px solid var(--ana-renk);
    }
    
    .scroll-to-top {
        border: 2px solid var(--metin-acik);
    }
    
    .focus-visible {
        outline: 3px solid var(--ana-renk) !important;
    }
} 