/* Wikipedia-style CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
    line-height: 1.6;
    color: #000;
    background-color: #f6f6f6;
    font-size: 14px;
}

.wikipedia-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Header */
.wikipedia-header {
    background: #f8f9fa;
    border-bottom: 1px solid #a2a9b1;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-link {
    text-decoration: none;
    color: #000;
}

.logo-img {
    height: 100px;
    width: auto;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

.search-btn {
    padding: 8px 16px;
    background: #000;
    color: white;
    border: 1px solid #000;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
}

.search-btn:hover {
    background: #333;
    border-color: #333;
}

/* Main Content */
.main-content {
    padding: 0;
}

.content-wrapper {
    position: relative;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
}

.article-content {
    flex: 1;
    padding: 20px;
    line-height: 1.6;
    max-width: none;
    margin: 0;
}

/* Article Styling */
.article-content h1 {
    font-size: 1.8em;
    font-weight: normal;
    margin-bottom: 0.25em;
    padding-bottom: 0.25em;
    border-bottom: 1px solid #a2a9b1;
    font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
}

.article-content h2 {
    font-size: 1.3em;
    margin: 0.5em 0 0.25em 0;
    padding-bottom: 0.1em;
    border-bottom: 1px solid #a2a9b1;
    font-weight: bold;
    font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
}

.article-content h3 {
    font-size: 1.1em;
    margin: 0.5em 0 0.25em 0;
    font-weight: bold;
    font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
}

.article-content p {
    margin: 0.5em 0;
    text-align: justify;
    font-size: 14px;
    line-height: 1.6;
}

.article-content ul, .article-content ol {
    margin: 0.5em 0;
    padding-left: 2em;
}

.article-content li {
    margin: 0.25em 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Wikipedia Sidebar */
.wikipedia-sidebar {
    width: 300px;
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    margin: 20px;
    padding: 15px;
    float: right;
    clear: right;
    font-size: 12px;
    line-height: 1.4;
}

.sidebar-content h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 5px;
}

.sidebar-image {
    text-align: center;
    margin-bottom: 10px;
}

.sidebar-image img {
    border: 1px solid #a2a9b1;
    border-radius: 4px;
}

.sidebar-info p {
    margin: 5px 0;
    font-size: 12px;
    line-height: 1.4;
}

.sidebar-info strong {
    font-weight: bold;
}

/* Gift Button */
.gift-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.gift-button {
    background: #000;
    color: white;
    border: 1px solid #000;
    padding: 12px 20px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gift-button:hover {
    background: #333;
    border-color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.gift-button:active {
    background: #666;
    border-color: #666;
}

/* Navigation */
.navigation {
    background: #f8f9fa;
    border-top: 1px solid #a2a9b1;
    padding: 10px 0;
    margin-top: 20px;
}

.nav-links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.nav-link {
    color: #0645ad;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

.nav-link:hover {
    text-decoration: underline;
}

.nav-separator {
    color: #a2a9b1;
    margin: 0 5px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
}

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

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

/* Wikipedia Links */
.wikipedia-link {
    color: #0645ad;
    text-decoration: none;
}

.wikipedia-link:hover {
    text-decoration: underline;
}

.wikipedia-link:visited {
    color: #0b0080;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input {
        width: 150px;
    }
    
    .gift-button-container {
        position: fixed;
        top: 10px;
        right: 10px;
    }
    
    .gift-button {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Success Message */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    color: white;
    padding: 20px 30px;
    border-radius: 3px;
    border: 1px solid #000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 2000;
    text-align: center;
    font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* Wikipedia-themed button styles */
button, .btn, input[type="button"], input[type="submit"] {
    background: #000;
    color: white;
    border: 1px solid #000;
    border-radius: 3px;
    padding: 8px 16px;
    font-size: 14px;
    font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:hover, .btn:hover, input[type="button"]:hover, input[type="submit"]:hover {
    background: #333;
    border-color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

button:active, .btn:active, input[type="button"]:active, input[type="submit"]:active {
    background: #666;
    border-color: #666;
}
