/* Enhanced Tools Section Styling */

/* Tools Grid Layout - Make it more visually appealing */
[data-section="tools"] .grid,
.tools-grid {
    gap: 2rem !important;
    padding: 2rem 0;
}

/* Tool Cards - Enhanced Design */
[data-tool-card],
.tool-card,
.bento-card[data-category="tool"] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border: 1.5px solid rgba(139, 92, 246, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

[data-tool-card]:hover,
.tool-card:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow:
        0 20px 40px -12px rgba(139, 92, 246, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.1);
    transform: translateY(-4px);
}

/* Tool Card Icon Enhancement */
[data-tool-card] svg,
.tool-card svg,
.tool-icon {
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
    transition: all 0.3s ease;
}

[data-tool-card]:hover svg,
.tool-card:hover svg {
    filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.6));
    transform: scale(1.1);
}

/* Tool Card Title Styling */
[data-tool-card] h3,
.tool-card h3,
[data-tool-title] {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

/* Tool Card Description */
[data-tool-card] p,
.tool-card p,
[data-tool-description] {
    color: rgba(244, 244, 245, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Tool Card Badge/Tag */
.tool-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #a78bfa;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tools Section Header */
[data-section="tools"] h1,
[data-section="tools"] h2 {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

/* Tools Section Subtitle */
[data-section="tools"] .subtitle,
[data-tools-subtitle] {
    text-align: center;
    color: rgba(244, 244, 245, 0.7);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Enhanced Learn Section Styling */

/* Learn Section Header */
[data-section="learn"] h1,
[data-section="learn"] h2 {
    background: linear-gradient(135deg, #22d3ee, #0ea5e9, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

/* Learn Card/Article Styling */
[data-article-card],
[data-learn-card],
.learn-card {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), rgba(59, 130, 246, 0.05));
    border: 1.5px solid rgba(34, 211, 238, 0.2);
    padding: 2rem;
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

[data-article-card]:hover,
[data-learn-card]:hover,
.learn-card:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.12));
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow:
        0 20px 40px -12px rgba(34, 211, 238, 0.3),
        0 0 0 1px rgba(34, 211, 238, 0.1);
    transform: translateY(-4px);
}

/* Learn Card Title */
[data-article-card] h3,
[data-learn-card] h3,
.learn-card h3 {
    color: #22d3ee;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Learn Card Icon Image */
.learn-card-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.4));
    transition: all 0.3s ease;
}

.learn-card:hover .learn-card-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.6));
}

/* Learn Card Content */
[data-article-card] p,
[data-learn-card] p,
.learn-card p {
    color: rgba(244, 244, 245, 0.85);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Learn Card List Items */
[data-article-card] ul,
[data-learn-card] ul,
.learn-card ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

[data-article-card] li,
[data-learn-card] li,
.learn-card li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: rgba(244, 244, 245, 0.8);
    line-height: 1.6;
}

[data-article-card] li::before,
[data-learn-card] li::before,
.learn-card li::before {
    content: "✓";
    position: absolute;
    left: 0.5rem;
    color: #22d3ee;
    font-weight: bold;
    font-size: 1.125rem;
}

/* Learn Category Pills */
.learn-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #22d3ee;
    margin: 0.5rem 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.learn-category:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.2);
}

/* Learn Section Grid */
[data-section="learn"] .grid {
    gap: 2rem;
    margin-top: 2rem;
}

/* Read Time Badge */
.read-time {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: rgba(244, 244, 245, 0.6);
    margin-top: 0.75rem;
}

.read-time::before {
    content: "⏱";
}

/* Difficulty Badge */
.difficulty-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.difficulty-beginner {
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.difficulty-intermediate {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.difficulty-advanced {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {

    [data-section="tools"] h1,
    [data-section="learn"] h1,
    [data-section="tools"] h2,
    [data-section="learn"] h2 {
        font-size: 2rem;
    }

    [data-tool-card],
    [data-article-card],
    [data-learn-card] {
        padding: 1.5rem;
    }
}

/* Add visual separator between sections */
[data-section="tools"]::after,
[data-section="learn"]::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    margin: 4rem 0;
}