/* 
 * Grammar Guru Icon System
 * Comprehensive CSS-only icon system using Unicode symbols
 * Ensures consistent icons across all pages without external dependencies
 */

/* ========================================
   BASE ICON SYSTEM
   ======================================== */

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    vertical-align: middle;
}

/* Icon Sizes */
.icon-xs { font-size: 12px; width: 16px; height: 16px; }
.icon-sm { font-size: 14px; width: 20px; height: 20px; }
.icon-md { font-size: 16px; width: 24px; height: 24px; }
.icon-lg { font-size: 20px; width: 32px; height: 32px; }
.icon-xl { font-size: 24px; width: 40px; height: 40px; }

/* ========================================
   SOCIAL MEDIA ICONS
   ======================================== */

.icon-twitter::before { content: "𝕏"; } /* Modern X/Twitter */
.icon-twitter-old::before { content: "🐦"; } /* Old Twitter bird */
.icon-linkedin::before { content: "💼"; }
.icon-github::before { content: "⚡"; }
.icon-facebook::before { content: "📘"; }
.icon-instagram::before { content: "📷"; }
.icon-youtube::before { content: "📺"; }
.icon-tiktok::before { content: "🎵"; }
.icon-discord::before { content: "💬"; }

/* Social Media with Better Unicode Options */
.icon-social-twitter::before { content: "🅧"; }
.icon-social-linkedin::before { content: "🅻"; }
.icon-social-github::before { content: "🅶"; }
.icon-social-facebook::before { content: "🅵"; }

/* ========================================
   FEATURE & UI ICONS
   ======================================== */

/* Check & Success */
.icon-check::before { content: "✓"; }
.icon-check-circle::before { content: "✅"; }
.icon-check-bold::before { content: "✔"; }
.icon-success::before { content: "✓"; }

/* Cross & Error */
.icon-cross::before { content: "✗"; }
.icon-close::before { content: "✕"; }
.icon-error::before { content: "❌"; }
.icon-warning::before { content: "⚠"; }

/* Arrows */
.icon-arrow-right::before { content: "→"; }
.icon-arrow-left::before { content: "←"; }
.icon-arrow-up::before { content: "↑"; }
.icon-arrow-down::before { content: "↓"; }
.icon-chevron-right::before { content: "‣"; }
.icon-chevron-left::before { content: "‹"; }
.icon-chevron-down::before { content: "⌄"; }

/* Play & Media */
.icon-play::before { content: "▶"; }
.icon-pause::before { content: "⏸"; }
.icon-stop::before { content: "⏹"; }
.icon-fast-forward::before { content: "⏩"; }

/* Common UI */
.icon-home::before { content: "🏠"; }
.icon-user::before { content: "👤"; }
.icon-users::before { content: "👥"; }
.icon-settings::before { content: "⚙"; }
.icon-gear::before { content: "⚙"; }
.icon-cog::before { content: "⚙"; }
.icon-menu::before { content: "☰"; }
.icon-hamburger::before { content: "☰"; }
.icon-search::before { content: "🔍"; }
.icon-filter::before { content: "⚗"; }
.icon-edit::before { content: "✏"; }
.icon-pencil::before { content: "✏"; }
.icon-trash::before { content: "🗑"; }
.icon-delete::before { content: "🗑"; }

/* ========================================
   GRAMMAR GURU SPECIFIC ICONS
   ======================================== */

/* Writing & Grammar */
.icon-grammar::before { content: "✓"; }
.icon-writing::before { content: "✍"; }
.icon-spell-check::before { content: "🔤"; }
.icon-style::before { content: "🎨"; }
.icon-rewrite::before { content: "🔄"; }
.icon-suggestion::before { content: "💡"; }
.icon-correction::before { content: "✏"; }

/* Technology */
.icon-ai::before { content: "🤖"; }
.icon-robot::before { content: "🤖"; }
.icon-magic::before { content: "✨"; }
.icon-lightning::before { content: "⚡"; }
.icon-fast::before { content: "⚡"; }
.icon-speed::before { content: "⚡"; }
.icon-globe::before { content: "🌐"; }
.icon-world::before { content: "🌍"; }
.icon-everywhere::before { content: "🌐"; }

/* Security & Privacy */
.icon-lock::before { content: "🔒"; }
.icon-unlock::before { content: "🔓"; }
.icon-shield::before { content: "🛡"; }
.icon-secure::before { content: "🔒"; }
.icon-privacy::before { content: "🛡"; }

/* Communication */
.icon-email::before { content: "✉"; }
.icon-message::before { content: "💬"; }
.icon-chat::before { content: "💬"; }
.icon-comment::before { content: "💭"; }
.icon-phone::before { content: "📞"; }

/* Business */
.icon-star::before { content: "★"; }
.icon-star-outline::before { content: "☆"; }
.icon-heart::before { content: "♥"; }
.icon-heart-outline::before { content: "♡"; }
.icon-crown::before { content: "👑"; }
.icon-premium::before { content: "👑"; }
.icon-badge::before { content: "🏆"; }
.icon-trophy::before { content: "🏆"; }

/* Documents */
.icon-document::before { content: "📄"; }
.icon-file::before { content: "📄"; }
.icon-folder::before { content: "📁"; }
.icon-download::before { content: "⬇"; }
.icon-upload::before { content: "⬆"; }
.icon-link::before { content: "🔗"; }

/* ========================================
   PRICING & BILLING ICONS
   ======================================== */

.icon-price::before { content: "💰"; }
.icon-money::before { content: "💰"; }
.icon-dollar::before { content: "$"; }
.icon-euro::before { content: "€"; }
.icon-pound::before { content: "£"; }
.icon-rupee::before { content: "₹"; }
.icon-credit-card::before { content: "💳"; }
.icon-payment::before { content: "💳"; }
.icon-free::before { content: "🆓"; }
.icon-pro::before { content: "👑"; }

/* ========================================
   STATUS & FEEDBACK ICONS
   ======================================== */

.icon-loading::before { content: "⏳"; }
.icon-spinner::before { content: "⭮"; }
.icon-refresh::before { content: "🔄"; }
.icon-sync::before { content: "🔄"; }
.icon-info::before { content: "ℹ"; }
.icon-help::before { content: "❓"; }
.icon-question::before { content: "❓"; }
.icon-exclamation::before { content: "❗"; }
.icon-alert::before { content: "⚠"; }

/* ========================================
   BRAND & LOGO ICONS
   ======================================== */

.icon-brand::before { content: "GG"; }
.icon-logo::before { content: "✍"; }
.icon-signature::before { content: "✍"; }

/* ========================================
   INTERACTIVE STATES
   ======================================== */

.icon:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.icon-btn {
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* ========================================
   COLORED VARIANTS
   ======================================== */

.icon-primary { color: #667eea; }
.icon-secondary { color: #764ba2; }
.icon-success { color: #22c55e; }
.icon-warning { color: #f59e0b; }
.icon-error { color: #ef4444; }
.icon-info { color: #3b82f6; }
.icon-muted { color: #6b7280; }

/* ========================================
   SOCIAL MEDIA BRAND COLORS
   ======================================== */

.icon-twitter.branded { color: #1DA1F2; }
.icon-linkedin.branded { color: #0077B5; }
.icon-github.branded { color: #333; }
.icon-facebook.branded { color: #1877F2; }
.icon-instagram.branded { color: #E4405F; }
.icon-youtube.branded { color: #FF0000; }

/* ========================================
   ANIMATION CLASSES
   ======================================== */

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

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

.icon-bounce {
    animation: icon-bounce 1s ease-in-out infinite;
}

@keyframes icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes icon-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes icon-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .icon-lg { font-size: 18px; width: 28px; height: 28px; }
    .icon-xl { font-size: 22px; width: 36px; height: 36px; }
    
    .icon-btn {
        padding: 12px;
        min-width: 44px;
        min-height: 44px;
    }
}

/* ========================================
   UTILITY CLASSES FOR SPECIFIC CONTEXTS
   ======================================== */

/* Feature Icons in Cards */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Button Icons */
.btn-icon {
    margin-left: 8px;
    font-size: 0.9em;
}

/* Navigation Icons */
.nav-icon {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Footer Icons */
.footer-icon {
    font-size: 1.2em;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-icon:hover {
    opacity: 1;
}

/* Social Link Icons */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Guarantee Icons */
.guarantee-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #22c55e;
    color: white;
    font-size: 14px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

/* ========================================
   ACCESSIBILITY & SCREEN READERS
   ======================================== */

/* Screen reader support handled by aria attributes */

.icon-only {
    position: relative;
}

.icon-only .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   HIGH CONTRAST MODE SUPPORT
   ======================================== */

@media (prefers-contrast: high) {
    .icon {
        filter: contrast(2);
    }
    
    .social-link {
        border: 2px solid currentColor;
        background: transparent;
    }
}

/* ========================================
   REDUCED MOTION SUPPORT
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .icon,
    .icon-btn,
    .social-link {
        transition: none;
    }
    
    .icon-spin,
    .icon-pulse,
    .icon-bounce {
        animation: none;
    }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

@media (prefers-color-scheme: dark) {
    .icon-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .social-link {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .social-link:hover {
        background: rgba(255, 255, 255, 0.15);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .icon,
    .social-link {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .icon-spin,
    .icon-pulse,
    .icon-bounce {
        animation: none;
    }
}

/* ========================================
   COMPONENT-SPECIFIC OVERRIDES
   ======================================== */

/* Pricing Page Social Links */
.pricing-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.pricing-social-link:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: white;
}
