/* ========== Smooth Transitions ========== */
html { scroll-behavior: smooth; }
a { transition: color .2s ease, background .2s ease; }
.card { transition: box-shadow .2s ease; }
.card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); }

/* ========== Auth Pages ========== */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    overflow: hidden;
}
.auth-header {
    padding: 32px 32px 24px;
    text-align: center;
    background: linear-gradient(135deg, #ED4040 0%, #ff6b6b 100%);
    color: #fff;
}
.auth-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}
.auth-header p {
    margin: 6px 0 0;
    opacity: .85;
    font-size: 14px;
}
.auth-body {
    padding: 28px 32px 32px;
}
.auth-body .form-control {
    height: 44px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.auth-body .form-control:focus {
    border-color: #ED4040;
    box-shadow: 0 0 0 3px rgba(237,64,64,.1);
}
.auth-body .btn-primary {
    height: 44px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    background: #ED4040;
    border-color: #ED4040;
}
.auth-body .btn-primary:hover {
    background: #d63636;
    border-color: #d63636;
}
.auth-body .nav-tabs {
    border-bottom: 2px solid #f0f0f0;
}
.auth-body .nav-tabs .nav-link {
    border: none;
    color: #999;
    font-weight: 500;
    padding: 8px 20px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.auth-body .nav-tabs .nav-link.active {
    color: #ED4040;
    border-bottom-color: #ED4040;
    background: none;
}

/* ========== Article Detail Improvements ========== */
.article-detail-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.article-detail-card .card-body {
    padding: 24px 28px;
}
.article-content {
    line-height: 1.9;
    font-size: 16px;
    color: #333;
}
.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 1.5em;
    margin-bottom: .8em;
    font-weight: 700;
    color: #111;
}
.article-content a {
    color: #ED4040;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-content a:hover {
    color: #d63636;
}

/* ========== Sidebar Enhancements ========== */
.tt-card {
    border-radius: 8px;
    overflow: hidden;
}
.tt-hot-list a {
    transition: color .15s;
}

/* ========== Empty State ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 12px;
    display: block;
}

/* ========== Loading Skeleton ========== */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* ========== Toast Improvements ========== */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    z-index: 9999;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    opacity: 0;
    transition: all .3s ease;
    pointer-events: none;
}
.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast-notification.success {
    background: #10b981;
    color: #fff;
}
.toast-notification.danger {
    background: #ef4444;
    color: #fff;
}
.toast-notification.warning {
    background: #f59e0b;
    color: #fff;
}

/* ========== Better Mobile ========== */
@media (max-width: 768px) {
    .auth-wrapper {
        padding: 20px 12px;
        min-height: calc(100vh - 160px);
    }
    .auth-header {
        padding: 24px 20px 20px;
    }
    .auth-body {
        padding: 20px;
    }
    .article-detail-card .card-body {
        padding: 16px;
    }
    .article-content {
        font-size: 15px;
        line-height: 1.8;
    }
}
