/* ============================================================================
   ShipFifty Icon System
   Lucide Icons with Custom Duotone Styling
   ============================================================================ */

/* Base Icon Styles */
[data-lucide] {
    display: inline-block;
    vertical-align: middle;
}

/* Icon Size Classes */
.icon-xs {
    width: 14px;
    height: 14px;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.icon-md {
    width: 24px;
    height: 24px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

.icon-xl {
    width: 48px;
    height: 48px;
}

.icon-2xl {
    width: 64px;
    height: 64px;
}

.icon-3xl {
    width: 80px;
    height: 80px;
}

/* ============================================================================
   Duotone Icon System
   Two-color effect using ShipFifty brand colors
   ============================================================================ */

/* Duotone Base Wrapper */
.icon-duotone {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Duotone Green Accent */
.icon-duotone-green {
    position: relative;
    display: inline-flex;
}

.icon-duotone-green [data-lucide] {
    color: var(--navy-blue);
    filter: drop-shadow(0 0 8px rgba(102, 255, 0, 0.3));
    transition: all 0.3s ease;
}

.icon-duotone-green:hover [data-lucide] {
    color: var(--bright-green);
    filter: drop-shadow(0 0 12px rgba(102, 255, 0, 0.5));
    transform: scale(1.05);
}

/* Duotone Cyan Accent */
.icon-duotone-cyan {
    position: relative;
    display: inline-flex;
}

.icon-duotone-cyan [data-lucide] {
    color: var(--navy-blue);
    filter: drop-shadow(0 0 8px rgba(0, 204, 255, 0.3));
    transition: all 0.3s ease;
}

.icon-duotone-cyan:hover [data-lucide] {
    color: var(--cyan);
    filter: drop-shadow(0 0 12px rgba(0, 204, 255, 0.5));
    transform: scale(1.05);
}

/* Duotone Blue Accent */
.icon-duotone-blue {
    position: relative;
    display: inline-flex;
}

.icon-duotone-blue [data-lucide] {
    color: var(--navy-blue);
    filter: drop-shadow(0 0 8px rgba(0, 102, 255, 0.3));
    transition: all 0.3s ease;
}

.icon-duotone-blue:hover [data-lucide] {
    color: var(--bright-blue);
    filter: drop-shadow(0 0 12px rgba(0, 102, 255, 0.5));
    transform: scale(1.05);
}

/* Duotone with Gradient Background */
.icon-duotone-bg {
    position: relative;
    display: inline-flex;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30, 42, 94, 0.1) 0%, rgba(102, 255, 0, 0.1) 100%);
    transition: all 0.3s ease;
}

.icon-duotone-bg [data-lucide] {
    color: var(--navy-blue);
}

.icon-duotone-bg:hover {
    background: linear-gradient(135deg, rgba(30, 42, 94, 0.2) 0%, rgba(102, 255, 0, 0.2) 100%);
    transform: translateY(-2px);
}

.icon-duotone-bg:hover [data-lucide] {
    color: var(--bright-green);
}

/* ============================================================================
   Service Icon Containers
   For service cards with gradient backgrounds
   ============================================================================ */

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 255, 0, 0.2);
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(102, 255, 0, 0.3), rgba(0, 204, 255, 0.3));
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-icon [data-lucide] {
    width: 32px;
    height: 32px;
    color: white;
    stroke-width: 2.5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-card:hover .service-icon {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(102, 255, 0, 0.4), 0 0 20px rgba(102, 255, 0, 0.2);
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

.service-card:hover .service-icon [data-lucide] {
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* ============================================================================
   Feature Icons
   For checkmarks and feature indicators
   ============================================================================ */

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.feature-icon [data-lucide] {
    width: 20px;
    height: 20px;
    color: var(--bright-green);
    stroke-width: 3;
}

.feature-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(102, 255, 0, 0.1);
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.feature-icon-circle [data-lucide] {
    width: 18px;
    height: 18px;
    color: var(--bright-green);
    stroke-width: 3;
}

/* ============================================================================
   Stat & Metric Icons
   For statistics and dashboard metrics
   ============================================================================ */

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 12px;
    margin-bottom: 16px;
}

.stat-icon [data-lucide] {
    width: 28px;
    height: 28px;
    color: var(--navy-blue);
    stroke-width: 2;
}

.metric-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 255, 0, 0.1);
    border-radius: 10px;
}

.metric-icon [data-lucide] {
    width: 24px;
    height: 24px;
    color: var(--bright-green);
    stroke-width: 2;
}

/* ============================================================================
   Value & Core Icons
   For core values and principles
   ============================================================================ */

.value-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--bright-blue) 100%);
    border-radius: 14px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.value-icon [data-lucide] {
    width: 32px;
    height: 32px;
    color: white;
    stroke-width: 2;
}

.value-card:hover .value-icon {
    transform: rotate(5deg) scale(1.1);
}

/* ============================================================================
   CTA & Action Icons
   For call-to-action sections
   ============================================================================ */

.cta-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(102, 255, 0, 0.3);
}

.cta-icon [data-lucide] {
    width: 28px;
    height: 28px;
    color: var(--bright-green);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 6px rgba(102, 255, 0, 0.4));
    transition: all 0.3s ease;
}

.cta-feature:hover .cta-icon {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 25px rgba(102, 255, 0, 0.5), 0 0 15px rgba(102, 255, 0, 0.3);
    transform: scale(1.1);
}

.cta-feature:hover .cta-icon [data-lucide] {
    stroke-width: 3;
    filter: drop-shadow(0 0 12px rgba(102, 255, 0, 0.6));
}

/* ============================================================================
   Contact Icons
   For contact information
   ============================================================================ */

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    margin-bottom: 16px;
}

.contact-icon [data-lucide] {
    width: 24px;
    height: 24px;
    color: white;
    stroke-width: 2;
}

/* ============================================================================
   Location & Flag Icons
   For location markers
   ============================================================================ */

.location-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 3px solid var(--bright-green);
    border-radius: 50%;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.location-icon [data-lucide] {
    width: 32px;
    height: 32px;
    color: var(--navy-blue);
    stroke-width: 2;
}

.location-card:hover .location-icon {
    border-color: var(--cyan);
    transform: scale(1.1);
}

/* ============================================================================
   Security Icons
   For security and compliance features
   ============================================================================ */

.security-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
}

.security-icon [data-lucide] {
    width: 28px;
    height: 28px;
    color: var(--bright-blue);
    stroke-width: 2;
}

/* ============================================================================
   Additional Service Icons
   For additional services section
   ============================================================================ */

.additional-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.additional-icon [data-lucide] {
    width: 28px;
    height: 28px;
    color: var(--navy-blue);
    stroke-width: 2;
}

.additional-card:hover .additional-icon {
    border-color: var(--bright-green);
    background: rgba(102, 255, 0, 0.05);
}

.additional-card:hover .additional-icon [data-lucide] {
    color: var(--bright-green);
}

/* ============================================================================
   Overview Icons
   For service overview cards
   ============================================================================ */

.overview-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.overview-icon [data-lucide] {
    width: 36px;
    height: 36px;
    color: var(--navy-blue);
    stroke-width: 2;
}

.overview-card:hover .overview-icon {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 255, 0, 0.3);
}

/* ============================================================================
   Star Rating Icons
   For testimonials and reviews
   ============================================================================ */

.rating-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.rating-stars [data-lucide] {
    width: 18px;
    height: 18px;
    color: var(--yellow);
    fill: var(--yellow);
    stroke: var(--yellow);
    stroke-width: 1;
}

/* ============================================================================
   Step Icons
   For process steps and workflows
   ============================================================================ */

.step-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--bright-blue) 100%);
    border-radius: 50%;
    margin-bottom: 20px;
    position: relative;
}

.step-icon [data-lucide] {
    width: 32px;
    height: 32px;
    color: white;
    stroke-width: 2;
}

.step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: var(--bright-green);
    color: var(--navy-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* ============================================================================
   Pricing Icons
   For pricing plans and features
   ============================================================================ */

.pricing-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 255, 0, 0.1);
    border-radius: 14px;
    margin-bottom: 20px;
}

.pricing-icon [data-lucide] {
    width: 30px;
    height: 30px;
    color: var(--bright-green);
    stroke-width: 2;
}

/* ============================================================================
   Floating Card Icons
   For decorative floating icon elements
   ============================================================================ */

.card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.card-icon [data-lucide] {
    width: 40px;
    height: 40px;
    color: var(--navy-blue);
    stroke-width: 2;
}

/* ============================================================================
   Responsive Adjustments
   ============================================================================ */

@media (max-width: 768px) {
    .service-icon {
        width: 50px;
        height: 50px;
    }

    .service-icon [data-lucide] {
        width: 26px;
        height: 26px;
    }

    .overview-icon {
        width: 60px;
        height: 60px;
    }

    .overview-icon [data-lucide] {
        width: 30px;
        height: 30px;
    }

    .value-icon {
        width: 48px;
        height: 48px;
    }

    .value-icon [data-lucide] {
        width: 26px;
        height: 26px;
    }
}

/* ============================================================================
   Animation Utilities
   ============================================================================ */

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.icon-animate-bounce {
    animation: iconBounce 2s ease-in-out infinite;
}

.icon-animate-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

.icon-animate-spin {
    animation: iconSpin 1s linear infinite;
}

/* ============================================================================
   Accessibility
   ============================================================================ */

[data-lucide]:focus {
    outline: 2px solid var(--bright-green);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    [data-lucide],
    .icon-duotone-green [data-lucide],
    .icon-duotone-cyan [data-lucide],
    .icon-duotone-blue [data-lucide],
    .service-icon,
    .value-icon,
    .additional-icon,
    .overview-icon,
    .location-icon {
        transition: none !important;
        animation: none !important;
    }
}
