@import url('base.css');
@import url('component.css');
@import url('index.css');
@import url('auth.css');
@import url('forbidden-scp.css');
@import url('profile.css');
@import url('article.css');
@import url('article-create.css');
@import url('friendship.css');
@import url('chat.css');

:root {
    --bg-dark: #0a0c10;
    --bg-card: #12141c;
    --bg-elevated: #1a1d26;
    --border-subtle: #252a35;
    --text-primary: #edf2ff;
    --text-secondary: #9ca3af;
    --accent-purple: #8b5cf6;
    --accent-purple-dark: #6d28d9;
    --accent-cyan: #06b6d4;
    --accent-glow: rgba(139, 92, 246, 0.25);
    --transition-smooth: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 10px;
}

h1, h2, h3, h4, .fw-semibold {
    font-weight: 600;
    letter-spacing: -0.01em;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-purple);
}

.btn-outline-pact {
    border: 1px solid var(--accent-purple);
    background: transparent;
    color: var(--accent-purple);
    border-radius: 40px;
    padding: 0.55rem 1.4rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-pact:hover {
    background: var(--accent-purple);
    color: white;
    box-shadow: 0 0 14px var(--accent-glow);
    border-color: transparent;
}

.btn-solid-pact {
    background: var(--accent-purple);
    border: none;
    color: white;
    border-radius: 40px;
    padding: 0.55rem 1.6rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-solid-pact:hover {
    background: var(--accent-purple-dark);
    transform: scale(0.97);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
    color: white;
}

.navbar-pact {
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 0;
}

.navbar-brand {
    color: var(--text-primary) !important;
}

.navbar-brand:hover {
    color: var(--accent-purple) !important;
}

.nav-link-custom {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 0.6rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link-custom:hover {
    color: var(--accent-purple) !important;
}

.nav-link-custom.active {
    color: var(--accent-purple) !important;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: width 0.25s ease;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 100%;
}

.navbar .btn-outline-pact {
    color: var(--accent-purple);
}

.navbar .btn-outline-pact:hover {
    color: white;
}

.navbar .btn-solid-pact {
    color: white;
}

.navbar-toggler {
    border: 1px solid var(--border-subtle);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.avatar-placeholder {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.footer {
    border-top: 1px solid var(--border-subtle);
    background: #07090e;
}

.text-secondary-custom {
    color: var(--text-secondary);
}

.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.form-control, .input-group-text {
    background-color: var(--bg-card);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.form-control:focus {
    background-color: var(--bg-elevated);
    border-color: var(--accent-purple);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    color: #dc3545;
}

.form-check-input {
    background-color: var(--bg-card);
    border-color: var(--border-subtle);
}

.form-check-input:checked {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.form-check-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25);
}

.alert {
    background-color: var(--bg-elevated);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.alert-info {
    background-color: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    color: #22d3ee;
}

.alert .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.card-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    transition: var(--transition-smooth);
    height: auto;
}

.card-glass:hover {
    border-color: var(--accent-purple);
    transform: translateY(-3px);
    background: var(--bg-elevated);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .btn-outline-pact, .btn-solid-pact {
        padding: 0.45rem 1.2rem;
        font-size: 0.9rem;
    }
    .nav-link-custom {
        margin: 0.5rem 0;
    }
}