/* Upgrade Prompt Modal Styles */

/* Modal open durumunda body scroll engelleme */
body.upgrade-modal-open {
    overflow: hidden;
}

/* Modal Container */
.upgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.upgrade-modal.show {
    opacity: 1;
    visibility: visible;
}

/* Backdrop */
.upgrade-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Modal Content */
.upgrade-modal-content {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow:
        0 25px 60px rgba(107, 120, 240, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Close Button */
.upgrade-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(107, 120, 240, 0.1);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B78F0;
    transition: all 0.2s ease;
}

.upgrade-modal-close:hover {
    background: rgba(107, 120, 240, 0.2);
    transform: scale(1.05);
}

/* Icon Container */
.upgrade-modal-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upgrade-icon-star {
    font-size: 3rem;
    position: relative;
    z-index: 1;
    animation: starPulse 2s ease-in-out infinite;
}

.upgrade-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, rgba(251, 191, 36, 0) 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* Title */
.upgrade-modal-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

/* Feature Badge */
.upgrade-feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6B78F0 0%, #9470F5 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Message */
.upgrade-modal-message {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

/* Current Plan */
.upgrade-current-plan {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0 0 20px 0;
}

/* Benefits List */
.upgrade-benefits {
    background: rgba(107, 120, 240, 0.06);
    border-radius: 16px;
    padding: 16px 20px;
    margin: 20px 0 24px;
    text-align: left;
}

.upgrade-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    color: #475569;
}

.upgrade-benefit-item:not(:last-child) {
    border-bottom: 1px solid rgba(107, 120, 240, 0.1);
}

.benefit-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Actions */
.upgrade-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.upgrade-btn-secondary {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 24px;
    border: 2px solid rgba(107, 120, 240, 0.2);
    background: transparent;
    border-radius: 12px;
    color: #6B78F0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upgrade-btn-secondary:hover {
    background: rgba(107, 120, 240, 0.08);
    border-color: rgba(107, 120, 240, 0.3);
}

.upgrade-btn-primary {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 28px;
    background: linear-gradient(135deg, #6B78F0 0%, #9470F5 100%);
    border: none;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 120, 240, 0.35);
}

.upgrade-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 120, 240, 0.45);
}

.upgrade-btn-primary svg {
    transition: transform 0.2s ease;
}

.upgrade-btn-primary:hover svg {
    transform: translateX(4px);
}

/* ==================== */
/* Inline Upgrade Banner */
/* ==================== */

.upgrade-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(107, 120, 240, 0.12) 0%, rgba(148, 112, 245, 0.12) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(107, 120, 240, 0.2);
    border-radius: 16px;
    margin: 16px 0;
}

.upgrade-banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.upgrade-banner-content {
    flex: 1;
    text-align: left;
}

.upgrade-banner-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.upgrade-banner-message {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.upgrade-banner-btn {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 20px;
    background: linear-gradient(135deg, #6B78F0 0%, #9470F5 100%);
    border: none;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(107, 120, 240, 0.3);
}

.upgrade-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 120, 240, 0.4);
}

/* ==================== */
/* Dark Mode Support */
/* ==================== */

body.dark .upgrade-modal-content {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(107, 120, 240, 0.2);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark .upgrade-modal-close {
    background: rgba(107, 120, 240, 0.15);
    color: #A5B4FC;
}

body.dark .upgrade-modal-close:hover {
    background: rgba(107, 120, 240, 0.25);
}

body.dark .upgrade-modal-title {
    color: #f1f5f9;
}

body.dark .upgrade-modal-message {
    color: #94a3b8;
}

body.dark .upgrade-current-plan {
    color: #64748b;
}

body.dark .upgrade-benefits {
    background: rgba(107, 120, 240, 0.1);
}

body.dark .upgrade-benefit-item {
    color: #cbd5e1;
    border-color: rgba(107, 120, 240, 0.15);
}

body.dark .upgrade-btn-secondary {
    border-color: rgba(107, 120, 240, 0.3);
    color: #A5B4FC;
}

body.dark .upgrade-btn-secondary:hover {
    background: rgba(107, 120, 240, 0.15);
    border-color: rgba(107, 120, 240, 0.4);
}

/* Dark mode banner */
body.dark .upgrade-banner {
    background: linear-gradient(135deg, rgba(107, 120, 240, 0.15) 0%, rgba(148, 112, 245, 0.15) 100%);
    border-color: rgba(107, 120, 240, 0.25);
}

body.dark .upgrade-banner-title {
    color: #f1f5f9;
}

body.dark .upgrade-banner-message {
    color: #94a3b8;
}

/* ==================== */
/* Responsive Styles */
/* ==================== */

@media (max-width: 480px) {
    .upgrade-modal-content {
        padding: 32px 24px;
        margin: 16px;
        max-width: calc(100% - 32px);
    }

    .upgrade-modal-icon {
        width: 64px;
        height: 64px;
    }

    .upgrade-icon-star {
        font-size: 2.5rem;
    }

    .upgrade-modal-title {
        font-size: 1.25rem;
    }

    .upgrade-modal-actions {
        flex-direction: column;
    }

    .upgrade-btn-secondary,
    .upgrade-btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Banner responsive */
    .upgrade-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .upgrade-banner-content {
        text-align: center;
    }

    .upgrade-banner-btn {
        width: 100%;
    }
}
