/* ==========================================================================
   WEB DESIGN - STATS SECTION
   ========================================================================== */

.web-design-stats-section {
    padding: 5rem 0;
    background: transparent;
}

.web-design-stats-container .title-navigator {
    margin-bottom: 4rem;
    text-align: center;
}

/* Stats Container Overrides for standalone placement */
.web-design-stats-section .stats-section {
    margin-top: 0;
}

/* Copy defining styles from sub-hero.css but isolated to this section if needed */

.stats-section {
    position: relative;
    z-index: 2;
    width: 100%;
}

.stats-container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.stat-card .pi-feat-card-tab {
    width: 100%;
    justify-content: center;
    background: #dde6f2;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.stat-card .pi-feat-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.stat-main {
    align-items: baseline;
    display: flex;
    gap: .35rem;
    margin-bottom: 0.25rem;
    justify-content: center;
}

.stat-card .stat-number {
    font-family: var(--font-mono);
    font-size: var(--font-p-heading);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -1px;
}

.hero-stat-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: visible !important;
    min-height: 160px;
    text-align: center;
    align-items: center;
}

.pi-feat-card--js .stat-number {
    color: #f59e0b;
}

.pi-feat-card--ts .stat-number {
    color: #10b981;
}

.pi-feat-card--config .stat-number {
    color: #3b82f6;
}

.pi-feat-card--json .stat-number {
    color: #a78bfa;
}

.pi-feat-card--js {
    border-image-source: linear-gradient(to bottom, #f59e0b, transparent);
    border-image-slice: 1;
}

.pi-feat-card--ts {
    border-image-source: linear-gradient(to bottom, #10b981, transparent);
    border-image-slice: 1;
}

.pi-feat-card--config {
    border-image-source: linear-gradient(to bottom, #3b82f6, transparent);
    border-image-slice: 1;
}

.pi-feat-card--json {
    border-image-source: linear-gradient(to bottom, #a78bfa, transparent);
    border-image-slice: 1;
}

[data-theme="dark"] .hero-stat-card {
    background: var(--card-bg) !important;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .hero-stat-card .pi-feat-card-tab {
    background: var(--accent-color) !important;
}

.hero-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
}

@media (max-width: 1024px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-stat-card {
        min-height: 100px;
    }
}