/* Topic Page Styles */

.topic-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

/* Breadcrumb Navigation */
.topic-breadcrumb, .breadcrumb {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 80px auto 20px auto; 
    max-width: 1160px; /* 1200px - 40px padding */
    width: calc(100% - 40px);
    padding: 10px 16px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border: 1px solid var(--border-color, rgba(255,255,255,0.05));
    display: flex;
    align-items: center;
    gap: 8px;
}

.topic-breadcrumb a, .breadcrumb a {
    color: var(--neon-cyan, #00f0ff);
    text-decoration: none;
    transition: all 0.2s;
}

.topic-breadcrumb a:hover, .breadcrumb a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.topic-breadcrumb span, .breadcrumb span {
    color: #fff;
    opacity: 0.8;
}

/* Bottom Nav Buttons */
.topic-bottom-nav,
.topic-nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.topic-btn,
.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace; /* Redesigned tech font */
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    min-width: 120px;
}

.topic-btn:hover,
.btn-nav:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.topic-btn.prev-btn:hover,
.btn-nav.btn-prev:hover {
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.3);
}

.topic-btn.next-btn,
.btn-nav.btn-next {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
    color: #00f0ff;
}

.topic-btn.next-btn:hover,
.btn-nav.btn-next:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: #00f0ff;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}

/* Content Container Margin */
.topic-content {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between cards */
}

/* Module Landing Grid */
.pp-landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.pp-topic-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.pp-topic-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.pp-topic-card:hover {
    transform: translateY(-5px);
    background: rgba(0,0,0,0.5);
    border-color: var(--neon-cyan, rgba(0,245,255,0.4));
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 15px rgba(0,245,255,0.1);
}

.pp-topic-card:hover::before {
    opacity: 1;
}

.pp-topic-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
    transition: transform 0.3s;
}

.pp-topic-card:hover .pp-topic-icon {
    transform: scale(1.1);
}

.pp-topic-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.pp-topic-info p {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 600px) {
    .topic-bottom-nav,
    .topic-nav-footer {
        flex-direction: column;
        gap: 15px;
    }
    .topic-btn,
    .btn-nav {
        width: 100%;
    }
}
