/* Wiki Header */
.wiki-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    border: 2px solid #e9ecef;
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.wiki-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    color: #333;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wiki-subtitle {
    margin: 0;
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

/* Wiki Search */
.wiki-search {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #d4d4d4;
    border-radius: 8px;
    font-size: 16px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 
        0 6px 12px rgba(255, 107, 53, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Wiki Categories */
.wiki-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 16px;
    border: 2px solid #d4d4d4;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.category-btn:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.category-btn.active {
    background: linear-gradient(145deg, #ff6b35, #f7931e);
    color: white;
    border-color: #e55a2b;
    box-shadow: 
        0 4px 8px rgba(255, 107, 53, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Wiki Stats */
.wiki-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card h3 {
    margin: 0 0 5px 0;
    font-size: 2rem;
    color: #ff6b35;
    font-weight: 700;
}

.stat-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Wiki Actions */
.wiki-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

#articles-list {
    width: 100%;
}

.article-item {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    color: #333;
    box-shadow:
      0 6px 12px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.article-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow:
      0 12px 24px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 1);
}

.article-item:hover::before {
    opacity: 1;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.article-category {
    background: linear-gradient(145deg, #ff6b35, #f7931e);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-link h2 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    color: #333;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
    line-height: 1.3;
    transition: color 0.2s ease;
}

.article-item:hover .article-link h2 {
    color: #ff6b35;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.article-author, .article-views {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.article-preview {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.article-content {
    line-height: 1.6;
    color: #333;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    border: 2px solid #d4d4d4;
    box-shadow:
      0 6px 12px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#article-content {
    white-space: pre-wrap;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    border: 2px solid #e9ecef;
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

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

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

/* Error and Empty States */
.error-message, .no-articles {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    color: #333;
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.error-icon, .empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.error-message h3, .no-articles h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #ff6b6b;
}

.no-articles h3 {
    color: #ff6b35;
}

.error-message p, .no-articles p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Skeuomorphic Button Styling */
.btn {
    /* Base button styling */
    background: 
        linear-gradient(145deg, #e6e6e6 0%, #d4d4d4 50%, #b8b8b8 100%);
    color: #333;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin: 10px 5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
    
    /* Realistic 3D Skeuomorphic Effects */
    box-shadow: 
        /* Outer shadow for depth */
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2),
        /* Inner highlights for metallic look */
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 2px 2px rgba(255, 255, 255, 0.4),
        /* Inner shadows for depth */
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    
    /* Metallic border effect */
    border: 1px solid #a0a0a0;
    
    /* Text shadow for depth */
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn:hover {
    /* Hover state - lift the button */
    transform: translateY(-2px);
    background: 
        linear-gradient(145deg, #f0f0f0 0%, #e0e0e0 50%, #c8c8c8 100%);
    box-shadow: 
        /* Enhanced outer shadow */
        0 6px 12px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        /* Brighter inner highlights */
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 2px 2px rgba(255, 255, 255, 0.5),
        /* Softer inner shadows */
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.08);
    border-color: #b0b0b0;
}

.btn:active {
    /* Active state - press down effect */
    transform: translateY(1px);
    background: 
        linear-gradient(145deg, #d0d0d0 0%, #c0c0c0 50%, #a8a8a8 100%);
    box-shadow: 
        /* Reduced outer shadow */
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2),
        /* Inset pressed effect */
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(0, 0, 0, 0.1),
        /* Reduced highlights */
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    border-color: #909090;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Specific button variants */
.btn.primary {
    background: 
        linear-gradient(145deg, #f0f0f0 0%, #e0e0e0 50%, #c8c8c8 100%);
    color: #333;
    border-color: #b0b0b0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn.primary:hover {
    background: 
        linear-gradient(145deg, #f8f8f8 0%, #e8e8e8 50%, #d0d0d0 100%);
    border-color: #c0c0c0;
}

.btn.primary:active {
    background: 
        linear-gradient(145deg, #d8d8d8 0%, #c8c8c8 50%, #b0b0b0 100%);
    border-color: #a0a0a0;
}

.btn.success {
    background: 
        linear-gradient(145deg, #6bcf6b 0%, #4CAF50 50%, #45a049 100%);
    color: white;
    border-color: #349034;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.btn.success:hover {
    background: 
        linear-gradient(145deg, #7bdf7b 0%, #5CBF60 50%, #55b059 100%);
    border-color: #44a044;
}

.btn.success:active {
    background: 
        linear-gradient(145deg, #5bbf5b 0%, #45a049 50%, #349034 100%);
    border-color: #248024;
}

/* Article page specific styles */
#article-title {
    color: #333;
    margin-bottom: 10px;
}

#article-meta {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

/* Markdown content styling */
.article-content h1, .article-content h2, .article-content h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content ul, .article-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 5px;
}

.article-content strong {
    color: #667eea;
}

.article-content em {
    color: #764ba2;
}

.article-content hr {
    border: none;
    border-top: 2px solid #ddd;
    margin: 20px 0;
} 