/* R00T SHELL - Frontend Styles */
/* File: style.css */
/* Location: /assets/css/ */

:root {
    --primary-glow: #00ff88;
    --secondary-glow: #00d4ff;
    --dark-bg: #0a0e1a;
    --card-bg: #12171f;
    --border-glow: rgba(0, 255, 136, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 100%);
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: rgba(18, 23, 31, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-glow);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.btn-theme {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    border: 1px solid var(--primary-glow);
    color: var(--primary-glow);
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    cursor: pointer;
}

.btn-theme:hover {
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    color: #0a0e1a;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

/* Navigation */
.nav-container {
    background: rgba(18, 23, 31, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glow);
    padding: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: #b0b0b0;
    text-decoration: none;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
    transition: width 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-glow);
    background: rgba(0, 255, 136, 0.05);
}

.nav-menu li a:hover::before,
.nav-menu li a.active::before {
    width: 100%;
}

/* Breadcrumb */
.breadcrumb-nav {
    background: rgba(18, 23, 31, 0.5);
    border-radius: 12px;
    padding: 1rem;
    margin: 2rem 0;
    border: 1px solid var(--border-glow);
}

.breadcrumb-nav a {
    color: var(--primary-glow);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--secondary-glow);
    text-shadow: 0 0 10px var(--secondary-glow);
}

.breadcrumb-nav span {
    color: #777;
    margin: 0 10px;
}

/* Search */
.search-form {
    margin: 2rem 0;
}

.search-bar input {
    background: rgba(18, 23, 31, 0.8);
    border: 2px solid var(--border-glow);
    color: #e0e0e0;
    padding: 15px 20px;
    border-radius: 12px;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-glow);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    background: rgba(18, 23, 31, 0.95);
}

.search-bar input::placeholder {
    color: #666;
}

/* Page Title */
.h1head {
    font-size: 2.5rem;
    text-align: center;
    margin: 2rem 0;
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-shadow: 0 0 40px rgba(0, 255, 136, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Exploit Cards */
.exploit-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.exploit-item {
    background: linear-gradient(135deg, rgba(18, 23, 31, 0.9), rgba(18, 23, 31, 0.7));
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.exploit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.exploit-item:hover::before {
    left: 100%;
}

.exploit-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-glow);
    box-shadow: 
        0 10px 40px rgba(0, 255, 136, 0.2),
        0 0 0 1px var(--primary-glow) inset;
}

.exploit-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-glow);
    transition: all 0.3s ease;
}

.exploit-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.exploit-info h3 {
    color: var(--primary-glow);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.exploit-info h3 a {
    color: var(--primary-glow);
    text-decoration: none;
    transition: all 0.3s ease;
}

.exploit-info h3 a:hover {
    color: var(--secondary-glow);
    text-shadow: 0 0 10px var(--secondary-glow);
}

.exploit-info p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.exploit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem;
}

.exploit-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.exploit-meta i {
    color: var(--primary-glow);
}

.exploit-meta a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s ease;
}

.exploit-meta a:hover {
    color: var(--primary-glow);
}

.download-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    border: none;
    border-radius: 10px;
    color: #0a0e1a;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.5);
    filter: brightness(1.2);
}

.download-btn a {
    color: #0a0e1a;
    text-decoration: none;
    display: block;
}

/* Post Detail */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin: 2rem 0;
}

.post-content {
    background: linear-gradient(135deg, rgba(18, 23, 31, 0.95), rgba(18, 23, 31, 0.85));
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-glow);
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    border: 1px solid var(--primary-glow);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--primary-glow);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: var(--primary-glow);
    color: #0a0e1a;
    box-shadow: 0 0 20px var(--primary-glow);
}

.post-title {
    font-size: 2.5rem;
    color: var(--primary-glow);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: #888;
    font-size: 0.95rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta i {
    color: var(--primary-glow);
}

.featured-image {
    width: 100%;
    border-radius: 12px;
    margin: 2rem 0;
    border: 2px solid var(--border-glow);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
}

.post-body h2 {
    color: var(--primary-glow);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.post-body p {
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.post-body ul {
    color: #b0b0b0;
    line-height: 2;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-body ul li::marker {
    color: var(--primary-glow);
}

/* Sidebar */
.sidebar-widget {
    background: linear-gradient(135deg, rgba(18, 23, 31, 0.95), rgba(18, 23, 31, 0.85));
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget-title {
    color: var(--primary-glow);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glow);
}

.file-info {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 8px;
}

.info-label {
    color: #888;
}

.info-value {
    color: var(--primary-glow);
    font-weight: 600;
}

.related-post {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.03);
    border-radius: 8px;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-post:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateX(5px);
}

.related-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.related-post-info h4 {
    color: var(--primary-glow);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.related-post-info p {
    color: #777;
    font-size: 0.8rem;
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    background: rgba(18, 23, 31, 0.8);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    color: var(--primary-glow);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .current {
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    color: #0a0e1a;
}

.pagination a:hover {
    background: var(--primary-glow);
    color: #0a0e1a;
    transform: translateY(-2px);
}

/* Categories */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.category-card {
    background: linear-gradient(135deg, rgba(18, 23, 31, 0.9), rgba(18, 23, 31, 0.7));
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-glow);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.3);
}

.category-card h2 {
    color: var(--primary-glow);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.category-card p {
    color: #b0b0b0;
    line-height: 1.7;
}

/* Footer */
footer {
    background: rgba(18, 23, 31, 0.95);
    border-top: 2px solid var(--border-glow);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    color: var(--primary-glow);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-glow);
    color: #0a0e1a;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glow);
    color: #777;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .h1head {
        font-size: 1.8rem;
    }
    .exploit-list {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-glow), var(--secondary-glow));
    border-radius: 5px;
}