/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .endpoints-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .endpoints-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .endpoint-card {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .endpoint-path {
        font-size: 14px;
        padding: 8px;
        width: 100%;
        max-width: 100%;  /* Remove the space reservation for copy button on mobile */
    }
    
    .endpoint-path-text {
        font-size: 14px;
    }

    .endpoint-copy-btn {
        right: 16px;  /* Match mobile padding */
        top: 16px;  /* Position at top-right on mobile */
        transform: none;  /* Remove vertical centering on mobile */
    }

    .endpoint-copy-btn:hover {
        transform: scale(1.1);  /* Only scale on hover for mobile */
    }

    .endpoint-copy-btn:active {
        transform: scale(0.95);  /* Only scale on active for mobile */
    }

    .method-badge {
        align-self: flex-start;
        font-size: 10px;
        padding: 4px 10px;
        min-width: 52px;
    }
}

@media (max-width: 480px) {
    .endpoint-card {
        padding: 12px 16px;
    }

    .endpoint-path {
        font-size: 13px;
        padding: 8px 12px;
        width: 100%;
        max-width: 100%;  /* Remove the space reservation for copy button on mobile */
    }
    
    .endpoint-path-text {
        font-size: 13px;
    }

    .endpoint-copy-btn {
        right: 16px;  /* Match mobile padding */
        top: 12px;  /* Match mobile padding */
    }

    .method-badge {
        font-size: 9px;
        padding: 4px 8px;
        min-width: 48px;
        letter-spacing: 0.2px;
    }
}

/* Responsive design improvements  */
@media screen and (max-width: 768px) {
    .field-grid, .method-grid {
        grid-template-columns: 1fr;
    }

    .endpoint-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .endpoint-path {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Responsive adjustments for model cards  */
@media screen and (max-width: 768px) {
    .model-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .model-card {
        padding: 1rem;
    }

    .model-header h3 {
        font-size: 1.1rem;
    }

    .model-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

@media screen and (max-width: 480px) {
    .model-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .model-badge {
        align-self: flex-start;
    }
}
