/**
 * Vhiz AI - Complete UI Enhancements
 * Version: 2.0
 * 
 * FIXES:
 * ✓ Font Awesome icons not displaying
 * ✓ Tool cards design improvements
 * ✓ Submit page progress indicator
 * ✓ Category page filters sidebar
 * ✓ All visual enhancements

/* ============================================================================
   FONT AWESOME FIX - Critical for icon display
   ============================================================================ */

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

.fas, .far, .fab, .fa {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.far { font-weight: 400 !important; }
.fab { font-family: "Font Awesome 6 Brands" !important; font-weight: 400; }


/* ============================================================================
   PREMIUM TOOL CARDS - Complete Redesign
   ============================================================================ */

.tool-card {
    position: relative;
    background: #FFFFFF;
    border: 2px solid #E5EFEA;
    border-radius: 20px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #2ED06E 0%, #2ED06E 50%, #14b8a6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover::before { opacity: 1; }

.tool-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(46, 208, 110, 0.25);
    border-color: #2ED06E;
}

.tool-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #F5C26B 0%, #f59e0b 100%);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(245, 194, 107, 0.4);
    z-index: 5;
}

.tool-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.tool-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2ED06E 0%, #2ED06E 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 8px 20px rgba(107, 207, 158, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.tool-card:hover .tool-logo {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 28px rgba(107, 207, 158, 0.5);
}

.tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.tool-icon {
    font-size: 40px !important;
    line-height: 1;
    display: block !important;
}

.tool-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.tool-name a {
    color: #1F2D2B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tool-name a:hover { color: #2ED06E; }

.tool-tagline {
    font-size: 13px;
    color: #6B7C78;
    margin: 0;
    line-height: 1.4;
}

.tool-description {
    font-size: 15px;
    line-height: 1.7;
    color: #000000;
    margin-bottom: 20px;
    flex: 1;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tool-tag {
    padding: 6px 14px;
    background: #F8FBFA;
    color: #6B7C78;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #E5EFEA;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tool-tag:hover,
.tool-card:hover .tool-tag {
    background: #EAF8F1;
    color: #2ED06E;
    border-color: #2ED06E;
    transform: translateY(-2px);
}

.tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 2px solid #F8FBFA;
    margin-top: auto;
}

.tool-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.tool-rating i {
    color: #F5C26B;
    font-size: 16px;
    display: inline-block !important;
}

.rating-value {
    font-weight: 700;
    color: #1F2D2B;
    font-size: 16px;
}

.rating-count {
    color: #9ca3af;
    font-size: 13px;
}

.save-tool-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #E5EFEA;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6B7C78;
    font-size: 18px;
}

.save-tool-btn:hover {
    background: #EAF8F1;
    border-color: #2ED06E;
    color: #2ED06E;
    transform: scale(1.15);
}

.save-tool-btn.saved {
    background: #EAF8F1;
    border-color: #2ED06E;
    color: #2ED06E;
}

.tool-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    margin-top: 12px;
}

.tool-pricing {
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tool-pricing.free {
    background: linear-gradient(135deg, #EAF8F1 0%, #D4F1E5 100%);
    color: #2ED06E;
    border: 1px solid rgba(46, 208, 110, 0.2);
}

.tool-pricing.freemium {
    background: linear-gradient(135deg, #F8FBFA 0%, #E5EFEA 100%);
    color: #1F2D2B;
    border: 1px solid rgba(31, 45, 43, 0.2);
}

.tool-pricing.paid {
    background: linear-gradient(135deg, #FEF3E2 0%, #FDE8D3 100%);
    color: #D97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}


/* ============================================================================
   SUBMIT TOOL - PROGRESS INDICATOR FIX
   ============================================================================ */

.step-indicator {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
    padding: 0 20px;
}

.step-line {
    position: absolute;
    top: 24px;
    left: 60px;
    right: 60px;
    height: 4px;
    background: #E5EFEA;
    z-index: 0;
    border-radius: 2px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 48px;
    height: 48px;
    background: white;
    border: 4px solid #E5EFEA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #9ca3af;
    margin-bottom: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, #2ED06E 0%, #2ED06E 100%);
    border-color: #2ED06E;
    color: white;
    box-shadow: 0 4px 16px rgba(46, 208, 110, 0.4);
    transform: scale(1.1);
}

.step-item.completed .step-circle {
    background: linear-gradient(135deg, #2ED06E 0%, #2ED06E 100%);
    border-color: #2ED06E;
    color: white;
}

.step-item.completed .step-circle i {
    font-size: 20px;
    display: inline-block !important;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
}

.step-item.active .step-label {
    color: #2ED06E;
    font-weight: 700;
}


/* ============================================================================
   CATEGORY PAGE - FILTERS SIDEBAR FIX
   ============================================================================ */

.tools-sidebar {
    position: sticky;
    top: calc(80px + 24px);
    height: fit-content;
}

.filters-sidebar {
    background: white;
    border: 2px solid #E5EFEA;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #F8FBFA;
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1F2D2B;
    margin: 0;
}

.filters-title i {
    color: #2ED06E;
    font-size: 18px;
    display: inline-block !important;
}

.clear-filters, #clear-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #F8FBFA;
    color: #6B7C78;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters:hover, #clear-filters:hover {
    background: #fef2f2;
    color: #dc2626;
}

.filter-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #F8FBFA;
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #1F2D2B;
    margin: 0 0 16px 0;
}

.filter-title i {
    color: #2ED06E;
    font-size: 14px;
    display: inline-block !important;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filter-checkbox:hover {
    background: #F8FBFA;
}

.filter-checkbox input[type="checkbox"],
.filter-checkbox input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-checkbox span {
    font-size: 14px;
    font-weight: 500;
    color: #1F2D2B;
}

@media (max-width: 1024px) {
    .tools-sidebar {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        background: white;
        overflow-y: auto;
        padding: 24px;
    }
    
    .tools-sidebar.active {
        transform: translateX(0);
    }
}


/* ============================================================================
   CATEGORY CARDS
   ============================================================================ */

.category-card {
    position: relative;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
}

.category-card:hover {
    border-color: #2ED06E;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(107, 207, 158, 0.2);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #EAF8F1 0%, #d1fae5 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: all 0.4s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.15) rotate(-10deg);
    background: linear-gradient(135deg, #2ED06E 0%, #2ED06E 100%);
}

.category-icon span {
    font-size: 40px;
    display: block;
}

.category-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1F2D2B;
}

.category-count {
    font-size: 14px;
    font-weight: 600;
    color: #2ED06E;
}

.category-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    opacity: 0;
    transition: all 0.3s ease;
    display: inline-block !important;
}

.category-card:hover .category-arrow {
    opacity: 1;
    color: #2ED06E;
}


/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn i {
    display: inline-block !important;
}

.btn-primary {
    background: linear-gradient(135deg, #2ED06E 0%, #2ED06E 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 207, 158, 0.3);
}

.btn-primary:hover {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(107, 207, 158, 0.4);
color: white;
}

.btn-secondary {
background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
color: #2ED06E;
border: 2px solid #2ED06E;
font-weight: 600;
font-size: 13px;
position: relative;
overflow: hidden;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
padding: 8px 16px;
}

.btn-secondary::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(135deg, #2ED06E 0%, #22c55e 100%);
transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
z-index: -1;
}

.btn-secondary:hover {
color: white;
border-color: #2ED06E;
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(46, 208, 110, 0.25);
}

.btn-secondary:hover::before {
left: 0;
}

/* ============================================================================
   TOOL ACTIONS ROW
   ============================================================================ */

.tool-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(107, 207, 158, 0.1);
}

.tool-actions-row .tool-cta {
    flex: 1;
    min-width: 0;
}

.tool-actions-row .btn-compare-small {
    flex-shrink: 0;
}

.tool-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2ED06E 0%, #2ED06E 100%);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(107, 207, 158, 0.3);
}

.tool-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 207, 158, 0.4);
    color: white;
}

.tool-cta i {
    transition: transform 0.3s ease;
}

.tool-cta:hover i {
    transform: translateX(4px);
}

.btn-compare-small {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    color: #2ED06E;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    padding: 0;
    min-width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(107, 207, 158, 0.2);
    cursor: pointer;
}

.btn-compare-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 208, 110, 0.3);
    background: linear-gradient(135deg, #2ED06E 0%, #2ED06E 100%);
    color: white;
}

.btn-compare-small i {
    transition: transform 0.3s ease;
}

.btn-compare-small:hover i {
    transform: rotate(180deg);
}

.btn-compare-small.active {
    background: linear-gradient(135deg, #2ED06E 0%, #2ED06E 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 207, 158, 0.3);
}

.btn-compare-small.active:hover {
    background: linear-gradient(135deg, #2ED06E 0%, #059669 100%);
    transform: translateY(-2px);
}

.btn-compare-small.active i {
    transform: rotate(180deg);
}

.btn-compare-small:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 207, 158, 0.3);
}


/* ============================================================================
   MOBILE RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .tool-card { padding: 24px 20px; }
    .tool-logo { width: 64px; height: 64px; font-size: 32px; }
    .category-icon { width: 64px; height: 64px; font-size: 32px; }
    .step-label { display: none; }
    .step-circle { width: 40px; height: 40px; }
}


/* ============================================================================
   ICON DISPLAY FIX - Force all icons to show
   ============================================================================ */

.fa-check, .fa-star, .fa-bookmark, .fa-heart, .fa-eye, .fa-fire, 
.fa-sparkles, .fa-arrow-right, .fa-sliders-h, .fa-dollar-sign, .fa-times,
.fa-chevron-down, .fa-chevron-left, .fa-chevron-right, .fa-th, .fa-list,
.fa-plus, .fa-plus-circle, .fa-edit, .fa-trash, .fa-save, .fa-external-link-alt {
    display: inline-block !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}