/* 도메인 연령 검사기 전용 스타일 */

:root {
    --color-primary: #3367d6;
    --color-primary-hover: #264caf;
    --color-text: #333;
    --color-border: #ddd;
    --color-bg-light: #eef2f7;
}

/* 헤더 스타일 */
.logo-text {
    display: none;
}

.nav {
    flex: 1;
    justify-content: center;
    margin-left: 3rem;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav a {
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #3367d6 0%, #264caf 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-description {
    font-size: 20px;
    opacity: 0.9;
}

/* About Section */
.about-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 22px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Checker Section */
.checker-section {
    padding: 60px 20px;
    background: white;
}

.checker-box {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.checker-box label {
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    color: var(--color-text);
    font-size: 16px;
}

#domainInput {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

#domainInput:focus {
    border-color: var(--color-primary);
}

#checkBtn {
    width: 100%;
    padding: 16px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#checkBtn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 103, 214, 0.3);
}

#checkBtn:active {
    transform: translateY(0);
}

/* 로딩 스피너 */
.loading {
    margin-top: 30px;
    display: none;
    text-align: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    font-size: 15px;
    color: #666;
}

/* 결과 박스 */
.result-box {
    margin-top: 40px;
    display: none;
}

.result-box h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

#outputArea {
    background: var(--color-bg-light);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.result-item {
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-label {
    color: #666;
    font-size: 15px;
    font-weight: 600;
}

.result-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
}

.result-age {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    margin-top: 20px;
}

.result-age .age-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.result-age .age-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
}

.result-note {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 14px;
    color: #856404;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #d32f2f;
    font-size: 16px;
}

/* 반응형 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .checker-box {
        padding: 24px;
    }

    #domainInput {
        font-size: 15px;
        padding: 14px;
    }

    #checkBtn {
        font-size: 16px;
        padding: 14px;
    }

    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .result-age .age-value {
        font-size: 28px;
    }
}
