/* ============================================
   NOVA KNOWLEDGEBASE PAGE STYLES
   Premium Glassmorphism - SEO Landing Page
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.kb-hero-section {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a0a1a 0%, #151535 40%, #1a1a40 70%, #0d0d25 100%);
    overflow: hidden;
}

.kb-hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, #0f0f23, transparent);
    pointer-events: none;
    z-index: 1;
}

.kb-hero-section .hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.kb-hero-section .floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: kbFloatOrb 12s ease-in-out infinite;
}

.kb-hero-section .orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: -150px;
    right: 10%;
}

.kb-hero-section .orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #10b981, #059669);
    bottom: -100px;
    left: 5%;
    animation-delay: 4s;
}

@keyframes kbFloatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.08);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.kb-hero-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.kb-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(102, 126, 234, 0.18);
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 50px;
    color: #667eea;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 28px;
    backdrop-filter: blur(15px);
}

.kb-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.15;
    letter-spacing: -2px;
}

.kb-hero-desc {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 auto 40px;
    line-height: 1.7;
    max-width: 600px;
}

/* Search Box */
.kb-search-box {
    display: flex;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(25, 25, 55, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.kb-search-box input {
    flex: 1;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 17px;
    outline: none;
}

.kb-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.kb-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
}

.kb-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* ============================================
   MAIN CONTENT SECTION
   ============================================ */
.kb-content-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0f0f23 0%, #1a1a3e 100%);
}

.kb-content-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.kb-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    align-items: start;
}

/* ============================================
   MAIN AREA
   ============================================ */
.kb-main-area {
    min-width: 0;
}

.kb-section-header {
    margin-bottom: 32px;
}

.kb-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kb-section-title svg {
    width: 28px;
    height: 28px;
    stroke: #667eea;
}

/* Categories Grid */
.kb-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.kb-category-card {
    position: relative;
    background: rgba(25, 25, 55, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.kb-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #10b981);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px 20px 0 0;
}

.kb-category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.kb-category-card:hover::before {
    opacity: 1;
}

.kb-category-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kb-category-icon svg {
    width: 28px;
    height: 28px;
    stroke: #00d4ff;
}

.kb-category-icon i {
    font-size: 24px;
    color: #00d4ff;
}

.kb-category-info {
    flex: 1;
    min-width: 0;
}

.kb-category-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
}

.kb-category-info .count {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
}

.kb-category-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 8px 0 0 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Articles List */
.kb-articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kb-article-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(25, 25, 55, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.kb-article-item:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(6px);
}

.kb-article-icon {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kb-article-icon svg {
    width: 20px;
    height: 20px;
    stroke: #667eea;
}

.kb-article-info {
    flex: 1;
    min-width: 0;
}

.kb-article-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kb-article-stats {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.kb-article-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kb-article-stats svg {
    width: 16px;
    height: 16px;
}

/* No Results */
.kb-no-results {
    text-align: center;
    padding: 60px 40px;
    background: rgba(25, 25, 55, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.kb-no-results svg {
    width: 60px;
    height: 60px;
    stroke: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.kb-no-results p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Pagination */
.kb-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.kb-pagination a,
.kb-pagination span {
    padding: 12px 18px;
    background: rgba(25, 25, 55, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.kb-pagination a:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    color: #fff;
}

.kb-pagination .active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
}

/* ============================================
   SIDEBAR
   ============================================ */
.kb-sidebar {
    position: sticky;
    top: 100px;
}

.kb-sidebar-card {
    background: rgba(25, 25, 55, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
}

.kb-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.kb-sidebar-title svg {
    width: 20px;
    height: 20px;
    stroke: #667eea;
}

.kb-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kb-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.kb-sidebar-link:hover {
    background: rgba(102, 126, 234, 0.15);
    color: #fff;
}

.kb-sidebar-link .count {
    background: rgba(102, 126, 234, 0.2);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
}

/* ============================================
   ARTICLE DETAIL PAGE
   ============================================ */
.kb-detail-hero {
    position: relative;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #0a0a1a 0%, #151535 40%, #1a1a40 70%, #0d0d25 100%);
    overflow: hidden;
}

.kb-detail-hero .hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.kb-detail-hero .floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: kbFloatOrb 12s ease-in-out infinite;
}

.kb-detail-hero .orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: -100px;
    right: 15%;
}

.kb-detail-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.kb-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.kb-detail-breadcrumb a,
.kb-detail-breadcrumb span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.kb-detail-breadcrumb a:hover {
    color: #667eea;
}

.kb-detail-breadcrumb svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.4);
}

.kb-detail-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

/* Article Content */
.kb-article-content {
    background: rgba(25, 25, 55, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
}

.kb-article-content h1,
.kb-article-content h2,
.kb-article-content h3,
.kb-article-content h4 {
    color: #fff;
    margin-top: 32px;
    margin-bottom: 16px;
}

.kb-article-content h1:first-child,
.kb-article-content h2:first-child {
    margin-top: 0;
}

.kb-article-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 16px;
}

.kb-article-content ul,
.kb-article-content ol {
    color: rgba(255, 255, 255, 0.85);
    padding-left: 24px;
    margin-bottom: 16px;
}

.kb-article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.kb-article-content a {
    color: #00d4ff;
    text-decoration: none;
}

.kb-article-content a:hover {
    text-decoration: underline;
}

.kb-article-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    color: #10b981;
}

.kb-article-content pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
}

.kb-article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

/* Voting Section */
.kb-voting-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding: 28px 32px;
    background: rgba(25, 25, 55, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 32px;
}

.kb-voting-question {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.kb-voting-buttons {
    display: flex;
    gap: 12px;
}

.kb-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.kb-vote-btn.useful {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.kb-vote-btn.useful:hover {
    background: rgba(16, 185, 129, 0.25);
}

.kb-vote-btn.useless {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.kb-vote-btn.useless:hover {
    background: rgba(239, 68, 68, 0.25);
}

.kb-vote-btn svg {
    width: 20px;
    height: 20px;
}

.kb-voting-stats {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.kb-vote-success {
    text-align: center;
    padding: 20px;
}

.kb-vote-success.useful {
    color: #10b981;
}

.kb-vote-success.useless {
    color: #ef4444;
}

/* Ticket CTA */
.kb-ticket-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 24px;
    margin-bottom: 32px;
}

.kb-ticket-cta h4 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
}

.kb-ticket-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px 0;
}

.kb-ticket-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.kb-ticket-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    color: #fff;
}

.kb-ticket-btn svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .kb-content-grid {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .kb-hero-title {
        font-size: 38px;
    }

    .kb-content-grid {
        grid-template-columns: 1fr;
    }

    .kb-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }

    .kb-sidebar-card {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .kb-hero-section {
        padding: 80px 0 60px;
    }

    .kb-hero-title {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .kb-hero-desc {
        font-size: 17px;
    }

    .kb-search-box {
        flex-direction: column;
        padding: 8px;
    }

    .kb-search-btn {
        width: 100%;
        justify-content: center;
    }

    .kb-categories-grid {
        grid-template-columns: 1fr;
    }

    .kb-detail-title {
        font-size: 28px;
    }

    .kb-article-content {
        padding: 28px 24px;
    }

    .kb-voting-section {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .kb-hero-section {
        padding: 60px 0 40px;
    }

    .kb-hero-badge {
        padding: 10px 18px;
        font-size: 12px;
    }

    .kb-hero-title {
        font-size: 26px;
    }

    .kb-category-card {
        padding: 20px;
    }

    .kb-article-item {
        padding: 16px;
    }
}