/* Modern UI for GoGro Speed Test */

.gogro-speedtest-app {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 600px;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 2rem;
    box-sizing: border-box;
    color: #333;
    transition: all 0.3s ease;
}

.gogro-speedtest-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gogro-speedtest-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
    color: #111;
}

.gogro-speedtest-header p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

/* Dashboard Gauges */
.gogro-speedtest-dashboard {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gogro-metric-box {
    flex: 1;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gogro-metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--st-primary);
}

.gogro-metric-content {
    display: flex;
    flex-direction: column;
}

.gogro-metric-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.gogro-metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
}

.gogro-metric-value span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #888;
}

/* Gauge and Button Area */
.gogro-speedtest-gauge-container {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #eaeaea;
}

.gogro-speedtest-status {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 1.5rem;
    font-weight: 600;
    height: 20px;
}

.gogro-progress-bar-wrap {
    width: 100%;
    height: 8px;
    background: #eaeaea;
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
    display: none; /* hidden until started */
}

.gogro-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--st-primary);
    box-shadow: 0 0 10px var(--st-primary-glow);
    transition: width 0.1s linear;
}

.gogro-btn-primary {
    background: var(--st-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-size: 1.2rem!important;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px var(--st-primary-glow);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gogro-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px var(--st-primary-glow);
}

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

.gogro-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Affiliate Box */
.gogro-speedtest-affiliate {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e2e2;
    animation: fadeIn 0.5s ease;
}

.gogro-speedtest-affiliate p {
    margin: 0 0 1rem;
    font-weight: 600;
    color: #444;
}

a.gogro-btn-affiliate {
    display: inline-block;
    background: var(--st-primary);
    color: #fff!important;
    text-decoration: none!important;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--st-primary-glow);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.gogro-btn-affiliate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--st-primary-glow);
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
    .gogro-speedtest-dashboard {
        flex-direction: column;
    }
}
