/* Power Tools Card - Main Styles */
.power-tools-card {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.power-tools-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: #3b82f6;
}

/* Popular Card Styling */
.popular-card .card-icon {
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
}

.popular-card .card-tag {
    background-color: rgba(245, 158, 11, 0.2) !important;
    color: #f59e0b !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

/* Coming Soon Card Styling */
.coming-soon-card {
    opacity: 0.8;
}

.coming-soon-card .card-icon {
    background: linear-gradient(135deg, #64748b, #475569) !important;
}

.coming-soon-card .card-btn {
    background-color: #64748b !important;
    cursor: not-allowed;
}

.coming-soon-card .card-btn:hover {
    background-color: #64748b !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Card Icon */
.card-icon {
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    position: relative;
}

/* Ensure SVG icons from Elementor inherit size/color */
.card-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    fill: currentColor;
    display: block;
}

/* Card Content */
.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Card Header */
.card-header {
    position: relative;
}

/* Card Title */
.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #f1f5f9;
    font-weight: 600;
}

/* Card Description */
.card-description {
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Features List */
.card-features {
    margin-bottom: 20px;
    padding: 0;
}

.card-features li {
    list-style-type: none;
    padding: 5px 0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.card-features li i {
    margin-right: 10px;
    font-size: 0.9rem;
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Category Tag */
.card-tag {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Button */
.card-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-size: 0.95rem;
}

.card-btn i {
    color: inherit;
    display: inline-block;
    line-height: 1;
}

.card-btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Favorite Button */
.favorite-btn {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
}

.favorite-btn:hover {
    background: #1e293b;
    color: #f87171;
}

.favorite-btn.active {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.5);
}

.favorite-btn.active i {
}

/* Badges */
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
}

.new-badge {
    background: #10b981;
}

.popular-badge {
    background: #f59e0b;
}

.coming-soon-badge {
    background: #64748b;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-between;
    background-color: rgba(30, 41, 59, 0.7);
    padding: 15px 25px;
    border-top: 1px solid #334155;
    font-size: 0.9rem;
    color: #94a3b8;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-weight: 700;
    color: #f1f5f9;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .stats {
        padding: 12px 20px;
    }
}

/* Floating hover preview */
.kd-hover-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 340px;
    max-width: min(340px, calc(100vw - 24px));
    height: auto;
    pointer-events: none;
    z-index: 999999;
    opacity: 0;
    transform: translate3d(-9999px, -9999px, 0) scale(0.92);
    transform-origin: top left;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38), 0 10px 28px rgba(15, 23, 42, 0.18);
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.2));
    transition: opacity 180ms ease, transform 180ms ease;
    will-change: transform, opacity;
    background: #0f172a;
    object-fit: cover;
}

.kd-hover-preview.is-visible {
    opacity: 1;
    transform: translate3d(-9999px, -9999px, 0) scale(1);
}