/* Enhanced styles for signup process */

/* Animated Logo Styles */
.logo {
    display: flex;
    align-items: center;
    position: relative;
    color: var(--dark-color);
    text-decoration: none;
}

.logo-icon {
    background-color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    position: relative;
    overflow: hidden;
}

.pulse-icon {
    width: 36px;
    height: 36px;
    position: relative;
    transform: translateZ(0);
}

.heartbeat-line {
    stroke: var(--dark-color);
    stroke-width: 4;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 2s ease-in-out forwards infinite;
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 200;
    }
    50% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -200;
    }
}

.logo-text {
    display: flex;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--dark-color);
}

.logo-text span {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.logo-text span::before {
    /* IMPORTANT NOTE: This enables the ripple animation, but may be overridden by styles.css
     * which has a rule to hide this animation globally. For pages that need the logo animation
     * (like signup_success and payment_success), we use inline CSS to ensure the animation works.
     * See docs/logo_animation_fix.md for details.
     */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-100%);
    opacity: 0;
    animation: ripple 3.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    animation-delay: calc(1.65s + (0.2s * var(--index)));
}

@keyframes ripple {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    40%, 60% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.logo-text span:nth-child(1) { --index: 1; }
.logo-text span:nth-child(2) { --index: 2; }
.logo-text span:nth-child(3) { --index: 3; }
.logo-text span:nth-child(4) { --index: 4; }
.logo-text span:nth-child(5) { --index: 5; }
.logo-text span:nth-child(6) { --index: 6; }
.logo-text span:nth-child(7) { --index: 7; }
.logo-text span:nth-child(8) { --index: 8; }
.logo-text span:nth-child(9) { --index: 9; }
.logo-text span:nth-child(10) { --index: 10; }
.logo-text span:nth-child(11) { --index: 11; }

/* Enhanced Button styles */
.btn-primary {
    background-color: var(--wp-yellow);
    color: var(--dark-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(255, 209, 67, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #FFE578;
    color: var(--dark-color);
    box-shadow: 0 6px 15px rgba(255, 209, 67, 0.4);
    transform: translateY(-2px);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-primary:hover::after {
    animation: ripple-btn 1s ease-out;
}

@keyframes ripple-btn {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.btn-outline-secondary {
    color: var(--dark-color);
    background-color: transparent;
    border: 1px solid var(--wp-yellow);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline-secondary:hover {
    background-color: var(--wp-yellow);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 209, 67, 0.3);
}

/* Enhanced form elements */
.form-control:focus {
    border-color: var(--wp-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 209, 67, 0.25);
}

/* Success Page Enhanced Animations */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes success-bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.success-title, .success-message {
    animation: fade-in-up 0.8s ease-out forwards;
}

.success-icon {
    animation: success-bounce 1.5s ease-in-out forwards;
}

.success-next-steps {
    opacity: 0;
    animation: fade-in-up 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.beta-code {
    opacity: 0;
    animation: fade-in-up 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

/* Step indicator enhancements */
.step {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.step.active {
    transform: scale(1.1);
}

.step.completed:not(:last-child)::after {
    transition: background-color 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .heartbeat-line, .logo-text span::before, .success-title, 
    .success-message, .success-icon, .success-next-steps, .beta-code {
        animation: none !important;
    }
}

/* Beta banner styling */
.beta-banner {
    background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
    border-radius: 16px;
    border-left: 4px solid #FFD700;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.beta-banner:before {
    content: "";
    position: absolute;
    top: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    background: #FFD700;
    opacity: 0.1;
    border-radius: 50%;
}

.beta-banner-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.beta-icon {
    background: #FFD700;
    color: #333;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(255,215,0,0.3);
}

.beta-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
}

.beta-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .beta-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .beta-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}