/* wiki.css */

.wiki-hero {
    padding: 8rem 2rem 4rem;
    background: radial-gradient(circle at center, rgba(15, 82, 186, 0.15) 0%, rgba(10, 15, 26, 1) 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wiki-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.wiki-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.wiki-hero p {
    color: #a0aab2;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Search Bar */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-container ion-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #a0aab2;
}

.search-container input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #00d1b2;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 209, 178, 0.2);
}

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aab2;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.chip.active {
    background: #0f52ba;
    color: #fff;
    border-color: #0f52ba;
}

/* Articles Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.results-info {
    margin-bottom: 1.5rem;
    color: #a0aab2;
    font-size: 0.95rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.tag-visa { background: rgba(0, 209, 178, 0.1); color: #00d1b2; }
.tag-reason { background: rgba(255, 60, 60, 0.1); color: #ff3c3c; }

.article-card h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.article-card p {
    color: #a0aab2;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: #0f52ba;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-card:hover .read-more {
    color: #00d1b2;
}

/* Modal */
.wiki-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.wiki-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.wiki-modal-content {
    background: #111824;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.wiki-modal-overlay.active .wiki-modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.2s;
}

.close-modal:hover {
    background: rgba(255, 60, 60, 0.8);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-top: 1rem;
    color: #fff;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h4 {
    color: #00d1b2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.modal-section p {
    color: #ddd;
    line-height: 1.6;
}

.bg-danger { background: rgba(255, 60, 60, 0.05); border-left: 4px solid #ff3c3c; padding: 1rem; border-radius: 0 8px 8px 0; }
.bg-success { background: rgba(0, 209, 178, 0.05); border-left: 4px solid #00d1b2; padding: 1rem; border-radius: 0 8px 8px 0; }
