/*
=================================================================
FILE: developer_portal.css
ROUTE: /static/css/developer_portal.css
DESCRIPTION: Specific styling for developer portal pages
CHANGELOG:
2025-01-19: v1.0 Initial Creation
2025-01-20: v1.1 Typography and Layout Refinements
- Adjusted card typography and spacing
- Refined heading sizes across sections
- Fixed scroll behavior and margins
- Improved responsive text scaling
=================================================================
*/

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Developer Portal Container */
.dev-portal-container {
    width: 80vw;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Heading Styles */
.dev-portal-container h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.dev-portal-container .anchor-section h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dev-portal-container .anchor-section h2 a {
    font-size: 0.8rem;
    color: #666;
    text-decoration: none;
}

.dev-portal-container h3 {
    font-size: 1.25rem;
    color: #333;
    margin: 1rem 0;
}

/* Card Section Modifications */
.dev-portal-container .card-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0 40px;
    justify-content: center;
}

.dev-portal-container .card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 0 1 300px;
    min-width: 280px;
    max-width: 300px;
    padding: 1.25rem;
    text-align: center;
    transition: box-shadow 0.2s;
}

.dev-portal-container .card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dev-portal-container .card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.dev-portal-container .card p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
    margin-bottom: 1rem;
}

.dev-portal-container .card a {
    font-size: 0.9rem;
    color: #0066cc;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s;
}

.dev-portal-container .card a:hover {
    color: #004c99;
}

/* Anchor Section Styles */
.anchor-section {
    scroll-margin-top: 80px;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.anchor-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1rem;
}

.anchor-section h2 a {
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    margin-left: 1rem;
}

/* Table Styles */
.dev-portal-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.dev-portal-container th,
.dev-portal-container td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

.dev-portal-container th {
    background-color: #f5f5f5;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .dev-portal-container {
        width: 90vw;
    }
}

@media (max-width: 768px) {
    .dev-portal-container {
        width: 95vw;
        padding: 15px;
    }
    
    .dev-portal-container h1 {
        font-size: 1.75rem;
    }
    
    .dev-portal-container h2 {
        font-size: 1.35rem;
    }
    
    .dev-portal-container h3 {
        font-size: 1.15rem;
    }
    
    .anchor-section {
        scroll-margin-top: 60px;
    }
}
