/* dashboard-v20.css - Dashboard specific optimizations */

/* Hero Section */
.dashboard-hero {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeIn 0.8s ease-out;
}

body {
    background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(239, 68, 68, 0.05) 0%, transparent 40%),
        var(--bg-dark);
}

.dashboard-hero h1 {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
    letter-spacing: -1px;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    line-height: 1.2;
}

.dashboard-hero p {
    color: #fff;
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 2.2rem auto;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Dashboard Action Buttons */
.clear-audit-btn {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    border: 1px solid var(--accent-danger);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.clear-audit-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

/* Dashboard Grid & Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 1s ease-out;
}

.tool-card {
    background: linear-gradient(145deg, rgba(26, 29, 39, 0.7), rgba(15, 17, 26, 0.8));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
    background: linear-gradient(145deg, rgba(30, 34, 45, 0.9), rgba(20, 22, 32, 0.95));
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.tool-card:hover::before {
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.tool-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: flex-start;
    overflow: hidden;
}

.tool-icon svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    display: block;
    flex-shrink: 0;
    stroke: currentColor;
}

.tool-title {
    margin: 0 0 8px 0; /* Delicate break between title and description */
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}



.tool-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Featured & Special Cards */
.card-featured {
    grid-column: 1 / -1;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(15, 17, 26, 0.9));
    border-color: rgba(16, 185, 129, 0.3);
    flex-direction: row;
    align-items: center;
}

.card-featured:hover {
    border-color: var(--accent-success);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.card-featured::before {
    background: linear-gradient(90deg, transparent, var(--accent-success), transparent);
}

.card-featured .tool-icon {
    font-size: 2.4rem;
    color: var(--accent-success);
    margin-right: 1.5rem;
    margin-bottom: 0;
}

.card-stress {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.1), rgba(15, 17, 26, 0.9)) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

.card-stress:hover {
    border-color: var(--accent-danger) !important;
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.2) !important;
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.15), rgba(20, 22, 32, 0.95)) !important;
}

.card-stress .tool-icon {
    color: var(--accent-danger) !important;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.card-stress::before {
    background: linear-gradient(90deg, transparent, var(--accent-danger), transparent) !important;
}

/* Tool Sections & Headings */
.section-title {
    grid-column: 1 / -1;
    font-size: 1.25rem;
    margin-top: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-left: 15px;
}

.section-title.core { color: var(--accent-primary); border-left: 4px solid var(--accent-primary); }
.section-title.stress { color: var(--accent-danger); border-left: 4px solid var(--accent-danger); }
.section-title.power { color: #f59e0b; border-left: 4px solid #f59e0b; }
.section-title.multi { color: #a855f7; border-left: 4px solid #a855f7; }
.section-title.input { color: #06b6d4; border-left: 4px solid #06b6d4; }
.section-title.connectivity { color: #10b981; border-left: 4px solid #10b981; }

.section-lead {
    grid-column: 1 / -1;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 850px;
}

/* SEO Content Area */
.seo-content-section {
    margin-top: 5rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.seo-content-section h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.about-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 950px;
    margin-bottom: 3rem;
    text-align: left;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem; /* Increased gap */
    color: var(--text-muted);
    line-height: 1.6;
}

.seo-col h3 {
    color: var(--accent-primary); /* Use accent color for headers */
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 12px;
}

.seo-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.seo-col p {
    text-align: left;
}

/* Dashboard Sync Status Badges */
.state-pass { 
    border-color: #10b981 !important; 
    box-shadow: 0 0 15px rgba(16,185,129,0.2) !important; 
    background: linear-gradient(145deg, rgba(16,185,129,0.1), rgba(15, 17, 26, 0.9)) !important;
}

.state-fail { 
    border-color: #ef4444 !important; 
    box-shadow: 0 0 15px rgba(239,68,68,0.2) !important; 
    background: linear-gradient(145deg, rgba(239,68,68,0.1), rgba(15, 17, 26, 0.9)) !important;
}

.status-badge { 
    position: absolute; 
    top: 12px; 
    right: 12px; 
    background: rgba(0,0,0,0.8); 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-weight: 900; 
    font-size: 0.70rem; 
    letter-spacing: 1px; 
    z-index: 10; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); 
}

.state-pass .status-badge { color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.state-fail .status-badge { color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }

/* Responsive Overrides */
@media (max-width: 900px) {
    .dashboard-hero h1 {
        font-size: 2.2rem;
    }
    
    .card-featured {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }

    .card-featured .tool-icon {
        margin-bottom: 1rem;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .dashboard-hero h1 {
        font-size: 1.8rem;
    }
    
    .tool-card {
        background: linear-gradient(145deg, rgba(26, 29, 39, 0.9), rgba(15, 17, 26, 0.95)) !important;
        padding: 1.25rem;
    }

    .tool-title {
        font-size: 1.15rem;
        font-weight: 800; /* Extra bold for mobile */
        color: #ffffff !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.5); /* Better contrast */
    }
    
    .tool-desc {
        font-size: 0.92rem; 
        color: #e2e8f0; /* Brighter than muted for better mobile read */
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-top: 3rem;
    }
}
