/**
 * Toast Bildirimleri & UX Bileşenleri
 * Instagram Beğeni
 */

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    animation: slideIn 0.4s ease forwards;
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
}

.toast-notification.hide {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.toast-notification i {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-notification .toast-content {
    flex: 1;
}

.toast-notification .toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.toast-notification .toast-message {
    font-size: 13px;
    color: #666;
}

.toast-notification .toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
}

.toast-notification .toast-close:hover {
    color: #333;
}

/* Toast Types */
.toast-success {
    border-left: 4px solid #28a745;
}

.toast-success i {
    color: #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-error i {
    color: #dc3545;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-warning i {
    color: #ffc107;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-info i {
    color: #17a2b8;
}

/* ==================== SKELETON LOADING ==================== */
.skeleton {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 8px;
}

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

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-title {
    height: 24px;
    width: 40%;
    margin-bottom: 15px;
}

.skeleton-image {
    height: 200px;
    width: 100%;
    margin-bottom: 15px;
}

.skeleton-card {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* ==================== LOADING STATES ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-loading {
    position: relative;
    pointer-events: none;
}

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

.btn-loading span {
    visibility: hidden;
}

/* ==================== PROGRESS INDICATORS ==================== */
.progress-bar-animated {
    animation: progress-animation 1.5s ease-in-out infinite;
}

@keyframes progress-animation {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 0;
    }
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 30px 0;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e9ecef;
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.progress-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--gradient);
    color: #fff;
}

.progress-step.completed .step-number {
    background: #28a745;
    color: #fff;
}

.progress-step .step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* ==================== EMPTY STATES ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #6c757d;
    margin-bottom: 10px;
}

.empty-state p {
    color: #adb5bd;
    max-width: 400px;
    margin: 0 auto 20px;
}

/* ==================== MICRO INTERACTIONS ==================== */
.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.1);
}

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

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

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.3);
}

/* ==================== PULSE ANIMATIONS ==================== */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(233, 30, 99, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0);
    }
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ==================== FLOATING ACTION BUTTON ==================== */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(233, 30, 99, 0.5);
}

.fab-main.active {
    transform: rotate(45deg);
}

.fab-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-container.open .fab-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-action {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fab-action:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

.fab-action::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.fab-action:hover::before {
    opacity: 1;
    visibility: visible;
}

/* WhatsApp FAB */
.fab-whatsapp {
    background: #25d366;
    color: white;
}

.fab-whatsapp:hover {
    background: #128c7e;
    color: white;
}

/* Dark mode FAB */
[data-theme="dark"] .fab-action {
    background: var(--bg-secondary);
    color: var(--text-color);
}

[data-theme="dark"] .fab-action:hover {
    background: var(--primary-color);
    color: white;
}

/* ==================== ADVANCED SKELETON LOADING ==================== */
.skeleton-package-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.skeleton-package-card .skeleton-badge {
    width: 80px;
    height: 24px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.skeleton-package-card .skeleton-price {
    width: 120px;
    height: 36px;
    margin-bottom: 20px;
}

.skeleton-package-card .skeleton-feature {
    height: 16px;
    margin-bottom: 10px;
}

.skeleton-package-card .skeleton-button {
    height: 44px;
    border-radius: 25px;
    margin-top: 15px;
}

/* Skeleton Blog Card */
.skeleton-blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.skeleton-blog-card .skeleton-blog-image {
    height: 200px;
    width: 100%;
}

.skeleton-blog-card .skeleton-blog-content {
    padding: 20px;
}

.skeleton-blog-card .skeleton-blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.skeleton-blog-card .skeleton-blog-meta-item {
    width: 60px;
    height: 16px;
    border-radius: 8px;
}

/* Dark mode skeleton */
[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #2a2a3d 25%, #323250 50%, #2a2a3d 75%);
    background-size: 200% 100%;
}

[data-theme="dark"] .skeleton-card,
[data-theme="dark"] .skeleton-package-card,
[data-theme="dark"] .skeleton-blog-card {
    background: var(--bg-secondary);
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.scroll-to-top:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

[data-theme="dark"] .scroll-to-top {
    background: var(--bg-secondary);
    color: var(--text-color);
}

/* ==================== NOTIFICATION DOT ==================== */
.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 9px;
    color: white;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ==================== MOBILE OPTIMIZATIONS ==================== */
@media (max-width: 768px) {
    .toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }

    .toast-notification {
        min-width: auto;
        width: 100%;
    }

    .progress-steps::before {
        left: 20px;
        right: 20px;
    }

    .progress-step .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .progress-step .step-label {
        font-size: 10px;
    }

    .fab-container {
        bottom: 20px;
        right: 20px;
    }

    .fab-main {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .fab-action::before {
        display: none;
    }

    .scroll-to-top {
        bottom: 80px;
        right: 20px;
    }
}