/* Greenfield Energy Explorer Public API - Custom Styles */
/* Base styles provided by DNV OneDesign (Bootstrap 4 + DNV branding) */

/* Layout overrides */
main {
    padding: 3rem 0;
}

section {
    margin-bottom: 3rem;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 2rem 0;
}

.hero h2 {
    font-size: 2.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Features grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #00a9ce;
}

/* Buttons - using OneDesign button classes */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Badges - using OneDesign badge classes */
.badge.current {
    background-color: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* API endpoint list */

.endpoint-list {
    list-style: none;
    margin-top: 1rem;
}

.endpoint-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    flex-wrap: wrap;
}

.method {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: white;
}

.method.get {
    background-color: #61affe;
}

.method.post {
    background-color: #49cc90;
}

/* Code/path styling */
.path {
    font-family: "Consolas", "Monaco", monospace;
    background-color: #f4f4f4;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9em;
    flex: 1;
    min-width: 250px;
}

/* Documentation section */
.documentation {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

/* Responsive adjustments */

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .endpoint-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .path {
        min-width: 100%;
    }
}

