/*
 * LaxIQ Utility Classes
 * Consolidated CSS utilities to replace inline styles
 * Brand color: #FFA500 (orange)
 */

/* ========================================
   CSS VARIABLES - SINGLE SOURCE OF TRUTH
   ======================================== */
:root {
    /* Brand Colors */
    --laxiq-orange: #FFA500;
    --laxiq-orange-hover: #e69500;
    --laxiq-orange-dark: #FF8C00;
    --laxiq-orange-light: rgba(255, 165, 0, 0.1);
    --laxiq-orange-gradient: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);

    /* Text Colors */
    --laxiq-text-dark: #1a1a2e;
    --laxiq-text-charcoal: #333333;
    --laxiq-text-muted: #666666;
    --laxiq-text-light: #888888;

    /* Background Colors */
    --laxiq-bg-light: #f8f9fa;
    --laxiq-bg-white: #ffffff;
    --laxiq-bg-dark: #1a1a2e;

    /* Shadows */
    --laxiq-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --laxiq-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --laxiq-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --laxiq-shadow-orange: 0 4px 12px rgba(255, 165, 0, 0.3);

    /* Border Radius */
    --laxiq-radius-sm: 4px;
    --laxiq-radius-md: 8px;
    --laxiq-radius-lg: 12px;
    --laxiq-radius-xl: 15px;
    --laxiq-radius-round: 50px;
    --laxiq-radius-circle: 50%;
}

/* ========================================
   TEXT COLOR UTILITIES
   ======================================== */
.text-orange { color: #FFA500 !important; }
.text-orange-dark { color: #FF8C00 !important; }
.text-dark { color: #1a1a2e !important; }
.text-charcoal { color: #333333 !important; }
.text-muted-666 { color: #666666 !important; }
.text-muted-888 { color: #888888 !important; }
.text-white-80 { color: rgba(255,255,255,0.8) !important; }
.text-white-70 { color: rgba(255,255,255,0.7) !important; }
.text-white-50 { color: rgba(255,255,255,0.5) !important; }
.text-white-40 { color: rgba(255,255,255,0.4) !important; }

/* ========================================
   BACKGROUND UTILITIES
   ======================================== */
.bg-orange { background-color: #FFA500 !important; }
.bg-orange-gradient { background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%) !important; }
.bg-dark-gradient { background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%) !important; }
.bg-light-orange { background: linear-gradient(135deg, #fff8f0 0%, #ffe8cc 100%) !important; }
.bg-light-gray { background-color: #f8f9fa !important; }
.bg-white { background-color: #ffffff !important; }
.bg-dark-1a { background-color: #1a1a2e !important; }

/* ========================================
   BORDER UTILITIES
   ======================================== */
.border-orange { border-color: #FFA500 !important; }
.border-orange-2 { border: 2px solid #FFA500 !important; }
.border-orange-3 { border: 3px solid #FFA500 !important; }

/* ========================================
   BUTTON UTILITIES
   ======================================== */
.btn-orange {
    background-color: #FFA500 !important;
    border-color: #FFA500 !important;
    color: #ffffff !important;
}
.btn-orange:hover,
.btn-orange:focus {
    background-color: #e69500 !important;
    border-color: #e69500 !important;
    color: #ffffff !important;
}

.btn-orange-gradient {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}
.btn-orange-gradient:hover {
    background: linear-gradient(135deg, #FF8C00 0%, #e67700 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(255, 165, 0, 0.4);
    transform: translateY(-2px);
}

.btn-outline-orange {
    background-color: transparent !important;
    border: 2px solid #FFA500 !important;
    color: #FFA500 !important;
}
.btn-outline-orange:hover {
    background-color: #FFA500 !important;
    color: #ffffff !important;
}

/* ========================================
   ICON CIRCLE UTILITIES
   ======================================== */
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFA500;
    color: #ffffff;
}
.icon-circle-sm {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
}
.icon-circle-md {
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    font-size: 1rem;
}
.icon-circle-lg {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}
.icon-circle-xl {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

/* ========================================
   CARD UTILITIES
   ======================================== */
.card-shadow { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important; }
.card-shadow-lg { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important; }
.card-shadow-orange { box-shadow: 0 4px 12px rgba(255, 165, 0, 0.2) !important; }
.card-radius { border-radius: 12px !important; }
.card-radius-lg { border-radius: 15px !important; }

.card-hover-lift {
    transition: all 0.3s ease;
}
.card-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 165, 0, 0.2) !important;
}

/* ========================================
   SPACING UTILITIES (beyond Bootstrap)
   ======================================== */
.py-section { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.mb-section { margin-bottom: 3rem !important; }

/* ========================================
   TYPOGRAPHY UTILITIES
   ======================================== */
.fs-12 { font-size: 12px !important; }
.fs-13 { font-size: 13px !important; }
.fs-14 { font-size: 14px !important; }
.fs-15 { font-size: 15px !important; }
.fs-16 { font-size: 16px !important; }
.fs-17 { font-size: 17px !important; }
.fs-18 { font-size: 18px !important; }
.fs-22 { font-size: 22px !important; }
.fs-24 { font-size: 24px !important; }
.fs-28 { font-size: 28px !important; }

.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }

.lh-normal { line-height: 1.5 !important; }
.lh-relaxed { line-height: 1.6 !important; }
.lh-loose { line-height: 1.7 !important; }

.letter-spacing-1 { letter-spacing: 1px !important; }
.text-uppercase-spaced {
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* ========================================
   HERO & CTA BUTTON STYLES
   ======================================== */
.hero-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: #ffffff !important;
    text-decoration: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.35);
    transition: all 0.3s ease;
}
.hero-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.45);
    color: #ffffff !important;
    text-decoration: none;
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section-header-orange {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    padding: 40px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.section-footer-dark {
    background: #1a1a2e;
    padding: 30px 40px;
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.info-box-light {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.info-box-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

/* ========================================
   FEATURE ICON STYLES (for pricing/feature tables)
   ======================================== */
.feature-icon {
    background-color: #FFA500;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    min-width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon i { color: #ffffff; }

/* ========================================
   RIBBON/BADGE STYLES
   ======================================== */
.ribbon-popular {
    position: absolute;
    top: 15px;
    right: -5px;
    z-index: 10;
}
.ribbon-popular span {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: white;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
    border-radius: 3px 0 0 3px;
    display: block;
}

/* ========================================
   TRANSITION UTILITIES
   ======================================== */
.transition-fast { transition: all 0.2s ease !important; }
.transition-normal { transition: all 0.3s ease !important; }
.transition-slow { transition: all 0.5s ease !important; }

/* ========================================
   LINK STYLES
   ======================================== */
.link-orange {
    color: #FFA500 !important;
    text-decoration: none;
}
.link-orange:hover {
    color: #FF8C00 !important;
    text-decoration: underline;
}

/* ========================================
   DRILL/CATEGORY ICON STYLES
   ======================================== */
.drill-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFA500;
    color: #ffffff;
}

.drill-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFA500;
    color: #ffffff;
    font-size: 2rem;
}

/* ========================================
   TABLE CELL UTILITIES (for email-like tables in web)
   ======================================== */
.td-padding { padding: 10px; vertical-align: top; }
.td-padding-sm { padding: 8px 0; vertical-align: top; }

/* ========================================
   STAT DISPLAY STYLES
   ======================================== */
.stat-number {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}
.stat-label {
    color: #666;
    font-size: 12px;
    margin: 5px 0 0;
}
.stat-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

/* ========================================
   PRICING CARD STYLES
   ======================================== */
.pricing-card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

.pricing-card-featured {
    position: relative;
}

/* Ribbon for popular badge */
.ribbon {
    position: absolute;
    top: 15px;
    right: -5px;
    z-index: 10;
}

.ribbon span {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: white;
    padding: 8px 20px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
    border-radius: 3px 0 0 3px;
    display: block;
}

/* ========================================
   MOBILE RESPONSIVE OVERRIDES
   ======================================== */
@media (max-width: 991px) {
    /* Reset featured pricing card scale on tablet */
    .pricing-card-featured {
        transform: scale(1) !important;
    }
}

@media (max-width: 768px) {
    .hero-cta-btn {
        padding: 14px 35px;
        font-size: 16px;
    }

    .icon-circle-xl {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .drill-icon-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 22px;
    }

    /* Pricing page mobile fixes */
    .pricing-card-featured {
        transform: scale(1) !important;
        margin: 0 !important;
    }

    .pricing-card {
        margin-bottom: 1rem;
    }

    /* Billing toggle mobile */
    .btn-group[role="group"] {
        flex-direction: column;
        width: 100%;
    }

    .btn-group[role="group"] .btn {
        border-radius: 50px !important;
        margin-bottom: 0.5rem;
    }

    /* Ribbon adjustment for mobile */
    .ribbon {
        top: 10px;
        right: 10px;
    }

    .ribbon span {
        padding: 5px 12px;
        font-size: 0.65rem;
        border-radius: 3px;
    }

    /* Hero text sizing */
    .display-3 {
        font-size: 2rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    /* Card body padding adjustment */
    .pricing-card .card-body {
        padding: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    /* Extra small devices */
    .display-3 {
        font-size: 1.75rem !important;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Feature list compact */
    .pricing-card .list-unstyled li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem !important;
    }

    /* Button full width on mobile */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Dashboard quick actions mobile */
    .quick-actions-row {
        gap: 1rem !important;
        padding: 0.75rem 0 !important;
    }

    .quick-action-item {
        width: 70px !important;
    }

    .quick-action-circle {
        width: 55px !important;
        height: 55px !important;
    }

    .quick-action-circle i {
        font-size: 1.4rem !important;
    }

    .quick-action-label {
        font-size: 0.7rem !important;
    }

    /* Profile header card mobile */
    .profile-header-card {
        padding: 1rem !important;
    }

    .profile-avatar-large {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    /* Card headers compact on mobile */
    .card-header h5,
    .card-header h6 {
        font-size: 0.9rem !important;
    }

    /* Dashboard stat cards mobile */
    .stat-card {
        padding: 1rem !important;
    }

    .stat-value {
        font-size: 1.5rem !important;
    }
}
