/* ==========================================================================
   IWELABI FRONTEND COMMON STYLES
   Extracted from blade templates for consistency and DRY code
   Version: 1.0.0
   ========================================================================== */

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */
/* Reduce layout shift for images */
img {
    content-visibility: auto;
}

/* GPU acceleration for animated elements */
.animate-bounce,
.float-animation,
.pulse-ring,
.card-pop,
.tier-card,
.step-card,
.btn-hover {
    will-change: transform;
}

/* Contain paint for cards */
.custom-shadow,
.cocoa-shadow,
.faq-shadow {
    contain: layout style paint;
}

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
    /* Primary Action Color (CTAs) - Sunny Peach */
    --iw-primary: #FFB88C;
    --iw-primary-hover: #E8A67D;
    --iw-primary-active: #D4966F;
    
    /* Secondary Accent / Links - Lagoon Teal */
    --iw-teal: #4CB5AE;
    --iw-teal-hover: #3A9A94;
    
    /* Header & Footer Background - Warm Cocoa Brown */
    --iw-cocoa: #5E4B3C;
    --iw-cocoa-dark: #4A3B2F;
    
    /* Background - Creamy Vanilla */
    --iw-vanilla: #FFF8E1;
    
    /* Text / Headings - Charcoal Gray */
    --iw-charcoal: #4A4A4A;
    --iw-charcoal-muted: rgba(74, 74, 74, 0.70);
    
    /* Legacy aliases */
    --iw-coral: #FFB88C;
    --iw-gold: #F59E0B;
    --iw-navy: #1E293B;
    
    /* Semantic Colors */
    --iw-success: #10B981;
    --iw-info: #4CB5AE;
    --iw-warning: #F59E0B;
    --iw-error: #EF4444;
    
    /* Menu/Accent Colors */
    --iw-menu-primary: #F59E0B;
    --iw-menu-secondary: #4CB5AE;
}

/* ==========================================================================
   SHADOWS
   ========================================================================== */
.custom-shadow {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.cocoa-shadow {
    box-shadow: 0 20px 40px -10px rgba(45, 27, 23, 0.15);
}

.faq-shadow {
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.1);
}

.teal-shadow {
    box-shadow: 0 10px 15px -3px rgba(76, 181, 174, 0.3);
}

/* ==========================================================================
   BUTTON HOVER EFFECTS
   ========================================================================== */
.btn-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(76, 181, 174, 0.3);
}

/* ==========================================================================
   CARD HOVER EFFECTS
   ========================================================================== */
.card-pop {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-pop:hover {
    transform: scale(1.02);
}

.card-lift {
    transition: all 0.3s ease;
}
.card-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.1);
}

.card-slide {
    transition: all 0.3s ease;
}
.card-slide:hover {
    transform: translateX(8px);
}

.tier-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tier-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.step-card {
    transition: all 0.3s ease;
}
.step-card:hover {
    transform: translateX(8px);
}

/* ==========================================================================
   BOOK CARD STYLES
   ========================================================================== */
.book-card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.book-card-hover:hover {
    transform: translateY(-8px) scale(1.02);
}

.top-book-card {
    transition: all 0.3s ease;
}
.top-book-card:hover {
    border-color: rgba(76, 181, 174, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   FAQ STYLES
   ========================================================================== */
.faq-card {
    transition: all 0.3s ease;
}
.faq-card:hover {
    border-color: var(--iw-teal);
    background-color: rgba(76, 181, 174, 0.02);
}

.faq-item {
    transition: all 0.3s ease;
}
.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.1);
}

.faq-item.active .faq-answer {
    display: block;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}
.faq-answer {
    display: none;
}
.faq-icon {
    transition: transform 0.3s ease;
}

/* Details/Summary FAQ */
.faq-item[open] summary iconify-icon {
    transform: rotate(180deg);
}
summary::-webkit-details-marker {
    display: none;
}

/* ==========================================================================
   SCROLLBAR UTILITIES
   ========================================================================== */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   FORM INPUTS
   ========================================================================== */
.form-input {
    transition: all 0.3s ease;
}
.form-input:focus {
    transform: translateY(-1px);
}

/* ==========================================================================
   SECTION & TOC CARDS (Legal pages)
   ========================================================================== */
.section-card {
    transition: all 0.3s ease;
}
.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.toc-link {
    position: relative;
    padding-left: 0;
    transition: all 0.3s ease;
}
.toc-link:hover {
    padding-left: 8px;
}
.toc-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--iw-teal);
    transition: width 0.3s ease;
}
.toc-link:hover::before {
    width: 16px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.float-animation {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.float-delay-1 {
    animation-delay: 0.5s;
}
.float-delay-2 {
    animation-delay: 1s;
}
.float-delay-3 {
    animation-delay: 1.5s;
}
.float-delay-4 {
    animation-delay: 2s;
}

.pulse-ring {
    animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.stat-counter {
    animation: countUp 2s ease-out forwards;
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.bounce-subtle {
    animation: bounce-subtle 2s ease-in-out infinite;
}
@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================================================
   CATEGORY TABS
   ========================================================================== */
.category-tab {
    transition: all 0.3s ease;
}
.category-tab:hover {
    background: rgba(255, 255, 255, 0.15);
}
.category-tab.active {
    background: var(--iw-teal);
    color: white;
}

/* ==========================================================================
   FILTER & CHECKBOX STYLES
   ========================================================================== */
.filter-checkbox:checked + label {
    background-color: var(--iw-teal);
    color: white;
    border-color: var(--iw-teal);
}

.age-checkbox:checked + span {
    color: var(--iw-teal);
}
.age-checkbox:checked ~ .age-check-box {
    background-color: var(--iw-teal);
    border-color: var(--iw-teal);
}
.age-checkbox:checked ~ .age-check-box iconify-icon {
    opacity: 1;
    color: white;
}

.price-btn.active {
    background: rgba(76, 181, 174, 0.1);
    border-color: var(--iw-teal);
    color: var(--iw-teal);
}

/* ==========================================================================
   VIEW TOGGLE
   ========================================================================== */
.view-btn-active {
    color: var(--iw-teal);
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   PARTNER LOGO
   ========================================================================== */
.partner-logo {
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.6;
}
.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   EXPERTISE & BENEFIT TAGS
   ========================================================================== */
.expertise-tag,
.benefit-tag {
    transition: all 0.3s ease;
}
.expertise-tag:hover,
.benefit-tag:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   IMPACT STEPS
   ========================================================================== */
.impact-step {
    transition: all 0.3s ease;
}
.impact-step:hover {
    transform: translateX(8px);
}

/* ==========================================================================
   PROHIBITED ITEMS (Terms page)
   ========================================================================== */
.prohibited-item {
    transition: all 0.3s ease;
}
.prohibited-item:hover {
    transform: scale(1.02);
    background: #FEE2E2;
}

/* ==========================================================================
   GRADIENT BACKGROUNDS
   ========================================================================== */
.bg-gradient-teal {
    background: linear-gradient(135deg, var(--iw-teal) 0%, #3d9690 100%);
}

.bg-gradient-coral {
    background: linear-gradient(135deg, var(--iw-coral) 0%, #e8a07a 100%);
}

.bg-gradient-cocoa {
    background: linear-gradient(135deg, var(--iw-cocoa) 0%, #4a3530 100%);
}

/* ==========================================================================
   TEXT COLORS
   ========================================================================== */
.text-teal {
    color: var(--iw-teal);
}

.text-coral {
    color: var(--iw-coral);
}

.text-cocoa {
    color: var(--iw-cocoa);
}

.text-gold {
    color: var(--iw-gold);
}

.text-navy {
    color: var(--iw-navy);
}

/* ==========================================================================
   BACKGROUND COLORS
   ========================================================================== */
.bg-teal {
    background-color: var(--iw-teal);
}

.bg-coral {
    background-color: var(--iw-coral);
}

.bg-cocoa {
    background-color: var(--iw-cocoa);
}

.bg-gold {
    background-color: var(--iw-gold);
}

.bg-vanilla {
    background-color: var(--iw-vanilla);
}

/* ==========================================================================
   BORDER COLORS
   ========================================================================== */
.border-teal {
    border-color: var(--iw-teal);
}

.border-coral {
    border-color: var(--iw-coral);
}

.border-cocoa {
    border-color: var(--iw-cocoa);
}

/* ==========================================================================
   DECORATIVE BLURS
   ========================================================================== */
.blur-decoration {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
}

.blur-teal {
    background: var(--iw-teal);
    opacity: 0.1;
    filter: blur(120px);
}

.blur-coral {
    background: var(--iw-coral);
    opacity: 0.1;
    filter: blur(120px);
}

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */
@media (max-width: 768px) {
    .book-card-hover:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .tier-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-before: always;
    }
}
