/*
 * Nulled.to / XenForo Inspired Dark Theme
 * Modern, sleek forum design
 */

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

:root {
    /* Modern Dark Theme Colors - Similar to Nulled.to */
    --primary-color: #5d87ff;
    --primary-hover: #4a6ee0;
    --secondary-color: #49beff;
    --accent-color: #7c4dff;

    /* Backgrounds */
    --bg-primary: #0b0e14;
    --bg-secondary: #11151c;
    --bg-tertiary: #16191f;
    --bg-card: #1a1f26;
    --bg-hover: #1e242d;

    /* Text Colors */
    --text-primary: #e3e5e8;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-accent: #5d87ff;

    /* Borders */
    --border-color: #2d3139;
    --border-light: #3a3f47;

    /* Status Colors */
    --success: #13deb9;
    --error: #fa896b;
    --warning: #ffae1f;
    --info: #539bff;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(93, 135, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 77, 255, 0.03) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 6px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-hover);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Banner */
.top-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 0.75rem 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(93, 135, 255, 0.2);
}

/* Navbar */
.navbar {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-brand {
    padding: 1.25rem 0;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 1.5rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.nav-menu > li > a:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
    border-bottom-color: var(--primary-color);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    z-index: 1001;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.dropdown-menu a:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
    padding-left: 1.5rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-info {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-card);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-left: 1rem;
}

/* Mobile Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Main Content */
main.container {
    flex: 1;
    padding: 2rem 20px;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 12px rgba(93, 135, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 135, 255, 0.4);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-light);
}

.btn-success {
    background-color: var(--success);
    color: var(--bg-primary);
}

.btn-danger {
    background-color: var(--error);
    color: white;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 135, 255, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Forum Specific Styles */
.forum-category {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.category-header {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-card));
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon {
    font-size: 1.5rem;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.thread-list {
    list-style: none;
}

.thread-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.15s ease;
}

.thread-item:last-child {
    border-bottom: none;
}

.thread-item:hover {
    background-color: var(--bg-hover);
}

.thread-icon {
    font-size: 1.5rem;
    opacity: 0.7;
}

.thread-content {
    flex: 1;
}

.thread-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.thread-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.thread-title a:hover {
    color: var(--primary-color);
}

.thread-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.thread-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-admin {
    background: linear-gradient(135deg, #fa896b, #ff6b9d);
    color: white;
}

.badge-mod {
    background: linear-gradient(135deg, #13deb9, #06b6d4);
    color: white;
}

.badge-vip {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.badge-new {
    background-color: var(--success);
    color: var(--bg-primary);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInDown 0.3s ease;
}

.alert-success {
    background-color: rgba(19, 222, 185, 0.1);
    border: 1px solid rgba(19, 222, 185, 0.3);
    color: var(--success);
}

.alert-error {
    background-color: rgba(250, 137, 107, 0.1);
    border: 1px solid rgba(250, 137, 107, 0.3);
    color: var(--error);
}

.alert-warning {
    background-color: rgba(255, 174, 31, 0.1);
    border: 1px solid rgba(255, 174, 31, 0.3);
    color: var(--warning);
}

.alert-info {
    background-color: rgba(83, 155, 255, 0.1);
    border: 1px solid rgba(83, 155, 255, 0.3);
    color: var(--info);
}

.close-alert {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.close-alert:hover {
    opacity: 1;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 4.5rem;
    right: 1.5rem;
    z-index: 9999;
    max-width: 400px;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 4.5rem;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: left;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 4.5rem);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu > li > a {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background-color: var(--bg-tertiary);
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .thread-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .user-info {
        margin: 1rem 2rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
