/**
 * FILE: /var/www/html/assets/css/knowledgebase.css
 * DESCRIPTION: Styles for knowledge base page
 * Extracted from inline styles for better performance and caching
 */

/* Login Button */
.login-btn {
    background: linear-gradient(135deg, #00ffff, #0099cc) !important;
    color: #000 !important;
    padding: 4px 10px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3) !important;
    display: inline-block !important;
    border: none !important;
    cursor: pointer !important;
    margin-left: 10px;
}
.login-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4) !important;
}

/* Logo */
.logo-link { display: flex; align-items: center; text-decoration: none; transition: transform 0.3s ease, opacity 0.3s ease; }
.logo-link:hover { transform: scale(1.05); opacity: 0.9; }
.logo-image { height: 70px; width: auto; display: block; }

/* Navigation */
.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-item { position: relative; }
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; display: flex; align-items: center; gap: 5px; }
.dropdown-toggle::after { content: '▼'; font-size: 0.7em; transition: transform 0.3s ease; }
.dropdown:hover .dropdown-toggle::after { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; background: linear-gradient(135deg, rgba(0, 20, 40, 0.98), rgba(0, 30, 60, 0.98));
    border: 1px solid rgba(0, 255, 255, 0.3); border-radius: 10px; padding: 10px 0; min-width: 200px;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2); z-index: 1000;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
    display: block; padding: 12px 20px; color: #ffffff; text-decoration: none; transition: all 0.3s ease;
    border-left: 3px solid transparent;
}
.dropdown-menu a:hover { background: rgba(0, 255, 255, 0.1); border-left-color: #00ffff; color: #00ffff; padding-left: 25px; }

/* KB Search */
.kb-search-container {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    padding: 0 20px;
}
#kbSearch {
    width: 100%;
    padding: 15px 20px;
    border-radius: 25px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
}
#kbSearch::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
#kbSearch:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

/* Category Tags */
.categories-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.category-tag {
    padding: 10px 20px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 25px;
    color: #00ffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    cursor: pointer;
}
.category-tag:hover, .category-tag.active {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

/* KB Grid */
.kb-grid {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.kb-category {
    margin-bottom: 60px;
}
.kb-category h3 {
    color: #00ffff;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    opacity: 0.9;
}

/* Guide Cards */
.guide-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}
.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}
.guide-card h4 {
    color: #00ffff;
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.guide-card p {
    opacity: 0.8;
    margin-bottom: 15px;
}

/* Expand Button */
.expand-btn {
    background: linear-gradient(135deg, #00ffff, #0099cc);
    color: #000;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}
.expand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

/* Guide Details */
.guide-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    opacity: 0;
}
.guide-card.expanded .guide-details {
    max-height: 1000px;
    opacity: 1;
    margin-top: 20px;
}
.guide-details ol {
    padding-left: 20px;
    opacity: 0.9;
    margin: 10px 0;
}
.guide-details ol li {
    margin-bottom: 8px;
}
.guide-details code {
    background: rgba(0, 255, 255, 0.1);
    padding: 3px 6px;
    border-radius: 4px;
    color: #00ffff;
    font-family: monospace;
    font-size: 0.9rem;
}
.guide-details pre code {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* Support CTA */
.support-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.support-cta p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* Legal Modal */
.legal-modal { position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); }
.legal-modal-content {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.95), rgba(0, 30, 60, 0.95)); margin: 2% auto; padding: 0;
    border: 1px solid rgba(0, 255, 255, 0.3); border-radius: 20px; width: 90%; max-width: 900px; max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3); position: relative; overflow: hidden;
}
.legal-modal-header {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(0, 128, 255, 0.1)); border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding: 20px 30px; display: flex; justify-content: space-between; align-items: center;
}
.legal-modal-header h2 { color: #00ffff; margin: 0; font-size: 1.8rem; font-weight: 600; }
.legal-close { color: #ffffff; font-size: 2rem; font-weight: bold; cursor: pointer; padding: 0 10px; transition: all 0.3s ease; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.legal-close:hover { color: #ff6b6b; background: rgba(255, 107, 107, 0.1); transform: rotate(90deg); }
.legal-modal-body { padding: 30px; max-height: calc(90vh - 100px); overflow-y: auto; color: #ffffff; line-height: 1.6; }
.legal-modal-body::-webkit-scrollbar { width: 8px; }
.legal-modal-body::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); border-radius: 4px; }
.legal-modal-body::-webkit-scrollbar-thumb { background: rgba(0, 255, 255, 0.5); border-radius: 4px; }
.legal-modal-body::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 255, 0.7); }
.loading-spinner { text-align: center; padding: 40px; color: #00ffff; font-size: 1.1rem; }

/* Responsive */
@media (max-width: 768px) {
    .login-btn { padding: 5px 12px !important; font-size: 0.9rem !important; margin-left: 5px; }
    .nav-links { gap: 15px; }
    .logo-image { height: 55px; }
    .categories-grid { gap: 8px; justify-content: center; }
    .category-tag { padding: 8px 16px; font-size: 0.9rem; }
    .kb-grid { padding: 0 10px; }
    .kb-category h3 { font-size: 1.5rem; }
    .guide-card { padding: 20px; }
    .kb-search-container { padding: 0 10px; }
    .legal-modal-content { width: 95%; margin: 5% auto; max-height: 85vh; }
    .legal-modal-header { padding: 15px 20px; }
    .legal-modal-header h2 { font-size: 1.5rem; }
    .legal-modal-body { padding: 20px; max-height: calc(85vh - 80px); }
}
@media (max-width: 480px) {
    .logo-image { height: 45px; }
}
