/* Apple-inspired Modern Black & White Aesthetic */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #000000;
    color: #1d1d1f;
    min-height: 100vh;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

h1 {
    color: #1d1d1f;
    margin-bottom: 8px;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

h2 {
    color: #1d1d1f;
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

h3 {
    color: #1d1d1f;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.subtitle {
    color: #86868b;
    margin-bottom: 32px;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.47059;
}

.input-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #1d1d1f;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.1px;
}

input, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 17px;
    font-family: 'SF Mono', Monaco, 'Menlo', 'Courier New', monospace;
    background: #ffffff;
    color: #1d1d1f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

textarea {
    min-height: 200px;
    resize: vertical;
    font-family: 'SF Mono', Monaco, 'Menlo', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.5;
}

.btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-right: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    display: inline-block;
    letter-spacing: -0.2px;
}

.btn:hover {
    background: #1d1d1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: #86868b;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
}

.btn-secondary:hover {
    background: #e8e8ed;
    border-color: #a1a1a6;
}

.btn-success {
    background: #34c759;
    color: #ffffff;
}

.btn-success:hover {
    background: #30d158;
}

.btn-danger {
    background: #ff3b30;
    color: #ffffff;
}

.btn-danger:hover {
    background: #ff453a;
}

.status {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: none;
    font-size: 15px;
    line-height: 1.47059;
}

.status.success {
    background: #d1f2e8;
    color: #1d4d3e;
    border: 1px solid #b8e6d4;
}

.status.error {
    background: #ffeaea;
    color: #8b1e1e;
    border: 1px solid #ffd6d6;
}

.status.info {
    background: #e8f4fd;
    color: #1e4a6b;
    border: 1px solid #c8e6f5;
}

.token-box {
    background: #f5f5f7;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
}

.token-value {
    font-family: 'SF Mono', Monaco, 'Menlo', 'Courier New', monospace;
    font-size: 14px;
    color: #1d1d1f;
    word-break: break-all;
    margin-bottom: 16px;
    line-height: 1.6;
    user-select: all;
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e8e8ed;
}

.token-value.hidden {
    filter: blur(8px);
    user-select: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.project-card {
    background: #f5f5f7;
    border: 1px solid #e8e8ed;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #d2d2d7;
}

.project-name {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.project-details {
    color: #86868b;
    font-size: 15px;
    margin-top: 12px;
    line-height: 1.47059;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #86868b;
    font-size: 17px;
}

.hidden {
    display: none;
}

/* Copy feedback animation */
.copy-feedback {
    display: none;
    background: #34c759;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    margin-left: 12px;
    font-size: 14px;
    font-weight: 500;
}

.copy-feedback.show {
    display: inline-block;
    animation: fadeOut 2s ease-in-out;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Info boxes */
.info-box {
    background: #f5f5f7;
    border: 1px solid #e8e8ed;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.info-box h4 {
    color: #1d1d1f;
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 600;
}

.info-box ol, .info-box ul {
    margin-left: 24px;
    color: #515154;
    line-height: 1.8;
    font-size: 15px;
}

.info-box code {
    background: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Menlo', 'Courier New', monospace;
    font-size: 13px;
    color: #1d1d1f;
    border: 1px solid #e8e8ed;
}

/* Response container */
.response-container {
    background: #1d1d1f;
    color: #e8e8ed;
    padding: 24px;
    border-radius: 12px;
    margin-top: 24px;
    font-family: 'SF Mono', Monaco, 'Menlo', 'Courier New', monospace;
    font-size: 13px;
    max-height: 600px;
    overflow: auto;
    border: 1px solid #2c2c2e;
}

.response-container pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #e8e8ed;
}

/* Query examples */
.query-examples {
    background: #f5f5f7;
    padding: 20px;
    border-radius: 12px;
    margin-top: 16px;
    border: 1px solid #e8e8ed;
}

.query-examples h4 {
    margin-bottom: 16px;
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 600;
}

.query-example {
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e8e8ed;
}

.query-example:hover {
    background: #f5f5f7;
    border-color: #d2d2d7;
    transform: translateX(4px);
}

.query-example code {
    font-size: 13px;
    line-height: 1.6;
}

/* Token status */
.token-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f5f5f7;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #e8e8ed;
}

.token-status.has-token {
    background: #d1f2e8;
    border-color: #b8e6d4;
}

.token-status strong {
    color: #1d1d1f;
    font-weight: 600;
}

/* Success badge */
.success-badge {
    background: #d1f2e8;
    color: #1d4d3e;
    border: 1px solid #b8e6d4;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.success-badge span:first-child {
    font-size: 24px;
}

/* Info items */
.info-item {
    background: #f5f5f7;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e8e8ed;
}

.info-item strong {
    color: #1d1d1f;
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 15px;
}

.info-item span {
    color: #515154;
    font-size: 15px;
}

/* URL container */
.url-container {
    background: #f5f5f7;
    border: 1px solid #e8e8ed;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.url-display {
    font-family: 'SF Mono', Monaco, 'Menlo', 'Courier New', monospace;
    font-size: 14px;
    color: #1d1d1f;
    word-break: break-all;
    margin-bottom: 16px;
    line-height: 1.6;
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e8e8ed;
}

/* Small text */
small {
    color: #86868b;
    font-size: 13px;
    display: block;
    margin-top: 6px;
    line-height: 1.4;
}

/* Links */
a {
    color: #007aff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }

    .card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

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

    .btn {
        width: 100%;
        margin-right: 0;
    }
}

