﻿/* ========================================
   ICON SYSTEM - E-Commerce Site
   ======================================== */

/* ===== BASE ICON STYLES ===== */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* ===== ICON SIZES ===== */
.icon-xs {
    font-size: 0.75rem;
}
/* 12px */
.icon-sm {
    font-size: 1rem;
}
/* 16px */
.icon-md {
    font-size: 1.5rem;
}
/* 24px */
.icon-lg {
    font-size: 2rem;
}
/* 32px */
.icon-xl {
    font-size: 2.5rem;
}
/* 40px */
.icon-xxl {
    font-size: 3rem;
}
/* 48px */

/* ===== COLOR CLASSES ===== */
.icon-primary {
    color: var(--primary-color, #2C3E50);
}

.icon-secondary {
    color: var(--secondary-color, #E67E22);
}

.icon-success {
    color: var(--success-color, #27AE60);
}

.icon-error {
    color: var(--error-color, #E74C3C);
}

.icon-warning {
    color: var(--warning-color, #F39C12);
}

.icon-info {
    color: var(--info-color, #3498DB);
}

.icon-white {
    color: #FFFFFF;
}

.icon-black {
    color: #2C3E50;
}

.icon-gray {
    color: #7F8C8D;
}

.icon-light-gray {
    color: #BDC3C7;
}

/* ===== QUICK COLORS ===== */
.icon-red {
    color: #E74C3C;
}

.icon-blue {
    color: #3498DB;
}

.icon-green {
    color: #27AE60;
}

.icon-orange {
    color: #E67E22;
}

.icon-purple {
    color: #9B59B6;
}

.icon-yellow {
    color: #F39C12;
}

.icon-pink {
    color: #E91E63;
}

.icon-teal {
    color: #00B8A9;
}

.icon-indigo {
    color: #3F51B5;
}

.icon-cyan {
    color: #00BCD4;
}

/* ===== GRADIENT ICONS ===== */
.icon-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-gradient-fire {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-gradient-ocean {
    background: linear-gradient(135deg, #00B8A9 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-gradient-sunset {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFA07A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-gradient-purple {
    background: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BACKGROUND STYLES ===== */

/* Circle Backgrounds */
.icon-circle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon-circle-sm {
    width: 30px;
    height: 30px;
    font-size: 0.875rem;
}

.icon-circle-md {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.icon-circle-lg {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
}

.icon-circle-xl {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.icon-circle-xxl {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

/* Square Backgrounds */
.icon-square {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.icon-square-sm {
    width: 30px;
    height: 30px;
    font-size: 0.875rem;
    border-radius: 6px;
}

.icon-square-md {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-radius: 8px;
}

.icon-square-lg {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    border-radius: 10px;
}

.icon-square-xl {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    border-radius: 12px;
}

/* Rounded Backgrounds */
.icon-rounded {
    padding: 10px 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ===== BACKGROUND COLORS ===== */
.bg-primary {
    background: var(--primary-color, #2C3E50);
    color: white;
}

.bg-secondary {
    background: var(--secondary-color, #E67E22);
    color: white;
}

.bg-success {
    background: var(--success-color, #27AE60);
    color: white;
}

.bg-error {
    background: var(--error-color, #E74C3C);
    color: white;
}

.bg-warning {
    background: var(--warning-color, #F39C12);
    color: white;
}

.bg-info {
    background: var(--info-color, #3498DB);
    color: white;
}

.bg-light {
    background: #ECF0F1;
    color: #2C3E50;
}

.bg-white {
    background: white;
    color: #2C3E50;
    border: 1px solid #DFE6E9;
}

/* ===== LIGHT BACKGROUNDS (Transparent) ===== */
.bg-primary-light {
    background: rgba(44, 62, 80, 0.1);
    color: var(--primary-color, #2C3E50);
}

.bg-secondary-light {
    background: rgba(230, 126, 34, 0.1);
    color: var(--secondary-color, #E67E22);
}

.bg-success-light {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color, #27AE60);
}

.bg-error-light {
    background: rgba(231, 76, 60, 0.1);
    color: var(--error-color, #E74C3C);
}

.bg-warning-light {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color, #F39C12);
}

.bg-info-light {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info-color, #3498DB);
}

/* ===== SOCIAL MEDIA ICONS ===== */
.icon-facebook {
    background: #1877F2;
    color: white;
}

.icon-instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
    color: white;
}

.icon-twitter {
    background: #1DA1F2;
    color: white;
}

.icon-whatsapp {
    background: #25D366;
    color: white;
}

.icon-telegram {
    background: #0088CC;
    color: white;
}

.icon-youtube {
    background: #FF0000;
    color: white;
}

.icon-linkedin {
    background: #0A66C2;
    color: white;
}

.icon-pinterest {
    background: #E60023;
    color: white;
}

.icon-tiktok {
    background: #000000;
    color: white;
}

.icon-snapchat {
    background: #FFFC00;
    color: #000000;
}

/* ===== HOVER EFFECTS ===== */
.icon-hover:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.icon-hover-rotate:hover {
    transform: rotate(15deg) scale(1.1);
}

.icon-hover-bounce:hover {
    animation: bounce 0.5s ease;
}

.icon-hover-shake:hover {
    animation: shake 0.5s ease;
}

.icon-hover-pulse {
    animation: pulse 2s infinite;
}

.icon-circle:hover,
.icon-square:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== SHADOW EFFECTS ===== */
.icon-shadow {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.icon-shadow-lg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.icon-glow {
    filter: drop-shadow(0 0 8px currentColor);
}

.icon-glow-lg {
    filter: drop-shadow(0 0 15px currentColor);
}

/* ===== BADGE ICONS ===== */
.icon-badge {
    position: relative;
}

    .icon-badge::after {
        content: attr(data-badge);
        position: absolute;
        top: -8px;
        right: -8px;
        background: #E74C3C;
        color: white;
        font-size: 0.75rem;
        font-weight: bold;
        padding: 2px 6px;
        border-radius: 10px;
        min-width: 18px;
        text-align: center;
        line-height: 1.2;
    }

.icon-badge-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #E74C3C;
    border-radius: 50%;
    border: 2px solid white;
}

/* ===== ANIMATIONS ===== */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.icon-spin {
    animation: spin 2s linear infinite;
}

/* ===== UTILITY CLASSES ===== */
.icon-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

    .icon-clickable:hover {
        opacity: 0.8;
    }

.icon-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.icon-flip-horizontal {
    transform: scaleX(-1);
}

.icon-flip-vertical {
    transform: scaleY(-1);
}

.icon-rotate-45 {
    transform: rotate(45deg);
}

.icon-rotate-90 {
    transform: rotate(90deg);
}

.icon-rotate-180 {
    transform: rotate(180deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .icon-xl {
        font-size: 2rem;
    }

    .icon-xxl {
        font-size: 2.5rem;
    }

    .icon-circle-xl {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .icon-circle-xxl {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}
