/*
 * ConsoleSniper - Network Speed Test Page Styles
 * Pure Black Neumorphic Design
 */

/* ===== NETWORK SPEED TEST PAGE LAYOUT ===== */
.network-speed-test-page {
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* ===== SPEED TEST HERO SECTION ===== */
.speed-test-hero {
    position: relative;
    padding: 6rem 2rem 5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45vh;
    background: #000000;
}

.speed-test-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 100px 100px;
    background-position: 0 0;
    opacity: 0.03;
    pointer-events: none;
}

.speed-test-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    text-align: center;
}

.speed-test-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #f0f0f0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.5px;
}

.speed-test-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #b0b0b0;
    opacity: 0.9;
}

/* ===== SPEED TEST SECTION ===== */
.speed-test-section {
    flex: 1;
    padding: 40px 20px;
}

.speed-test-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .speed-test-container {
        grid-template-columns: 1fr;
    }
}

/* ===== NEUMORPHIC PANELS ===== */
.speed-test-control,
.results-panel {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.05),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f0f0f0;
    letter-spacing: -0.5px;
}

.test-description {
    background: rgba(100, 100, 100, 0.15);
    border-left: 3px solid rgba(200, 200, 200, 0.3);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a0a0a0;
}

/* ===== BUTTONS ===== */
.start-test-button,
.reset-test-button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.start-test-button {
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #f0f0f0;
    border: 1px solid rgba(150, 150, 150, 0.3);
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.start-test-button:hover:not(:disabled) {
    background: linear-gradient(145deg, #333333 0%, #222222 100%);
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.12),
        inset 0 -1px 2px rgba(0, 0, 0, 0.6),
        0 6px 16px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.start-test-button:active:not(:disabled) {
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.5),
        inset 0 -1px 1px rgba(255, 255, 255, 0.05),
        0 2px 6px rgba(0, 0, 0, 0.3);
}

.start-test-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.start-test-button svg {
    width: 18px;
    height: 18px;
}

.reset-test-button {
    background: rgba(100, 100, 100, 0.2);
    color: #c0c0c0;
    border: 1px solid rgba(150, 150, 150, 0.2);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.05),
        0 2px 6px rgba(0, 0, 0, 0.3);
}

.reset-test-button:hover {
    background: rgba(100, 100, 100, 0.25);
    color: #e0e0e0;
}

/* ===== PROGRESS BARS ===== */
.test-progress {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.progress-name {
    color: #e0e0e0;
}

.progress-status {
    color: #808080;
    font-size: 0.85rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #505050 0%, #707070 50%, #505050 100%);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(200, 200, 200, 0.2);
}

/* ===== ERROR MESSAGES ===== */
.test-errors {
    background: rgba(200, 50, 50, 0.1);
    border: 1px solid rgba(200, 80, 80, 0.3);
    border-left: 3px solid rgba(220, 100, 100, 0.5);
    border-radius: 6px;
    padding: 12px 15px;
    color: #d0a0a0;
    font-size: 0.9rem;
    margin-top: 15px;
    line-height: 1.5;
}

/* ===== RESULTS PANEL ===== */
.overall-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.rating-card {
    flex: 1;
    background: rgba(100, 100, 100, 0.1);
    border: 1px solid rgba(200, 200, 200, 0.15);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.rating-label {
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.rating-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f0f0f0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.test-timestamp {
    font-size: 0.8rem;
    color: #808080;
    text-align: right;
    align-self: flex-end;
}

/* ===== TEST RESULTS SECTIONS ===== */
.test-results {
    border: 1px solid rgba(200, 200, 200, 0.1);
    border-radius: 8px;
    padding: 20px;
    background: rgba(100, 100, 100, 0.08);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.15);
}

.results-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
}

.results-rating {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(100, 100, 100, 0.2);
    color: #c0c0c0;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid rgba(150, 150, 150, 0.2);
}

.results-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.metric-box {
    background: rgba(100, 100, 100, 0.15);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(200, 200, 200, 0.1);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.03);
}

.metric-box.large {
    grid-column: span 2;
}

.metric-label {
    font-size: 0.75rem;
    color: #909090;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.metric-unit {
    font-size: 0.75rem;
    color: #808080;
}

.results-explanation {
    background: rgba(100, 100, 100, 0.1);
    border-left: 3px solid rgba(150, 150, 150, 0.3);
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #b0b0b0;
}

/* ===== INTERPRETATION SUMMARY ===== */
.interpretation-summary {
    background: rgba(100, 100, 100, 0.12);
    border: 1px solid rgba(200, 200, 200, 0.15);
    border-radius: 8px;
    padding: 20px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.interpretation-summary h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.interpretation-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #a0a0a0;
}

.interpretation-text p {
    margin: 0 0 10px 0;
}

.interpretation-text strong {
    color: #d0d0d0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .speed-test-hero {
        padding: 4rem 1.5rem 3rem;
    }

    .speed-test-title {
        font-size: 1.6rem;
    }

    .speed-test-control,
    .results-panel {
        padding: 20px;
    }

    .results-metrics {
        grid-template-columns: 1fr;
    }

    .metric-box.large {
        grid-column: span 1;
    }

    .overall-rating {
        flex-direction: column;
    }

    .test-timestamp {
        text-align: left;
    }
}
