:root {
    --primary-color: #0070d2;
    --text-color: #16325c;
    --background-color: #ffffff;
    --border-color: #d8dde6;
    --error-color: #c23934;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 500;
}

.container {
    width: 100%;
    max-width: 600px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    text-align: center;
}

.main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

input {
    width: 100%;
    max-width: 600px;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.2s ease;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: var(--font-family);
    font-weight: 500;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

input::placeholder {
    color: #999;
    font-weight: 400;
}

#result {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.01em;
    margin-top: 2rem;
    word-break: break-word;
    min-height: 2.5em;
}

#result .api-name {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
    font-weight: 500;
}

.error {
    color: var(--error-color);
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.label {
    color: #000000;
    font-size: 1.2em;
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.api-name {
    color: #666666;
    font-size: 0.9em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
        max-width: 100vw;
        min-width: 0;
    }
    
    input {
        font-size: 1rem;
        top: 1rem;
        left: 1rem;
        right: 1rem;
        min-width: 0;
        width: calc(100% - 2rem);
        box-sizing: border-box;
    }
    
    #result {
        top: 100px;
        left: 1rem;
        right: 1rem;
        font-size: 1.7rem;
        word-break: break-word;
        margin-top: 1.2rem;
    }
    .label {
        font-size: 1.15em;
    }
    .api-name {
        font-size: 1em;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0.5rem;
    }
    input {
        font-size: 0.95rem;
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        width: calc(100% - 1rem);
    }
    #result {
        top: 80px;
        left: 0.5rem;
        right: 0.5rem;
        font-size: 1.3rem;
        margin-top: 1.2rem;
    }
    .label {
        font-size: 1.05em;
    }
    .api-name {
        font-size: 0.9em;
    }
}

.site-footer {
    width: 100%;
    margin-top: 2rem;
    padding: 1.2rem 0 0.7rem 0;
    background: none;
    text-align: center;
    font-size: 0.95rem;
    color: #888;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.site-footer a {
    color: #0070d2;
    text-decoration: underline;
    font-weight: 500;
}

.site-footer .footer-lead {
    font-size: 1em;
    margin-bottom: 2.5em;
    color: #444;
}

.site-footer .footer-sources,
.site-footer .footer-credits {
    margin-bottom: 0.2em;
    color: #888;
}

.site-footer small {
    font-size: 0.92em;
}

@media (max-width: 768px) {
    .site-footer {
        font-size: 0.9rem;
        padding: 0.8rem 0 0.5rem 0;
    }
    .site-footer .footer-lead {
        font-size: 0.98em;
    }
}

.page-title {
    font-size: 2.2rem;
    color: #888;
    font-weight: 500;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

@media (max-width: 600px) {
    .page-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
} 