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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
}

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

.wiki-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wiki-header h1 {
    font-size: 3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

.creator-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.creator-section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #1a1a1a;
    font-weight: 600;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.input-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.input-group select:focus {
    outline: none;
    border-color: #0066cc;
}

.input-group textarea {
    height: 120px;
    resize: vertical;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    font-weight: 500 !important;
    color: #333 !important;
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin-right: 12px;
    transform: scale(1.2);
    cursor: pointer;
}

.checkbox-description {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

.generate-button {
    background: #0066cc;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.generate-button:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

.generate-button:active {
    transform: translateY(0);
}

.hidden {
    display: none;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wiki-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.wiki-nav {
    background: #f8f9fa;
    padding: 12px 30px;
    border-bottom: 1px solid #e1e5e9;
    font-size: 0.9rem;
    color: #666;
}

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

.wiki-article {
    padding: 40px;
}

.wiki-article h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
    border-bottom: 3px solid #0066cc;
    padding-bottom: 10px;
}

.wiki-info-box {
    float: right;
    width: 300px;
    margin: 0 0 20px 30px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
}

.info-box-content {
    padding: 20px;
}

.info-box-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.info-box-content p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.info-box-content strong {
    font-weight: 500;
    color: #333;
}

.wiki-body {
    font-size: 1rem;
    line-height: 1.7;
}

.wiki-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    color: #1a1a1a;
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 8px;
}

.wiki-body h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 30px 0 15px 0;
    color: #333;
}

.wiki-body p {
    margin-bottom: 16px;
    text-align: justify;
}

.wiki-body ul {
    margin: 16px 0 16px 30px;
}

.wiki-body li {
    margin-bottom: 8px;
}

.wiki-body blockquote {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    font-style: italic;
    color: #555;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .wiki-header h1 {
        font-size: 2.2rem;
    }
    
    .creator-section {
        padding: 25px;
    }
    
    .wiki-article {
        padding: 25px;
    }
    
    .wiki-info-box {
        float: none;
        width: 100%;
        margin: 0 0 25px 0;
    }
    
    .wiki-article h1 {
        font-size: 2rem;
    }
}