/**
 * Tool Cards CSS - Regular Tool Cards with Hover Effects
 *
 * @package AITools_Hub
 */

/* Tool Card Base Styles */
.tool-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Card Background Gradient */
.tool-card .card-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 207, 158, 0.03) 0%, rgba(16, 185, 129, 0.02) 100%);
    pointer-events: none;
}

/* Badges */
.tool-card .tool-badges-ultra {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.tool-card .badge-ultra {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: floatBadge 3s ease-in-out infinite;
}

.tool-card .badge-ultra:nth-child(2) {
    animation-delay: 1s;
}

.tool-card .badge-ultra:nth-child(3) {
    animation-delay: 2s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.tool-card .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);
}

.tool-card .badge-trending {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(31, 45, 43, 0.3);
}

.tool-card .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 */
.tool-card .save-btn-ultra {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.tool-card .save-btn-ultra:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.tool-card .save-btn-ultra.saved {
    background: #EAF8F1;
    border-color: #2ED06E;
    color: #2ED06E;
}

/* Card Body */
.tool-card .tool-card-body-ultra {
    padding: 32px 24px 24px;
    position: relative;
    z-index: 2;
}

/* Logo Section */
.tool-card .tool-logo-section-ultra {
    text-align: center;
    margin-bottom: 20px;
}

.tool-card .tool-logo-ultra {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #F8FBFA 0%, #E5EFEA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(107, 207, 158, 0.15);
}

.tool-card .tool-logo-ultra::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2ED06E, #2ED06E);
    border-radius: 20px;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tool-card .tool-logo-ultra img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-card .tool-icon-ultra {
    font-size: 40px;
}

/* Header */
.tool-card .tool-header-ultra {
    text-align: center;
    margin-bottom: 16px;
}

.tool-card .tool-title-ultra {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.tool-card .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.3s ease;
}

.tool-card .tool-title-ultra a:hover {
    background-size: 100% 2px;
    color: #2ED06E;
}

.tool-card .tool-category-ultra {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #EAF8F1 0%, #d1fae5 100%);
    color: #2ED06E;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tagline */
.tool-card .tool-tagline-ultra {
    text-align: center;
    font-size: 13px;
    color: #6B7C78;
    margin: 0 0 16px 0;
    line-height: 1.5;
    font-weight: 500;
}

/* Description */
.tool-card .tool-description-ultra {
    font-size: 14px;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 16px;
    min-height: 50px;
    text-align: center;
}

/* Tags */
.tool-card .tool-tags-ultra {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 16px;
}

.tool-card .tool-tag-ultra {
    padding: 4px 10px;
    background: #F8FBFA;
    color: #6B7C78;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid #E5EFEA;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-tag-ultra {
    background: #EAF8F1;
    color: #2ED06E;
    border-color: #2ED06E;
    transform: translateY(-1px);
}

/* Stats Bar */
.tool-card .tool-stats-ultra {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #F8FBFA;
    border-bottom: 1px solid #F8FBFA;
    margin-bottom: 16px;
}

.tool-card .stat-item-ultra {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #6B7C78;
}

.tool-card .stat-item-ultra i {
    color: #2ED06E;
    font-size: 14px;
}

.tool-card .rating-display-ultra {
    display: none;
}

.tool-card .rating-value-ultra {
    display: none;
}

.tool-card .rating-count-ultra {
    display: none;
}

.tool-card .no-rating-ultra {
    display: none;
}

/* Pricing */
.tool-card .tool-pricing-ultra {
    margin-bottom: 16px;
    text-align: center;
}

.tool-card .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;
}

.tool-card .price-free {
    background: linear-gradient(135deg, #EAF8F1 0%, #D4F1E5 100%);
    color: #2ED06E;
    border-color: rgba(46, 208, 110, 0.2);
}

.tool-card .price-freemium {
    background: linear-gradient(135deg, #F8FBFA 0%, #E5EFEA 100%);
    color: #1F2D2B;
    border-color: rgba(31, 45, 43, 0.2);
}

.tool-card .price-paid {
    background: linear-gradient(135deg, #FEF3E2 0%, #FDE8D3 100%);
    color: #D97706;
    border-color: rgba(217, 119, 6, 0.2);
}

/* CTA Button */
.tool-card .tool-cta-ultra {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2ED06E 0%, #2ED06E 100%);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 207, 158, 0.3);
}

.tool-card .tool-cta-ultra:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 207, 158, 0.4);
    color: white;
}

.tool-card .tool-cta-ultra i {
    transition: transform 0.3s ease;
}

.tool-card .tool-cta-ultra:hover i {
    transform: translateX(4px);
}

/* Hover Overlay */
.tool-card .tool-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 207, 158, 0.95) 0%, rgba(16, 185, 129, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.tool-card:hover .tool-hover-overlay {
    opacity: 1;
    visibility: visible;
}

.tool-card .overlay-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.tool-card:hover .overlay-actions {
    transform: translateY(0);
}

.tool-card .overlay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tool-card .overlay-btn-primary {
    background: white;
    color: #2ED06E;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.tool-card .overlay-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.tool-card .overlay-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tool-card .overlay-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.tool-card .btn-compare-small.overlay-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: auto;
    height: auto;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
}

.tool-card .btn-compare-small.overlay-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .tools-grid.grid-4,
    .tools-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tool-card {
        border-radius: 16px;
    }
    
    .tool-card .tool-card-body-ultra {
        padding: 24px 20px 20px;
    }
}

@media (max-width: 640px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tool-card:hover {
        transform: translateY(-4px);
    }
    
    .tool-card .tool-hover-overlay {
        display: none;
    }
}
