/* MyTokenWallet Common Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    padding: 40px 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #0066cc;
}

p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 10px;
}

.subdomain {
    display: block;
    font-size: 0.9em;
    color: #999;
    margin-top: 30px;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* API Page Styles */

.tagline {
    font-size: 1.2em;
    color: #666;
    margin-top: 10px;
}

.endpoint-section {
    margin: 40px 0;
}

.endpoint-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
}

.endpoint-card h3 {
    color: #0066cc;
    margin-bottom: 10px;
}

.endpoint-details {
    margin-top: 20px;
}

.endpoint-details h4 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.endpoint-details ul {
    margin: 10px 0;
    padding-left: 20px;
}

.endpoint-details li {
    margin: 5px 0;
}

code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

pre {
    background: #2d2d2d;
    color: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 10px 0;
}

pre code {
    background: none;
    padding: 0;
    color: #f8f8f8;
}

.btn-test {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

.btn-test:hover {
    background: #0052a3;
}

.endpoints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.endpoint-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.endpoint-item h3 {
    color: #0066cc;
    margin-bottom: 10px;
    font-size: 1em;
}

.endpoint-item p {
    color: #666;
    font-size: 0.9em;
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
}

.status-live {
    background: #d4edda;
    color: #155724;
}

.status-planned {
    background: #fff3cd;
    color: #856404;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section li {
    padding: 10px;
    margin: 5px 0;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid #0066cc;
}

.resources-section ul {
    list-style: none;
    padding: 0;
}

.resources-section li {
    padding: 10px;
    margin: 5px 0;
}

.resources-section a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.resources-section a:hover {
    text-decoration: underline;
}

/* API Test Section */
.api-test {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 20px;
}

.api-test label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.api-test input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin-bottom: 15px;
}

.api-test button {
    background: #0066cc;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.api-test button:hover {
    background: #0052a3;
}

.result-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    min-height: 50px;
}

.result-box.loading {
    background: #e7f3ff;
    border: 1px solid #90caf9;
    color: #1976d2;
}

.result-box.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.result-box.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.result-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.result-box pre {
    background: #2d2d2d;
    color: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

.result-box .info-card {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    border: 1px solid #c3e6cb;
}

.result-box .info-card p {
    margin: 8px 0;
}

.result-box .info-card a {
    color: #0066cc;
    text-decoration: none;
}

.result-box .info-card a:hover {
    text-decoration: underline;
}
