/* ============================================
   GiftOnScreen - Success Page Styles
   ============================================ */

@import url('occasion.css');

/* Success Page */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6) var(--space-3);
}

.success-container {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

/* Confetti */
.confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    border-radius: 2px;
    animation: confettiFall 3s ease-in-out infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Success Icon */
.success-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-5);
}

.success-icon {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.icon-ring {
    position: absolute;
    inset: -10px;
    border: 2px solid var(--color-accent-purple);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Title */
.success-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-2);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.success-subtitle {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Gift Link Card */
.gift-link-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.link-label {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.link-content {
    display: flex;
    gap: var(--space-2);
}

.link-input {
    flex: 1;
    padding: var(--space-2);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 0.9rem;
    font-family: var(--font-primary);
}

.link-input:focus {
    outline: none;
}

.copy-btn {
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.copy-btn.copied {
    background: #22c55e;
    border-color: transparent;
    color: white;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    animation: fadeInUp 0.6s ease 0.5s both;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: #25D366;
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-bounce);
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
}

.btn-view {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: 1rem;
}

.btn-view:hover {
    transform: translateY(-2px);
}

/* Info Card */
.info-card {
    display: flex;
    gap: var(--space-3);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    margin-bottom: var(--space-6);
    text-align: left;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 0.95rem;
    margin-bottom: var(--space-1);
}

.info-content p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.info-content strong {
    color: var(--color-accent-purple);
}

/* Create Another */
.create-another {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    animation: fadeInUp 0.6s ease 0.7s both;
}

.create-another:hover {
    color: var(--color-accent-purple);
}

.create-another svg {
    transition: transform var(--transition-fast);
}

.create-another:hover svg {
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 480px) {
    .gift-link-card {
        padding: var(--space-3);
    }

    .link-content {
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
    }
}