/* ==================== RESET & BASE ==================== */
:root {
    --primary-color: #1a5f7a; /* Deep ocean blue */
    --primary-dark: #0f4c63; /* Darker ocean blue */
    --secondary-color: #0d98ba; /* Sea blue */
    --accent-color: #00b4d8; /* Bright marine blue */
    --success-color: #4cc9f0; /* Sky/water blue */
    --warning-color: #ff9e00; /* Sunset orange */
    --danger-color: #ff0054; /* Coral red */
    --light-color: #f0f8ff; /* Alice blue - ocean mist */
    --dark-color: #0a2e36; /* Deep sea green/blue */
    --gray-light: #e1f5fe; /* Light sea foam */
    --gray: #6c757d;
    --gray-dark: #495057;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(135deg, #e6f7ff 0%, #b3e0ff 100%);
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(176, 224, 230, 0.3) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(173, 216, 230, 0.3) 0%, transparent 20%);
}

/* ==================== TOP NAVIGATION ==================== */
.top-navigation {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 95, 122, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.brand-link:hover {
    background: rgba(26, 95, 122, 0.1);
    transform: translateY(-2px);
}

.brand-link i {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 20px;
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    border-radius: 30px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(26, 95, 122, 0.05);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(26, 95, 122, 0.1);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.nav-dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    min-width: 240px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    padding: 8px;
}

.dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    margin: 2px 0;
}

.dropdown-content a:hover {
    background: rgba(26, 95, 122, 0.08);
    color: var(--primary-color);
    transform: translateX(4px);
}

.nav-user {
    margin-left: 16px;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.2);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.3);
}

.user-dropdown {
    position: relative;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: white;
    border-radius: 30px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.user-link:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.15);
    transform: translateY(-2px);
}

.user-avatar-mini {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(26, 95, 122, 0.2);
    object-fit: cover;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    font-size: 12px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.3);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    min-width: 280px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    padding: 12px;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: var(--gray-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    margin: 4px 0;
}

.dropdown-menu a:hover {
    background: rgba(26, 95, 122, 0.08);
    color: var(--primary-color);
    transform: translateX(-4px);
}

.dropdown-menu a i {
    width: 20px;
    text-align: center;
}

.dropdown-menu .badge {
    background: var(--accent-color);
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-light);
    margin: 12px 0;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(26, 95, 122, 0.1);
}

/* ==================== FORUM CONTAINER ==================== */
.forum-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 24px;
}

/* ==================== FORUM HEADER ==================== */
.forum-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.forum-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.forum-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(-30%, 30%);
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.header-content h1 {
    font-size: 42px;
    margin-bottom: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.header-content h1 i {
    background: rgba(255, 255, 255, 0.2);
    padding: 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.header-content p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.header-stats .stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 24px 32px;
    border-radius: var(--border-radius);
    min-width: 140px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-stats .stat:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(to right, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* ==================== QUICK STATS BAR ==================== */
.quick-stats-bar {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--box-shadow);
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--gray-dark);
}

.quick-stat i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* ==================== FORUM ACTIONS ==================== */
.forum-actions {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.search-container {
    width: 100%;
}

.search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 18px 24px;
    border: 2px solid var(--gray-light);
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--light-color);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 95, 122, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0 40px;
    border-radius: 0 50px 50px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    justify-content: center;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.3);
}

.search-filters {
    display: flex;
    gap: 24px;
    padding: 0 20px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.filter-option input {
    display: none;
}

.filter-option label {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    color: var(--gray-dark);
    transition: var(--transition);
}

.filter-option label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-light);
    border-radius: 6px;
    transition: var(--transition);
}

.filter-option input:checked + label::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-option input:checked + label::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.filter-option input:checked + label {
    color: var(--primary-color);
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    justify-content: center;
}

/* ==================== SORTING & FILTERS ==================== */
.sorting-filters {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--box-shadow);
}

.sorting-options {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sorting-label {
    font-weight: 600;
    color: var(--gray-dark);
    font-size: 15px;
}

.sort-option {
    padding: 10px 20px;
    background: var(--light-color);
    color: var(--gray-dark);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.sort-option:hover {
    background: rgba(26, 95, 122, 0.08);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.sort-option.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
    border-color: var(--primary-color);
}

.view-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-label {
    font-weight: 600;
    color: var(--gray-dark);
    font-size: 15px;
}

.view-btn {
    width: 44px;
    height: 44px;
    background: var(--light-color);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--gray-dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.view-btn:hover {
    background: rgba(26, 95, 122, 0.08);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
    border-color: var(--primary-color);
}

/* ==================== TRENDING TOPICS ==================== */
.trending-topics {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 24px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.trending-period {
    font-size: 14px;
    color: var(--gray);
    background: var(--light-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--light-color);
    border-radius: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.trending-item:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.15);
}

.trending-rank {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    min-width: 60px;
    text-align: center;
    background: rgba(26, 95, 122, 0.1);
    padding: 12px;
    border-radius: 12px;
    margin-right: 20px;
}

.trending-content {
    flex: 1;
}

.trending-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark-color);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: var(--transition);
}

.trending-title:hover {
    color: var(--primary-color);
}

.trending-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--gray);
}

.trending-stats {
    display: flex;
    gap: 20px;
}

.trending-stats i {
    margin-right: 6px;
    color: var(--primary-color);
}

/* ==================== ALL QUESTIONS ==================== */
.all-questions {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.question-count {
    font-size: 15px;
    color: var(--gray);
    background: var(--light-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.no-questions {
    text-align: center;
    padding: 80px 40px;
    color: var(--gray);
}

.no-questions i {
    font-size: 72px;
    color: var(--gray-light);
    margin-bottom: 24px;
    opacity: 0.5;
}

.no-questions h3 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.no-questions p {
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== QUESTION CARD ==================== */
.question-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 28px;
    margin-bottom: 20px;
    display: flex;
    gap: 24px;
    transition: var(--transition);
    border: 2px solid var(--gray-light);
    position: relative;
}

.question-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.question-card.featured {
    border-color: var(--warning-color);
    background: linear-gradient(to right, rgba(255, 158, 0, 0.02), transparent);
}

.question-card.featured::before {
    content: 'NAVIGATION LIGHT';
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--warning-color), #ff6b00);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.question-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 100px;
    text-align: center;
}

.stat {
    padding: 12px;
    background: var(--light-color);
    border-radius: 12px;
    transition: var(--transition);
}

.stat:hover {
    background: rgba(26, 95, 122, 0.1);
    transform: scale(1.05);
}

.number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.label {
    font-size: 13px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.has-answers {
    background: rgba(76, 201, 240, 0.15);
    border: 2px solid var(--success-color);
}

.question-content {
    flex: 1;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.question-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.4;
}

.question-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.question-title a:hover {
    color: var(--primary-color);
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 158, 0, 0.1);
    color: var(--warning-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 12px;
}

.question-excerpt {
    color: var(--gray-dark);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 15px;
}

.question-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(26, 95, 122, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.3);
}

.question-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--gray);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author {
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.author::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success-color);
    border-radius: 50%;
}

.reputation {
    font-weight: 500;
}

.last-activity {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light-color);
    padding: 8px 16px;
    border-radius: 20px;
}

/* ==================== POPULAR TAGS ==================== */
.popular-tags {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.popular-tags h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.popular-tags h3 i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-cloud-item {
    padding: 12px 20px;
    background: linear-gradient(135deg, #1a5f7a, #0d98ba);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
}

.tag-cloud-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.4);
}

.tag-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* ==================== FORUM FOOTER STATS ==================== */
.forum-footer-stats {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-card i {
    font-size: 48px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--dark-color);
    border: 2px solid var(--gray-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.2);
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 10px;
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
    border-radius: 16px;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 20px 24px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    box-shadow: var(--box-shadow);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #4cc9f0, #1a5f7a);
    color: white;
    border-left: 6px solid #0d98ba;
}

.alert-error {
    background: linear-gradient(135deg, #ff0054, #ff6b6b);
    color: white;
    border-left: 6px solid #d90429;
}

.alert i {
    font-size: 24px;
    flex-shrink: 0;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .forum-container {
        padding: 20px;
    }
    
    .header-stats {
        gap: 20px;
    }
    
    .header-stats .stat {
        min-width: 120px;
        padding: 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        display: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        z-index: 999;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        padding: 16px 20px;
        border-radius: 12px;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .user-dropdown .dropdown-menu {
        position: fixed;
        top: 70px;
        left: 20px;
        right: 20px;
        width: auto;
    }
    
    .forum-header {
        padding: 30px;
    }
    
    .header-content h1 {
        font-size: 32px;
        flex-direction: column;
        gap: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .quick-stats-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input {
        border-radius: 50px;
        border-right: 2px solid var(--gray-light);
    }
    
    .search-btn {
        border-radius: 50px;
        padding: 18px;
        width: 100%;
    }
    
    .sorting-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .sorting-options {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .question-card {
        flex-direction: column;
        gap: 20px;
    }
    
    .question-stats {
        flex-direction: row;
        justify-content: space-around;
        min-width: auto;
    }
    
    .trending-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .trending-rank {
        margin-right: 0;
    }
    
    .trending-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .forum-container {
        padding: 16px;
    }
    
    .forum-header {
        padding: 24px;
    }
    
    .header-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .header-stats .stat {
        width: 100%;
        max-width: 200px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.question-card:nth-child(1) { animation-delay: 0.1s; }
.question-card:nth-child(2) { animation-delay: 0.2s; }
.question-card:nth-child(3) { animation-delay: 0.3s; }
.question-card:nth-child(4) { animation-delay: 0.4s; }
.question-card:nth-child(5) { animation-delay: 0.5s; }

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}
/* ==================== ADDITIONAL STYLES ==================== */

/* Filter buttons in index.php */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--light-color);
    border: 2px solid var(--gray-light);
    border-radius: 30px;
    color: var(--gray-dark);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.filter-btn:hover {
    background: rgba(26, 95, 122, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

/* Remove the annoying infinite scroll alert by disabling it */
.no-scroll-alert {
    display: none;
}

/* Better mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
}

.mobile-menu {
    display: none;
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    position: absolute;
    top: 100%;
    right: 20px;
    z-index: 1000;
    min-width: 200px;
}

.mobile-menu.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 8px;
    margin: 5px 0;
    transition: var(--transition);
}

.mobile-menu a:hover {
    background: rgba(26, 95, 122, 0.1);
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sorting-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sorting-options {
        justify-content: center;
    }
    
    .view-toggle {
        justify-content: center;
    }
}

/* Questions grid view */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.questions-grid .question-card {
    flex-direction: column;
    height: 100%;
}

.questions-grid .question-stats {
    flex-direction: row;
    justify-content: space-around;
    min-width: auto;
    margin-bottom: 15px;
}

.questions-grid .question-stats .stat {
    min-width: 60px;
}

/* Tag cloud adjustments */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tag-cloud-item {
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
    margin: 5px;
}

.tag-cloud-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.4);
}

/* Featured list adjustments */
.featured-list .question-card {
    border-left: 5px solid var(--warning-color);
    background: linear-gradient(to right, rgba(255, 158, 0, 0.05), white);
}

/* Quick stats bar improvements */
.quick-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Search results improvements */
.results-count {
    font-size: 14px;
    color: var(--gray);
    margin-top: 5px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.no-results i {
    font-size: 64px;
    color: var(--gray-light);
    margin-bottom: 20px;
    opacity: 0.5;
}

.suggestions {
    text-align: left;
    max-width: 400px;
    margin: 30px auto;
    background: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
}

.suggestions ul {
    list-style: none;
    padding-left: 20px;
}

.suggestions li {
    margin: 10px 0;
    padding-left: 10px;
    position: relative;
}

.suggestions li:before {
    content: '•';
    position: absolute;
    left: -10px;
    color: var(--primary-color);
    font-size: 20px;
}

/* Trending topics improvements */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trending-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--light-color);
    border-radius: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.trending-item:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.15);
}

/* Section header improvements */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.view-all:hover {
    gap: 12px;
    color: var(--secondary-color);
}

/* Question count badge */
.question-count {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* Animation for question cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.question-card:nth-child(1) { animation-delay: 0.1s; }
.question-card:nth-child(2) { animation-delay: 0.2s; }
.question-card:nth-child(3) { animation-delay: 0.3s; }
.question-card:nth-child(4) { animation-delay: 0.4s; }
.question-card:nth-child(5) { animation-delay: 0.5s; }

/* Loading animation */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading-spinner.active {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== MARINE THEME ENHANCEMENTS ==================== */
/* Add subtle wave patterns to certain elements */
.forum-header {
    position: relative;
    overflow: hidden;
}

.forum-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Add compass/navigation-inspired elements */
.sort-option.active, .view-btn.active {
    position: relative;
    overflow: hidden;
}

.sort-option.active::after, .view-btn.active::after {
    content: '↗';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    opacity: 0.8;
}

/* Marine-inspired tag styles */
.tag {
    position: relative;
    overflow: hidden;
}

.tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tag:hover::after {
    left: 100%;
}

/* Ocean ripple effect on buttons */
.btn-primary, .search-btn, .btn-login {
    position: relative;
    overflow: hidden;
}

.btn-primary::after, .search-btn::after, .btn-login::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-primary:hover::after, .search-btn:hover::after, .btn-login:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

/* Nautical color coding for stats */
.quick-stat:nth-child(1) i {
    background: linear-gradient(135deg, #1a5f7a, #0d98ba);
}

.quick-stat:nth-child(2) i {
    background: linear-gradient(135deg, #0d98ba, #4cc9f0);
}

.quick-stat:nth-child(3) i {
    background: linear-gradient(135deg, #4cc9f0, #90e0ef);
}

/* Subtle marine texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(176, 224, 230, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(173, 216, 230, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(135, 206, 235, 0.05) 0%, transparent 30%);
    pointer-events: none;
    z-index: -1;
}

/* Navigation-inspired hover effects */
.nav-link:hover, .dropdown-content a:hover, .dropdown-menu a:hover {
    transform: translateX(4px);
    transition: var(--transition);
}

/* Marine-themed scrollbar */
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1a5f7a, #0d98ba, #4cc9f0);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0f4c63, #0d98ba, #4cc9f0);
}

/* Water-like transparency effects */
.quick-stats-bar, .forum-actions, .sorting-filters, 
.trending-topics, .all-questions, .popular-tags {
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.95);
}

/* Marine-themed alert colors */
.alert-success {
    background: linear-gradient(135deg, #0d98ba, #1a5f7a);
    border-left: 6px solid #4cc9f0;
}

/* Navigation light effect for featured questions */
.question-card.featured::before {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Marine palette adjustments for better contrast */
:root {
    --wave-accent-1: #90e0ef;
    --wave-accent-2: #00b4d8;
    --wave-accent-3: #0077b6;
    --wave-accent-4: #03045e;
}

/* Add subtle marine pattern to cards on hover */
.question-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Nautical striped effect for dividers */
.dropdown-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* Marine compass points for navigation */
.nav-link.active {
    position: relative;
}

.nav-link.active::before {
    content: 'N';
    position: absolute;
    top: -8px;
    /* Fix for vote forms */
.vote-form form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vote-form a.vote-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure forms don't have extra margins */
.bookmark-form, .helpful-form {
    margin: 0;
    display: flex;
}

/* Fix button alignment in question actions */
.question-actions form {
    margin: 0;
}

.question-actions .btn {
    margin: 0;
}

/* Fix the back button alignment */
.forum-header .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.forum-header .btn-secondary {
    align-self: flex-start;
}

/* Fix reply admin actions layout */
.reply-admin-actions form {
    display: inline-block;
    margin: 0 5px;
}
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0.7;
}
/* ==================== QUESTION PAGE STYLES ==================== */

/* Question Detail Page */
.question-detail {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    gap: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(26, 95, 122, 0.1);
}

.question-voting {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 80px;
}

.vote-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vote-btn {
    background: var(--light-color);
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-dark);
    font-size: 20px;
}

.vote-btn:hover {
    background: rgba(26, 95, 122, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.vote-btn.up:hover {
    color: #2a9d8f;
    border-color: #2a9d8f;
}

.vote-btn.down:hover {
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.vote-count {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark-color);
    margin: 10px 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-content {
    flex: 1;
}

.question-title {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.3;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 15px;
}

.question-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 25px;
    white-space: pre-line;
}

.question-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.question-tags .tag {
    background: rgba(26, 95, 122, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.question-tags .tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.3);
}

.question-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    border: 1px solid rgba(26, 95, 122, 0.1);
}

.author-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.author-avatar i {
    font-size: 24px;
    color: white;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 16px;
    margin-bottom: 5px;
}

.post-time {
    font-size: 14px;
    color: var(--gray);
}

.question-stats {
    display: flex;
    gap: 25px;
}

.question-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-dark);
    font-weight: 600;
}

.question-stats .stat i {
    color: var(--primary-color);
    font-size: 18px;
}

/* Replies Section */
.replies-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(26, 95, 122, 0.1);
}

.replies-title {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.replies-title i {
    color: var(--primary-color);
}

.no-replies {
    text-align: center;
    padding: 60px 30px;
    color: var(--gray);
}

.no-replies i {
    font-size: 64px;
    color: var(--gray-light);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-replies h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.no-replies p {
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto 30px;
}

/* Reply Item */
.reply-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    gap: 25px;
    border: 2px solid var(--light-color);
    transition: var(--transition);
    position: relative;
}

.reply-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.15);
}

.reply-item.accepted {
    border-color: #2a9d8f;
    background: linear-gradient(to right, rgba(42, 157, 143, 0.05), white);
}

.reply-voting {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 80px;
}

.accepted-badge {
    background: #2a9d8f;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(42, 157, 143, 0.3);
}

.helpful-vote {
    margin-top: 10px;
}

.helpful-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.helpful-btn {
    background: var(--light-color);
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-dark);
    font-weight: 600;
}

.helpful-btn:hover {
    background: rgba(26, 95, 122, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.helpful-btn i {
    font-size: 16px;
}

.reply-admin-actions {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reply-content {
    flex: 1;
}

.reply-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-dark);
    margin-bottom: 25px;
    white-space: pre-line;
}

.reply-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-color);
}

.reply-updated {
    font-size: 14px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Reply Form Section */
.reply-form-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(26, 95, 122, 0.1);
}

.reply-form-section h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reply-form-section h3 i {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group textarea {
    width: 100%;
    padding: 20px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    min-height: 200px;
    transition: var(--transition);
    background: var(--light-color);
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 95, 122, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.preview-container {
    background: var(--light-color);
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    border: 2px solid var(--gray-light);
}

.preview-container h4 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-container h4 i {
    color: var(--primary-color);
}

.answer-preview {
    line-height: 1.8;
    color: var(--gray-dark);
    font-size: 15px;
    white-space: pre-line;
}

/* Login Prompt */
.login-prompt {
    text-align: center;
    padding: 50px 30px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    border: 2px dashed var(--gray-light);
}

.login-prompt i {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: rgba(26, 95, 122, 0.1);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.login-prompt h4 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.login-prompt p {
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    line-height: 1.6;
}

.auth-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Question Actions */
.question-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.bookmark-form {
    margin: 0;
}

/* Button Styles */
.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #ff6b00);
    color: white;
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #2a9d8f, #4cc9f0);
    color: white;
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #ff6b6b);
    color: white;
    border: none;
}

/* ==================== RESPONSIVE QUESTION PAGE ==================== */
@media (max-width: 992px) {
    .question-detail {
        flex-direction: column;
        gap: 20px;
    }
    
    .question-voting {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
        width: 100%;
    }
    
    .vote-form {
        flex-direction: row;
        gap: 30px;
    }
    
    .vote-count {
        margin: 0 15px;
    }
    
    .question-meta {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .question-stats {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .question-title {
        font-size: 26px;
    }
    
    .reply-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .reply-voting {
        flex-direction: row;
        justify-content: flex-start;
        min-width: auto;
        width: 100%;
    }
    
    .reply-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .question-title {
        font-size: 22px;
    }
    
    .question-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .auth-actions {
        flex-direction: column;
    }
    
    .auth-actions .btn {
        width: 100%;
    }
}