/* custom-home.css */
.tool-card p,
.tool-card .card-text {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Category color system (optional enhancement) */
.tool-card[data-category="text"]::before { background: linear-gradient(90deg,#4F46E5,#8B5CF6); }
.tool-card[data-category="seo"]::before { background: linear-gradient(90deg,#10B981,#059669); }
.tool-card[data-category="dev"]::before { background: linear-gradient(90deg,#F59E0B,#F97316); }
.tool-card[data-category="image"]::before { background: linear-gradient(90deg,#EC4899,#F43F5E); }

/* Button inside card */
.tool-card .btn {
    border-radius: 10px;
    font-size: 0.85rem;
    padding: 6px 12px;
}

/* ===============================
   HERO IMPROVEMENTS
================================= */

.badge-primary {
    background: #4F46E5;
    color: #fff;
}

.btn-primary {
    background: #4F46E5;
    border-color: #4F46E5;
}

.btn-primary:hover {
    background: #4338CA;
    border-color: #4338CA;
}

.btn-outline-primary {
    color: #4F46E5;
    border-color: #4F46E5;
}

.btn-outline-primary:hover {
    background: #4F46E5;
    color: #fff;
}

.text-primary {
    color: #4F46E5 !important;
}

/* ===============================
   SECTION BACKGROUNDS
================================= */

section.bg-light {
    background-color: #f8fafc !important;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 768px) {
    .custom-hero h1 {
        font-size: 2rem;
    }

    .custom-hero p {
        font-size: 1rem;
    }

    .tool-card:hover,
    #featured-tools .card:hover {
        transform: translateY(-6px);
    }
}
/* =====================================
   PREMIUM MULTI-COLOR TOOL CARDS
===================================== */

/* Base Card */
.premium-tool-card {
    position: relative;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #eef2f7;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;

    /* Default fallback colors */
    --card-gradient: linear-gradient(135deg,#4f46e5,#3b82f6);
    --card-hover: #4f46e5;
}

/* Top Accent Bar */
.premium-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-gradient);
}

/* Hover */
.premium-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.10);
    border-color: #dbeafe;
}

/* Icon Wrapper */
.premium-icon-wrapper {
    display: flex;
    justify-content: flex-start;
}

/* Tool Icon */
.premium-tool-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--card-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Title */
.tool-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    display: block;
}

/* Description */
.tool-description {
    font-size: 0.92rem;
    line-height: 1.65;
    min-height: 70px;
    color: #64748b;
}

/* Badge */
.premium-badge {
    background: #f8fafc;
    color: #475569;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

/* Arrow */
.tool-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

/* Arrow Hover */
.premium-tool-card:hover .tool-arrow {
    background: var(--card-hover);
    color: #ffffff;
    transform: translateX(4px);
}

/* Gap Utility */
.gap-2 {
    gap: 8px;
}

/* =====================================
   ROTATING CARD COLORS
===================================== */

[data-tool-id]:nth-child(6n+1) .premium-tool-card {
    --card-gradient: linear-gradient(135deg,#4f46e5,#3b82f6);
    --card-hover: #4f46e5;
}

[data-tool-id]:nth-child(6n+2) .premium-tool-card {
    --card-gradient: linear-gradient(135deg,#10b981,#14b8a6);
    --card-hover: #10b981;
}

[data-tool-id]:nth-child(6n+3) .premium-tool-card {
    --card-gradient: linear-gradient(135deg,#f59e0b,#f97316);
    --card-hover: #f59e0b;
}

[data-tool-id]:nth-child(6n+4) .premium-tool-card {
    --card-gradient: linear-gradient(135deg,#ef4444,#ec4899);
    --card-hover: #ef4444;
}

[data-tool-id]:nth-child(6n+5) .premium-tool-card {
    --card-gradient: linear-gradient(135deg,#8b5cf6,#6366f1);
    --card-hover: #8b5cf6;
}

[data-tool-id]:nth-child(6n+6) .premium-tool-card {
    --card-gradient: linear-gradient(135deg,#06b6d4,#0ea5e9);
    --card-hover: #06b6d4;
}
