/* GiftOnScreen - SPA Styles */

/* ========================================
   SPA Container & Layout
   ======================================== */

#app {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.spa-view {
    width: 100%;
    min-height: calc(100vh - 80px);
    padding-top: 100px;
}

/* ========================================
   Transitions
   ======================================== */

.view-enter {
    opacity: 0;
    transform: translateX(30px);
}

.view-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.view-exit {
    opacity: 1;
    transform: translateX(0);
}

.view-exit-active {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Forward transition */
.transition-forward-enter {
    opacity: 0;
    transform: translateX(50px);
}

.transition-forward-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-forward-exit {
    opacity: 1;
    transform: translateX(0);
}

.transition-forward-exit-active {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Backward transition */
.transition-backward-enter {
    opacity: 0;
    transform: translateX(-50px);
}

.transition-backward-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-backward-exit {
    opacity: 1;
    transform: translateX(0);
}

.transition-backward-exit-active {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade transition */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Scale transition */
.scale-enter {
    opacity: 0;
    transform: scale(0.95);
}

.scale-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-exit {
    opacity: 1;
    transform: scale(1);
}

.scale-exit-active {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Loading States
   ======================================== */

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 0, 20, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(168, 85, 247, 0.2);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-message {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

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

/* ========================================
   Page Headers
   ======================================== */

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Back Link
   ======================================== */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 24px;
    transition: color 0.2s ease;
    cursor: pointer;
}

.back-link:hover {
    color: #a855f7;
}

.back-link svg {
    transition: transform 0.2s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* ========================================
   Gradient Text
   ======================================== */

.gradient-text {
    background: linear-gradient(135deg, #a855f7, #3b82f6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Container
   ======================================== */

.spa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navbar (SPA-aware)
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(3, 0, 20, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(3, 0, 20, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-cta {
    padding: 8px 24px;
    background: var(--gradient-primary, linear-gradient(135deg, #a855f7, #3b82f6));
    border-radius: 9999px;
    color: #ffffff !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .spa-view {
        padding-top: 80px;
    }

    .page-header {
        margin-bottom: 32px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}