/* Premium Entrance Animations */

/* Page Load Animations */
.profile-header {
    animation: fadeInDown 0.8s ease-out;
}

.profile-info {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.subscription-section {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.locked-grid {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Grid Items Staggered Animation */
.locked-content {
    animation: scaleIn 0.5s ease-out both;
}

.locked-content:nth-child(1) {
    animation-delay: 0.1s;
}

.locked-content:nth-child(2) {
    animation-delay: 0.15s;
}

.locked-content:nth-child(3) {
    animation-delay: 0.2s;
}

.locked-content:nth-child(4) {
    animation-delay: 0.25s;
}

.locked-content:nth-child(5) {
    animation-delay: 0.3s;
}

.locked-content:nth-child(6) {
    animation-delay: 0.35s;
}

.locked-content:nth-child(7) {
    animation-delay: 0.4s;
}

.locked-content:nth-child(8) {
    animation-delay: 0.45s;
}

.locked-content:nth-child(9) {
    animation-delay: 0.5s;
}

.locked-content:nth-child(10) {
    animation-delay: 0.55s;
}

.locked-content:nth-child(11) {
    animation-delay: 0.6s;
}

.locked-content:nth-child(12) {
    animation-delay: 0.65s;
}

/* Button Loading States */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal Open Animations */
.subscription-modal.active .modal-card {
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stories Modal Animation */
.stories-modal.active .stories-content {
    animation: storiesZoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes storiesZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover Effects */
.subscribe-button {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.subscribe-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 0, 128, 0.4);
}

.subscribe-button:active {
    transform: translateY(0) scale(0.98);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Page Transition Overlay */
.page-loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.page-loader .logo {
    animation: pulse 1.5s infinite;
}