/* ================================================
   ULTRA IMPRESSIVE TOOL CARDS - STRIKING DESIGN
   ================================================ */

/* Grid System */
.tools-grid {
    display: grid;
    gap: 32px;
    margin: 40px 0;
}

.tools-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tools-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tools-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* MAIN TOOL CARD - STRIKING DESIGN */
.tool-card-ultra {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    border: 1px solid rgba(107, 207, 158, 0.1);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    height: auto;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tool-card-ultra::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        #2ED06E 0%, 
        #2ED06E 25%, 
        #14b8a6 50%, 
        #2ED06E 75%, 
        #2ED06E 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card-ultra:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(46, 208, 110, 0.3);
    border-color: #2ED06E;
}

.tool-card-ultra:hover::before {
    opacity: 1;
}

/* Background Gradient */
.card-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, rgba(107, 207, 158, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.tool-card-ultra:hover .card-gradient-bg {
    opacity: 1;
}

/* Badges */
.tool-badges-ultra {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
}

.badge-ultra {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2ED06E 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 207, 158, 0.4);
}

.badge-trending {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(31, 45, 43, 0.3);
}

.badge-free {
    background: linear-gradient(135deg, var(--primary-light) 0%, #d1fae5 100%);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(107, 207, 158, 0.3);
}

/* Save Button */
.save-btn-ultra {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #E5EFEA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    font-size: 18px;
    color: #6B7C78;
}

.save-btn-ultra:hover {
    transform: scale(1.15);
    background: #EAF8F1;
    border-color: #2ED06E;
    color: #2ED06E;
    box-shadow: 0 8px 20px rgba(46, 208, 110, 0.3);
}

.save-btn-ultra.saved {
    background: #EAF8F1;
    border-color: #2ED06E;
    color: #2ED06E;
}

.save-btn-ultra.saved i {
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
}

/* Card Body */
.tool-card-body-ultra {
    padding: 32px 28px 28px;
    position: relative;
    z-index: 2;
}

/* Logo Section */
.tool-logo-section-ultra {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.tool-logo-ultra {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #2ED06E 0%, #2ED06E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(107, 207, 158, 0.4);
    transition: all 0.4s ease;
    position: relative;
}

.tool-logo-ultra::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #2ED06E, #2ED06E, #14b8a6);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card-ultra:hover .tool-logo-ultra {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 16px 36px rgba(107, 207, 158, 0.5);
}

.tool-card-ultra:hover .tool-logo-ultra::before {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tool-logo-ultra img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-icon-ultra {
    font-size: 45px;
}

/* Header */
.tool-header-ultra {
    text-align: center;
    margin-bottom: 16px;
}

.tool-title-ultra {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.tool-title-ultra a {
    color: #1F2D2B;
    text-decoration: none;
    background: linear-gradient(135deg, #2ED06E 0%, #2ED06E 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: all 0.4s ease;
}

.tool-title-ultra a:hover {
    background-size: 100% 2px;
    color: #2ED06E;
}

.tool-category-ultra {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, #EAF8F1 0%, #d1fae5 100%);
    color: #2ED06E;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tagline */
.tool-tagline-ultra {
    text-align: center;
    font-size: 14px;
    color: #6B7C78;
    margin: 0 0 16px 0;
    line-height: 1.5;
    font-weight: 500;
}

/* Description */
.tool-description-ultra {
    font-size: 15px;
    line-height: 1.7;
    color: #000000;
    margin-bottom: 20px;
    min-height: 60px;
    text-align: center;
}

/* Tags */
.tool-tags-ultra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.tool-tag-ultra {
    padding: 7px 15px;
    background: #F8FBFA;
    color: #6B7C78;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #E5EFEA;
    transition: all 0.3s ease;
}

.tool-card-ultra:hover .tool-tag-ultra {
    background: #EAF8F1;
    color: #2ED06E;
    border-color: #2ED06E;
    transform: translateY(-2px);
}

/* Stats Bar */
.tool-stats-ultra {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px 0;
    border-top: 2px solid #F8FBFA;
    border-bottom: 2px solid #F8FBFA;
    margin-bottom: 20px;
}

.stat-item-ultra {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #6B7C78;
}

.stat-item-ultra i {
    color: #2ED06E;
    font-size: 16px;
}

.rating-display-ultra {
    display: none;
}

.rating-display-ultra i {
    display: none;
}

.rating-value-ultra {
    display: none;
}

.rating-count-ultra {
    display: none;
}

.no-rating-ultra {
    display: none;
}

/* Pricing */
.tool-pricing-ultra {
    padding-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.price-tag-ultra {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.price-free {
    background: linear-gradient(135deg, #EAF8F1 0%, #D4F1E5 100%);
    color: #2ED06E;
    border-color: rgba(46, 208, 110, 0.2);
}

.price-freemium {
    background: linear-gradient(135deg, #F8FBFA 0%, #E5EFEA 100%);
    color: #1F2D2B;
    border-color: rgba(31, 45, 43, 0.2);
}

.price-paid {
    background: linear-gradient(135deg, #FEF3E2 0%, #FDE8D3 100%);
    color: #D97706;
    border-color: rgba(217, 119, 6, 0.2);
}

/* Tool Actions Row - Buttons on Card */
.tool-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(107, 207, 158, 0.1);
}

.tool-actions-row .tool-cta-ultra {
    flex: 1;
    min-width: 0;
}

.tool-actions-row .btn-compare-small {
    flex-shrink: 0;
}

/* CTA Button */
.tool-cta-ultra {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #2ED06E 0%, #2ED06E 100%);
    color: white;
    border-radius: 16px;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 207, 158, 0.3);
}

.tool-cta-ultra:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 207, 158, 0.4);
    color: white;
}

.tool-cta-ultra i {
    transition: transform 0.3s ease;
}

.tool-cta-ultra:hover i {
    transform: translateX(4px);
}

/* Compare Button - Simple Design */
.btn-compare-small {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    color: #2ED06E;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 0;
    min-width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 207, 158, 0.2);
    cursor: pointer;
}

.btn-compare-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 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);
}

/* Compare Button Active State */
.btn-compare-small.active {
    background: #EAF8F1;
    border-color: #2ED06E;
    color: #2ED06E;
    box-shadow: 0 4px 12px rgba(46, 208, 110, 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);
}

/* Compare Button Focus State */
.btn-compare-small:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 207, 158, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .tools-grid.grid-4,
    .tools-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tool-card-ultra {
        border-radius: 20px;
    }
    
    .tool-card-body-ultra {
        padding: 28px 24px 24px;
    }
}

@media (max-width: 640px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .tool-card-ultra:hover {
        transform: translateY(-8px) scale(1);
    }
    
    .tool-hover-overlay {
        display: none;
    }
}