/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    font-size: 15px;
}

/* Layout */
.container-fluid {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    min-height: 100vh;
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    text-align: center;
    margin-bottom: 0.5rem;
}

.lead {
    font-size: 1rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 1.25rem;
    font-weight: 400;
}

h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.875rem;
}

/* Info Banner */
.info-banner {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-banner p {
    margin-bottom: 0.375rem;
    font-size: 0.9rem;
}

.info-banner p:last-child {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Cards & Sections */
.main-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.section {
    margin-bottom: 1.5rem;
}

/* Alert */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    margin-bottom: 1.25rem;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-warning .alert-heading {
    color: #78350f;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.alert ul {
    margin: 0.5rem 0 0 1rem;
}

.alert li {
    margin-bottom: 0.25rem;
}

/* New Form Layout */
.form-layout {
    margin-bottom: 1.5rem;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

/* Hosting Inputs Section */
.hosting-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hosting-input-group {
    display: flex;
    flex-direction: column;
}

.input-section {
    display: flex;
    flex-direction: column;
}

.notice-section {
    display: flex;
    align-items: flex-start;
}

.notice-section.full-width {
    grid-column: 1 / -1; /* 전체 너비 차지 */
}

.notice-box {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    width: 100%;
}

.notice-box p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.notice-box p:last-child {
    margin-bottom: 0;
}

.notice-box strong {
    color: #1f2937;
    font-weight: 600;
}

.notice-box a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.notice-box a:hover {
    text-decoration: underline;
}

.small-text {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
}

.text-red {
    color: #dc2626 !important;
    font-weight: 600;
}

.text-green {
    color: #059669 !important;
    font-weight: 600;
}

.text-muted {
    color: #6b7280;
}

/* Reference Content Styles */
.reference-content {
    margin-top: 1rem;
}

.reference-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.reference-item:last-child {
    margin-bottom: 0;
}

.reference-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.reference-item p {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* Contact Info */
.contact-info {
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem 0;
}

.contact-info p {
    color: #6b7280;
    font-size: 0.7rem;
    margin: 0;
    opacity: 0.8;
}

/* Forms - Legacy (keeping for backward compatibility) */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #374151;
    background-color: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    text-decoration: none;
}

.btn-primary:disabled {
    background-color: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    width: 100%;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Progress */
.progress-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.progress-container {
    width: 100%;
    margin-bottom: 0.875rem;
}

.progress {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.875rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.status-text {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.progress-percent {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.875rem;
}

/* Results */
.result-success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
}

.result-success .result-title {
    color: #059669;
}

.result-error .result-title {
    color: #dc2626;
}

.result-url {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3b82f6;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.15s ease;
}

.result-url:hover {
    background: #2563eb;
    color: white;
    text-decoration: none;
}

/* Notice Lists */
.notice-list {
    list-style: none;
    margin: 0.875rem 0;
}

.notice-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list strong {
    color: #1f2937;
    font-weight: 600;
}

/* Manual Lists */
.manual-list {
    list-style: none;
    margin: 1.25rem 0;
}

.manual-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.manual-list li:last-child {
    border-bottom: none;
}

.manual-list i {
    color: #3b82f6;
    font-size: 1.125rem;
    margin-top: 0.125rem;
}

.manual-list a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.manual-list a:hover {
    text-decoration: underline;
}

/* Feature Grids */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.feature-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
}

.feature-item.important {
    border-color: #3b82f6;
    background: #eff6ff;
}

.feature-item strong {
    display: block;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-item.important strong {
    color: #1d4ed8;
}

.feature-item p {
    color: #6b7280;
    font-size: 0.8rem;
}

.feature-item.important p {
    color: #1e40af;
}

/* Manual Links */
.manual-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.875rem;
    margin: 1.25rem 0;
}

.manual-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}

.manual-link:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
}

.manual-link i {
    font-size: 1.25rem;
    color: #3b82f6;
    min-width: 20px;
}

.manual-link div {
    flex: 1;
}

.manual-link strong {
    display: block;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.manual-link p {
    color: #6b7280;
    font-size: 0.8rem;
    margin: 0;
}

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Icons */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.5rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.hidden {
    display: none !important;
}

.block {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        max-width: 100%;
        padding: 1rem;
    }

    .main-card {
        padding: 1.25rem;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hosting-inputs {
        gap: 0.75rem;
    }

    .notice-box {
        padding: 1rem;
    }

    .notice-box p {
        font-size: 0.85rem;
    }

    .reference-item {
        padding: 0.875rem;
    }

    .reference-item h4 {
        font-size: 0.9rem;
    }

    .reference-item p {
        font-size: 0.8rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .manual-link {
        padding: 0.875rem;
    }

    .manual-link i {
        font-size: 1.125rem;
    }

    .support-links {
        flex-direction: column;
        gap: 0.625rem;
    }

    .support-link {
        width: 100%;
        text-align: center;
    }

    .faq-question {
        font-size: 0.85rem;
        padding: 0.875rem;
    }

    .faq-answer {
        font-size: 0.8rem;
        padding: 0.875rem;
    }

    .faq-item.active .faq-answer {
        padding-top: 0;
    }

    .notice-simple {
        padding: 0.875rem;
    }

    .notice-simple p {
        font-size: 0.8rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 0.9rem;
    }
}

/* Focus States */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: #3b82f6;
    color: white;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Celebration Animation */
.celebration {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Notice Simple (Legacy) */
.notice-simple {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.notice-simple p {
    margin-bottom: 0.625rem;
    color: #1e40af;
    font-weight: 500;
}

.notice-content {
    margin-top: 0.875rem;
}

.text-red {
    color: #dc2626 !important;
}

/* Domain Signup Link (Legacy) */
.domain-signup-link {
    margin-left: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.domain-signup-link:hover {
    text-decoration: underline;
}

/* FAQ Styles */
.faq-container {
    margin-top: 1.25rem;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem;
    background: #f9fafb;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    user-select: none;
    font-size: 0.875rem;
}

.faq-question:hover {
    background: #f3f4f6;
}

.faq-question i {
    transition: transform 0.2s ease;
    color: #6b7280;
    font-size: 0.8rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.825rem;
}

.faq-item.active .faq-answer {
    padding: 1rem;
    max-height: 500px;
}

.faq-answer strong {
    color: #374151;
    font-weight: 600;
}

/* Support Links (Legacy) */
.support-links {
    display: flex;
    gap: 0.875rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease;
    font-size: 0.85rem;
}

.support-link:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
    text-decoration: none;
    transform: translateY(-1px);
}

.support-link i {
    color: #3b82f6;
    font-size: 1rem;
}

/* Crawling Animations */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateZ(360deg);
        opacity: 0;
    }
}

.crawling-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.875rem;
    font-size: 0.825rem;
    color: #6b7280;
}

.crawling-indicator {
    width: 14px;
    height: 14px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: crawling-spin 1s linear infinite;
}

.crawling-indicator::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid transparent;
    border-top: 2px solid #1d4ed8;
    border-radius: 50%;
    animation: crawling-spin 0.5s linear infinite reverse;
}

@keyframes crawling-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Page List */
.page-list {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.875rem;
    margin-top: 0.875rem;
    max-height: 180px;
    overflow-y: auto;
    font-size: 0.8rem;
    color: #6b7280;
}

.page-list-item {
    padding: 0.2rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.page-list-item:last-child {
    border-bottom: none;
}

/* Dots Animation */
.dots-animation::after {
    content: '...';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { color: transparent; text-shadow: .25em 0 0 transparent, .5em 0 0 transparent; }
    40% { color: #6b7280; text-shadow: .25em 0 0 transparent, .5em 0 0 transparent; }
    60% { text-shadow: .25em 0 0 #6b7280, .5em 0 0 transparent; }
    80%, 100% { text-shadow: .25em 0 0 #6b7280, .5em 0 0 #6b7280; }
}

/* Progress Bar Animation */
.progress-bar {
    transition: width 0.5s ease-in-out;
} 