/**
 * AppleDr - Custom CSS
 * TailwindCSS ile birlikte kullanılan ek stiller
 */

/* ═══════════════════════════════════════════════════════════════
   GENEL AYARLAR
   ═══════════════════════════════════════════════════════════════ */

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

/* Selection Color */
::selection {
    background-color: #FED700;
    color: #000000;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FED700;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e5c200;
}

/* ═══════════════════════════════════════════════════════════════
   ANİMASYONLAR
   ═══════════════════════════════════════════════════════════════ */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Pulse Animation for WhatsApp Button */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

.whatsapp-pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    animation: pulse-ring 2s ease-out infinite;
    z-index: -1;
}

/* Slide Down Animation for Dropdown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-animate {
    animation: slideDown 0.2s ease-out forwards;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER STİLLERİ
   ═══════════════════════════════════════════════════════════════ */

/* Header Shadow on Scroll */
header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Dropdown Hover Effect */
.group:hover .dropdown-animate {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   BUTON STİLLERİ
   ═══════════════════════════════════════════════════════════════ */

/* Primary Button Shine Effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-shine:hover::before {
    left: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER STİLLERİ
   ═══════════════════════════════════════════════════════════════ */

/* Footer Link Hover Animation */
footer a {
    transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════
   MOBİL MENÜ
   ═══════════════════════════════════════════════════════════════ */

/* Mobile Menu Animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobileMenu.active {
    max-height: 100vh;
}

/* Mobile Dropdown Animation */
.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-dropdown-content.active {
    max-height: 500px;
}

/* ═══════════════════════════════════════════════════════════════
   YARDIMCI SINIFLAR
   ═══════════════════════════════════════════════════════════════ */

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #FED700 0%, #FFE44D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.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);
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSİVE DÜZENLEMELER
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    /* Mobile specific styles */
}

@media (max-width: 768px) {
    /* Tablet specific styles */
}

@media (max-width: 640px) {
    /* Small mobile specific styles */
}

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATION SYSTEM
   ═══════════════════════════════════════════════════════════════ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 320px;
    max-width: 420px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--toast-color, #FED700);
}

.toast.success::before {
    background: linear-gradient(180deg, #10B981 0%, #059669 100%);
}

.toast.error::before {
    background: linear-gradient(180deg, #EF4444 0%, #DC2626 100%);
}

.toast.warning::before {
    background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%);
}

.toast.info::before {
    background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 15px;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.4;
}

.toast-message {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
}

.toast-close {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    margin-top: 2px;
}

.toast-close:hover {
    opacity: 1;
}

.toast-close svg {
    width: 100%;
    height: 100%;
    stroke: #6B7280;
}

/* Toast Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--toast-color, #FED700);
    animation: toastProgress linear forwards;
}

.toast.success .toast-progress {
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
}

.toast.error .toast-progress {
    background: linear-gradient(90deg, #EF4444 0%, #DC2626 100%);
}

.toast.warning .toast-progress {
    background: linear-gradient(90deg, #F59E0B 0%, #D97706 100%);
}

.toast.info .toast-progress {
    background: linear-gradient(90deg, #3B82F6 0%, #2563EB 100%);
}

/* Animations */
@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast.slide-out {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

