/* API Header Section */
.api-test-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    background: white;
    
    padding: 24px 24px 0 24px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.api-infomation {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.api-icon {
    flex-shrink: 0;
}

.api-details h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1f2937;
}

.api-author {
    color: #6b7280;
    margin: 0;
    font-size: 14px;
}

.api-stats {
    text-align: right;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stars {
    color: #fbbf24;
    font-size: 16px;
}

.rating-text {
    color: #6b7280;
    font-size: 14px;
}

.users {
    color: #6b7280;
    font-size: 14px;
}

/* API Meta Badges */
.api-meta {
    display: flex;
    gap: 12px;
     align-items: flex-start;

    margin-bottom: 20px;
}

.version-badge, .status-badge, .price-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.version-badge {
    background-color: #e5e7eb;
    color: #374151;
}

.status-badge.active {
    background-color: #dcfce7;
    color: #166534;
}

.price-badge {
    background-color: #dbeafe;
    color: #1e40af;
}

/* API Metrics */
.api-metrics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 20px 24px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-top: 1px solid #e5e7eb;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.metric-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 500;
}

.metric-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.subscribe-btn {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.subscribe-btn:hover {
    background-color: #059669;
}

/* === MOBILE RESPONSIVE STYLES === */

/* Tablet Responsive Styles */
@media (max-width: 1024px) {
    .api-test-header {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .api-infomation {
        gap: 12px;
    }
    
    .api-details h1 {
        font-size: 24px;
    }
    
    .api-metrics {
        padding: 16px 20px;
        margin-bottom: 16px;
    }
    
    .metric {
        gap: 3px;
    }
    
    .metric-label {
        font-size: 11px;
    }
    
    .metric-value {
        font-size: 13px;
    }
    
    .subscribe-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .api-test-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .api-infomation {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .api-details h1 {
        font-size: 22px;
        margin-bottom: 6px;
    }
    
    .api-author {
        font-size: 13px;
    }
    
    .api-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .version-badge, .status-badge, .price-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .api-metrics {
        flex-direction: column;
        gap: 20px;
        padding: 20px 16px;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .metric {
        gap: 6px;
    }
    
    .metric-label {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    
    .metric-value {
        font-size: 16px;
        font-weight: 700;
    }
    
    .subscribe-btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        transition: all 0.3s ease;
    }
    
    .subscribe-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    }
    
    .subscribe-btn.subscribed {
        background-color: #6b7280;
        cursor: not-allowed;
        box-shadow: none;
    }
    
    .subscribe-btn.subscribed:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Small Mobile Responsive Styles */
@media (max-width: 480px) {
    .api-test-header {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .api-details h1 {
        font-size: 20px;
    }
    
    .api-author {
        font-size: 12px;
    }
    
    .api-meta {
        gap: 6px;
    }
    
    .version-badge, .status-badge, .price-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .api-metrics {
        padding: 16px 12px;
        gap: 16px;
    }
    
    .metric {
        gap: 4px;
    }
    
    .metric-label {
        font-size: 11px;
    }
    
    .metric-value {
        font-size: 15px;
    }
    
    .subscribe-btn {
        max-width: 100%;
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Extra Small Mobile Responsive Styles */
@media (max-width: 360px) {
    .api-test-header {
        padding: 10px;
    }
    
    .api-details h1 {
        font-size: 18px;
    }
    
    .api-metrics {
        padding: 14px 10px;
        gap: 14px;
    }
    
    .metric-label {
        font-size: 10px;
    }
    
    .metric-value {
        font-size: 14px;
    }
    
    .subscribe-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Navigation Tabs Styling - Matching Get Started/Contact Us Button Style */
.api-navigation-tabs {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}

.nav-tab-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Overview Tab - Orange style */
.nav-tab-btn[data-tab="overview"] {
    background: #F97316;
    color: white;
}

.nav-tab-btn[data-tab="overview"]:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
    color: white;
    text-decoration: none;
}

.nav-tab-btn[data-tab="overview"].active {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

/* Test API Tab - Green style matching Overview button */
.nav-tab-btn[data-tab="test"] {
    background: #22C55E;
    color: white;
}

.nav-tab-btn[data-tab="test"]:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
    color: white;
    text-decoration: none;
}

.nav-tab-btn[data-tab="test"].active {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.nav-tab-btn[data-tab="test"]::before {
    content: "🧪";
    margin-right: 8px;
    font-size: 1.1em;
}

/* Responsive Design for Navigation Tabs */
@media (max-width: 768px) {
    .api-test-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .api-navigation-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-tab-btn {
        flex: 1;
        min-width: 140px;
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .api-navigation-tabs {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-tab-btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
    }
}