/**
 * VedAstro API Pages - Shared Styling
 * Used by: API.html, APIBuilder.html, MCPServerApp.html
 * Ensures consistent visual design across all API-related pages
 */

/* Primary Gradient (Purple) */
.api-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Gradient Text Effect */
.api-gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Primary Button with Gradient */
.api-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.api-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Card Hover Effect */
.api-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.api-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Pricing Card Specific */
.api-pricing-card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.api-pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important;
}

/* Code Display Styles */
.api-code-tab {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    font-size: 0.9rem;
}

.api-code-tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.api-code-example {
    background: #2d3748;
    color: #e2e8f0;
    border-radius: 0 0 8px 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.api-code-example.active {
    display: block;
}

/* API Nav Pills */
.api-nav-pill {
    color: #6c757d;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.api-nav-pill:not(.active):hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* Stats/Feature Cards */
.api-stat-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.api-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* Icon Circles */
.api-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 60px;
    height: 60px;
}


/* Responsive Utilities */
@media (max-width: 768px) {
    .api-code-tab {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .api-icon-circle {
        width: 50px;
        height: 50px;
    }
}
