/* Dev Hub homepage — scoped to custom template only */

body.page-template-tpl-home,
body.page-template-tpl-home-php {
    min-height: 100%;
    margin: 0;
    background: #070b12;
    font-family: "JetBrains Mono", "Roboto Mono", monospace;
    color: #e8f4ff;
    overflow-x: hidden;
}

body.page-template-tpl-home,
body.page-template-tpl-home-php {
    background: radial-gradient(circle at 20% 0%, #1a3a5c 0%, #070b12 55%);
}

body.page-template-tpl-home footer,
body.page-template-tpl-home-php footer {
    display: none;
}

#dev-hub-stars {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.dev-hub-scanlines {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.07;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.35) 2px,
        rgba(0, 0, 0, 0.35) 4px
    );
}

.dev-hub {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 48px;
    box-sizing: border-box;
}

.dev-hub__panel {
    width: min(980px, 100%);
    backdrop-filter: blur(18px);
    background: rgba(10, 16, 28, 0.72);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 20px;
    padding: 28px;
    box-shadow:
        0 0 0 1px rgba(0, 229, 255, 0.05) inset,
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(0, 229, 255, 0.06);
}

.dev-hub__header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.dev-hub__badge {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #00ffa2;
    border: 1px solid rgba(0, 255, 162, 0.35);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(0, 255, 162, 0.08);
}

.dev-hub__clock {
    font-size: 0.9rem;
    color: #7ee8ff;
}

.dev-hub__title {
    position: relative;
    margin: 0 0 8px;
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 700;
    line-height: 1.05;
    color: #00e5ff;
    text-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
    animation: dev-hub-glitch 8s infinite;
}

.dev-hub__title::before,
.dev-hub__title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    clip-path: inset(0 0 0 0);
}

.dev-hub__title::before {
    left: 1px;
    text-shadow: -1px 0 #ff00c8;
    animation: dev-hub-glitch-top 3s infinite linear alternate-reverse;
}

.dev-hub__title::after {
    left: -1px;
    text-shadow: 1px 0 #00ffa2;
    animation: dev-hub-glitch-bottom 2.5s infinite linear alternate-reverse;
}

.dev-hub__subtitle {
    margin: 0 0 16px;
    color: #8eb4d9;
    font-size: 0.95rem;
}

.dev-hub__status-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #9ec7e8;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.12);
}

.dev-hub__status-bar em {
    color: #00ffa2;
    font-style: normal;
    font-weight: 600;
}

.dev-hub__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ffa2;
    box-shadow: 0 0 10px #00ffa2;
    animation: dev-hub-pulse 1.6s ease-in-out infinite;
}

.dev-hub__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

@media (max-width: 860px) {
    .dev-hub__grid {
        grid-template-columns: 1fr;
    }
}

.dev-hub__card {
    background: rgba(8, 14, 24, 0.85);
    border: 1px solid rgba(43, 64, 95, 0.9);
    border-radius: 14px;
    padding: 18px;
    min-height: 100%;
}

.dev-hub__card h2 {
    margin: 0 0 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #00e5ff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dev-hub__services,
.dev-hub__stats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dev-hub__services li,
.dev-hub__stats li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dev-hub__services li:last-child,
.dev-hub__stats li:last-child {
    border-bottom: 0;
}

.dev-hub__services strong,
.dev-hub__stats li {
    margin-left: auto;
    color: #00ffa2;
    font-weight: 600;
}

.dev-hub__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00ffa2;
    box-shadow: 0 0 8px rgba(0, 255, 162, 0.8);
    flex-shrink: 0;
}

.dev-hub__dot--gold {
    background: #ffd166;
    box-shadow: 0 0 10px rgba(255, 209, 102, 0.9);
}

.dev-hub__glow {
    animation: dev-hub-glow 2s infinite alternate;
}

.dev-hub__metric {
    margin-bottom: 14px;
}

.dev-hub__metric-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 6px;
    color: #9ec7e8;
}

.dev-hub__bar {
    height: 8px;
    border-radius: 999px;
    background: #1e2d42;
    overflow: hidden;
}

.dev-hub__bar-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #00e5ff, #00ffa2);
    transition: width 1.2s ease-out;
}

.dev-hub__quote {
    margin: 0 0 14px;
    min-height: 4.5em;
    font-size: 0.92rem;
    line-height: 1.55;
    font-style: italic;
    color: #7ee8ff;
}

.dev-hub__btn {
    appearance: none;
    border: 1px solid rgba(0, 229, 255, 0.35);
    background: rgba(0, 229, 255, 0.08);
    color: #00e5ff;
    font-family: inherit;
    font-size: 0.78rem;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.dev-hub__btn:hover {
    background: rgba(0, 229, 255, 0.16);
    border-color: rgba(0, 229, 255, 0.55);
}

.dev-hub__terminal-wrap {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 162, 0.15);
}

.dev-hub__terminal-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    font-size: 0.75rem;
    color: #7ee8ff;
    background: #0a1018;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dev-hub__terminal-head span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f57;
}

.dev-hub__terminal-head span:nth-child(2) {
    background: #febc2e;
}

.dev-hub__terminal-head span:nth-child(3) {
    background: #28c840;
}

.dev-hub__terminal {
    margin: 0;
    min-height: 200px;
    max-height: 240px;
    overflow: auto;
    padding: 16px;
    background: #05070b;
    color: #53ff8d;
    font-family: inherit;
    font-size: 0.82rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.dev-hub__footer {
    margin-top: 20px;
    text-align: center;
    opacity: 0.65;
    font-size: 0.78rem;
}

.dev-hub__footer p {
    margin: 0 0 6px;
}

.dev-hub__hint {
    color: #5a7a99;
    font-size: 0.72rem;
}

.dev-hub__blink {
    animation: dev-hub-blink 1s step-end infinite;
}

@keyframes dev-hub-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

@keyframes dev-hub-glow {
    from { opacity: 0.65; text-shadow: none; }
    to { opacity: 1; text-shadow: 0 0 12px #ffd166; }
}

@keyframes dev-hub-blink {
    50% { opacity: 0; }
}

@keyframes dev-hub-glitch {
    0%, 92%, 100% { transform: none; }
    93% { transform: skewX(-0.8deg); }
    95% { transform: skewX(0.6deg); }
}

@keyframes dev-hub-glitch-top {
    0% { clip-path: inset(12% 0 72% 0); }
    20% { clip-path: inset(55% 0 20% 0); }
    40% { clip-path: inset(8% 0 78% 0); }
    60% { clip-path: inset(70% 0 5% 0); }
    80% { clip-path: inset(30% 0 45% 0); }
    100% { clip-path: inset(62% 0 18% 0); }
}

@keyframes dev-hub-glitch-bottom {
    0% { clip-path: inset(65% 0 8% 0); }
    25% { clip-path: inset(10% 0 75% 0); }
    50% { clip-path: inset(48% 0 30% 0); }
    75% { clip-path: inset(22% 0 58% 0); }
    100% { clip-path: inset(78% 0 4% 0); }
}
