/*
Theme Name: SpeedTestSee
Theme URI: https://www.facebook.com/archatok1
Author: Atiqur Rahman
Description: A Cyber-Glass Internet Speed Test Theme.
Version: 1.0
License: GNU General Public License v2 or later
*/

/* --- CSS from the Original Design --- */

:root {
    --neon-cyan: #06b6d4;
    --neon-purple: #8b5cf6;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #020617;
    color: #f8fafc;
    overflow-x: hidden;
    margin: 0;
}

h1, h2, h3, .digit-font {
    font-family: 'Space Grotesk', sans-serif;
}

/* Animated Background Mesh */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #020617 100%);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-panel {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gauge Styling */
.gauge-container {
    position: relative;
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.3));
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.1s linear;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Neon Text */
.neon-text {
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5), 0 0 20px rgba(6, 182, 212, 0.3);
}

.neon-text-purple {
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Custom Ad Placeholder Pattern */
.ad-placeholder {
    background-image: 
        linear-gradient(45deg, #1e293b 25%, transparent 25%), 
        linear-gradient(-45deg, #1e293b 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #1e293b 75%), 
        linear-gradient(-45deg, transparent 75%, #1e293b 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: adScroll 20s linear infinite;
}

@keyframes adScroll {
    from { background-position: 0 0, 0 10px, 10px -10px, -10px 0px; }
    to { background-position: 40px 40px, 40px 50px, 50px 30px, 30px 40px; }
}

/* Scanline effect */
.scanline {
    width: 100%;
    height: 100px;
    z-index: 10;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(6, 182, 212, 0.1) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.1;
    background-size: 100% 4px;
    animation: scanline 10s linear infinite;
    pointer-events: none;
    position: absolute;
    top: 0;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Modal Transitions */
.modal {
    transition: opacity 0.3s ease-in-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}
.modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* --- NEW: Blog Styles --- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    transition: transform 0.3s ease, background 0.3s ease;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.8);
}

.post-thumbnail {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.wp-content a {
    color: var(--neon-cyan);
    text-decoration: underline;
}

.wp-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}