/*
Theme Name: DCSpeedTest Standalone Cyberpunk Theme
Description: Custom ultra-lightweight dark-mode cyberpunk stylesheet.
Version: 1.0.0
*/

:root {
    --bg-dark: #0b0d19;
    --surface-dark: #121629;
    --cyan-brand: #00d4ff;
    --purple-brand: #7c3aed;
    --text-light: #cbd5e1;
    --text-muted: #64748b;
    --white: #ffffff;
    --border-color: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    color: var(--cyan-brand);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--white);
}

/* Header */
.site-header {
    background-color: rgba(11, 13, 25, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
}

.site-logo a span {
    color: var(--cyan-brand);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Rajdhani', sans-serif;
}

.main-navigation a:hover {
    color: var(--cyan-brand);
}

/* Container */
.main-content {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Blog Archive Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.05);
}

.post-card-image {
    width: 100%;
    height: auto !important;
    aspect-ratio: 16/9;
    object-fit: cover;
    background-color: #1a1f36;
    border-bottom: 1px solid var(--border-color);
    display: block;
}

.post-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-category {
    font-size: 0.75rem;
    color: var(--cyan-brand);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.post-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.3;
}

.post-card-title a {
    color: var(--white);
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.6;
}

.post-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
}

/* Single Post View */
.single-post-container {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-category a {
    color: var(--cyan-brand);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.post-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin: 15px 0 20px 0;
}

.post-meta-details {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.post-featured-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 50px;
    display: block;
}

/* Content typography */
.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    color: var(--white);
    margin-top: 50px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.entry-content h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    color: var(--white);
    margin-top: 40px;
    margin-bottom: 15px;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 25px;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.entry-content th {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid var(--border-color);
    padding: 12px;
    text-align: left;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.entry-content td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* Footer */
.site-footer {
    background-color: #05060b;
    border-top: 1px solid var(--border-color);
    padding: 50px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 100px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

/* Pagination */
.pagination {
    margin-top: 60px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 8px;
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.pagination .page-numbers.current {
    background: var(--cyan-brand);
    color: var(--bg-dark);
    border-color: var(--cyan-brand);
}

.pagination .page-numbers:hover:not(.current) {
    border-color: var(--cyan-brand);
    color: var(--cyan-brand);
}

/* Author Bio styling */
.author-bio-box {
    border: 1px solid var(--border-color) !important;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    padding: 24px;
    margin-top: 50px;
}

.author-bio-box h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    color: var(--white);
    margin: 0 0 10px 0;
}

/* Related articles & Sources */
.related-box, .sources-box {
    margin-top: 45px;
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
}

.related-box h4, .sources-box h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.35rem;
    color: var(--white);
    margin: 0 0 15px 0;
}

.related-list, .sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li, .sources-list li {
    margin-bottom: 12px;
}

.related-list li:last-child, .sources-list li:last-child {
    margin-bottom: 0;
}

.sources-list a {
    word-break: break-all;
}

/* Custom styles for language picker */
.lang-picker {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--white);
    padding: 6px 12px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 200;
    min-width: 120px;
    margin-top: 5px;
}

.lang-dropdown a {
    display: block;
    padding: 8px 16px;
    color: var(--text-light);
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
}

.lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--cyan-brand);
}

.lang-picker:hover .lang-dropdown {
    display: block;
}

/* Speed Test Widget styling */
.speedtest-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    padding: 0 10px;
}

.speedtest-container {
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.speedtest-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan-brand), var(--purple-brand));
}

.widget-header {
    margin-bottom: 30px;
}

.widget-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cyan-brand);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.gauge-area {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.03);
    border-top-color: var(--cyan-brand);
    margin: 0 auto 30px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.05), inset 0 0 30px rgba(0, 212, 255, 0.05);
    transition: transform 0.3s, border-top-color 0.3s, box-shadow 0.3s;
}

.gauge-area.running {
    animation: rotate-gauge 2s linear infinite;
    border-top-color: var(--purple-brand);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.15), inset 0 0 40px rgba(124, 58, 237, 0.15);
}

.gauge-area.completed {
    border-color: var(--cyan-brand);
    box-shadow: 0 0 45px rgba(0, 212, 255, 0.2), inset 0 0 45px rgba(0, 212, 255, 0.2);
}

@keyframes rotate-gauge {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gauge-area.running .speed-value,
.gauge-area.running .speed-unit {
    animation: counter-rotate-gauge 2s linear infinite;
}

@keyframes counter-rotate-gauge {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.speed-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.speed-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 5px;
    letter-spacing: 0.1em;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 10px;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
}

.metric-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.metric-value.cyan {
    color: var(--cyan-brand);
}

.btn-start {
    width: 100%;
    background: linear-gradient(135deg, var(--cyan-brand) 0%, var(--purple-brand) 100%);
    border: none;
    border-radius: 14px;
    color: var(--white);
    padding: 16px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    text-transform: uppercase;
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.25);
}

.btn-start:active {
    transform: translateY(1px);
}

.btn-start:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.progress-wrapper {
    margin-top: 25px;
    display: none;
}

.progress-wrapper.visible {
    display: block;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.progress-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--cyan-brand);
    border-radius: 100px;
    transition: width 0.3s;
}

.tips-box {
    margin-top: 25px;
    background: rgba(0, 212, 255, 0.02);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
    opacity: 0;
    transition: opacity 0.5s;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tips-box.visible {
    opacity: 1;
}

/* Accordion FAQ in index */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-trigger {
    padding: 18px 24px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    cursor: pointer;
    user-select: none;
    outline: none;
}

.faq-item[open] .faq-trigger {
    border-bottom: 1px solid var(--border-color);
    color: var(--cyan-brand);
}

.faq-content {
    padding: 20px 24px;
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* Badges and section layout helper */
.seo-section {
    margin-top: 100px;
}

.section-badge {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 100px;
    font-family: 'Rajdhani', sans-serif;
}

.badge-cyan {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--cyan-brand);
}

.badge-indigo {
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.2);
    color: #818cf8;
}

.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.2rem;
    color: var(--white);
    margin-top: 15px;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    line-height: 1.5;
}

.grid-2cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.grid-3cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.info-card {
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 24px;
    position: relative;
}

.card-num {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: 15px;
    right: 20px;
    user-select: none;
}

.card-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    color: var(--white);
    margin-top: 0;
    margin-bottom: 12px;
}

.card-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* Rich Footer layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: left;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--cyan-brand);
}

.footer-social-row {
    display: flex;
    gap: 12px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s;
    text-decoration: none !important;
}

.footer-social-icon:hover {
    background: var(--cyan-brand);
    color: #070913 !important;
    border-color: var(--cyan-brand);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        align-items: center;
    }
}

.footer-bottom-info {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.footer-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    position: relative;
    display: inline-block;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}


