/* ==========================================================================
   Celia Kibler Funnel - Shared Styles
   ========================================================================== */

/* ---------------------------------------------------------------------
   Base Styles
   --------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    visibility: visible;
    opacity: 1;
}

body {
    overflow-x: hidden;
}

/* ---------------------------------------------------------------------
   Utility Classes
   --------------------------------------------------------------------- */

/* Force Full Width (Removes white bars on sides in GHL) */
.force-full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Manual Color Safeguards (Ensures colors load immediately) */
.bg-brand-coral { background-color: #E8614D !important; }
.bg-brand-navy { background-color: #264653 !important; }
.bg-brand-teal { background-color: #2A9D8F !important; }
.bg-brand-cream { background-color: #FFFBF7 !important; }

/* Text Highlights */
.highlight-yellow {
    background: linear-gradient(180deg, transparent 50%, #FEF08A 50%);
    padding: 0 4px;
    margin: 0 -4px;
}

.highlight-coral {
    background: linear-gradient(180deg, transparent 50%, #FECACA 50%);
    padding: 0 4px;
    margin: 0 -4px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #264653 0%, #2A9D8F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------------------------------------------------------------------
   Components
   --------------------------------------------------------------------- */

/* Testimonial Cards */
.testimonial-card {
    transform: rotate(-0.5deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:nth-child(even) {
    transform: rotate(0.5deg);
}

.testimonial-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* CTA Buttons */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232, 97, 77, 0.4);
}

/* Form Inputs */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: scale(1.01);
}

/* Quote Marks */
.quote-mark {
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: #E9C46A;
    opacity: 0.5;
}

/* Image Placeholder */
.img-placeholder {
    background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    font-size: 0.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    animation: shimmer 2s infinite;
}

/* Book Shadow (Thank You Page) */
.book-shadow {
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.25));
}

/* Timer Boxes (Thank You Page) */
.timer-box {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
}

/* Price Strikethrough */
.price-strike {
    position: relative;
    color: #9CA3AF;
}

.price-strike::after {
    content: '';
    position: absolute;
    left: -5%;
    top: 50%;
    width: 110%;
    height: 2px;
    background: #E8614D;
    transform: rotate(-5deg);
}

/* Header Shadow on Scroll */
.header-scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* ---------------------------------------------------------------------
   Animations
   --------------------------------------------------------------------- */

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Countdown flip animation */
.countdown-digit {
    transition: transform 0.3s ease;
}

.countdown-digit.flip {
    animation: flip 0.3s ease;
}

@keyframes flip {
    0% { transform: rotateX(0); }
    50% { transform: rotateX(-90deg); }
    100% { transform: rotateX(0); }
}

/* Shimmer effect */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Confetti effect (Thank You Page) */
.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Checkmark animation (Thank You Page) */
.check-circle {
    animation: check-bounce 0.6s ease-out 0.3s both;
}

@keyframes check-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Urgency pulse */
.urgency-pulse {
    animation: urgency-pulse 1.5s ease-in-out infinite;
}

@keyframes urgency-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
