/* ============================================
   TOP QN - Photography Contest Platform
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #1B2A4A;
    --primary-light: #2A3F6A;
    --secondary: #E8A838;
    --secondary-light: #F0C060;
    --dark: #0F1923;
    --light: #F8F9FA;
    --gray: #6C757D;
    --gray-light: #E9ECEF;
    --gray-dark: #343A40;
    --white: #FFFFFF;
    --font-family: 'Be Vietnam Pro', sans-serif;
    --section-padding: 80px 0;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 48px;
}

.section-title span {
    color: var(--secondary);
}

section {
    padding: var(--section-padding);
}

.btn-primary-custom {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    background: var(--secondary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 168, 56, 0.4);
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Header / Navbar --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.navbar {
    padding: 16px 0;
}

header.scrolled .navbar {
    padding: 10px 0;
}

.navbar-brand img {
    height: 48px;
    transition: var(--transition);
    border-radius: 8px;
}

header.scrolled .navbar-brand img {
    height: 40px;
    border-radius: 8px;
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 8px 18px !important;
    font-size: 15px;
    border-radius: 8px;
    transition: var(--transition);
}

header.scrolled .navbar-nav .nav-link {
    color: var(--primary);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}

.navbar-toggler {
    border: none;
    color: var(--white);
    font-size: 24px;
    padding: 4px 8px;
}

header.scrolled .navbar-toggler {
    color: var(--primary);
}

.nav-upload-btn {
    background: var(--secondary);
    color: var(--white) !important;
    border-radius: 50px !important;
    padding: 8px 24px !important;
}

.nav-upload-btn:hover {
    background: var(--secondary-light) !important;
    color: var(--white) !important;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(15, 25, 35, 0.7), rgba(27, 42, 74, 0.8));
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 168, 56, 0.2);
    border: 1px solid rgba(232, 168, 56, 0.4);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-title span {
    color: var(--secondary);
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 560px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 56px;
}

.hero-stat-item h3 {
    font-size: 36px;
    color: var(--secondary);
    font-weight: 800;
}

.hero-stat-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 4px;
}

/* --- Quick Nav Buttons --- */
.quick-nav {
    background: var(--light);
    padding: 0;
    position: relative;
    z-index: 10;
    padding-top: 60px;
}

.quick-nav-inner {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 32px;
    border-radius: var(--border-radius);
    background: var(--light);
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 240px;
}

.quick-nav-item:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.quick-nav-item:hover .quick-nav-icon {
    background: var(--secondary);
    color: var(--white);
}

.quick-nav-item:hover h5,
.quick-nav-item:hover p {
    color: var(--white);
}

.quick-nav-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(232, 168, 56, 0.15);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: var(--transition);
}

.quick-nav-item h5 {
    font-size: 16px;
    margin-bottom: 4px;
    transition: var(--transition);
}

.quick-nav-item p {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
    transition: var(--transition);
}

/* --- Rankings Section --- */
.rankings-section {
    background: var(--light);
}

.ranking-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.ranking-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.ranking-card-header {
    background: var(--primary);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ranking-card-header i {
    color: var(--secondary);
    font-size: 20px;
}

.ranking-card-header h4 {
    color: var(--white);
    font-size: 18px;
    margin: 0;
}

.ranking-list {
    padding: 0;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
    cursor: pointer;
}

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

.ranking-item:hover {
    background: rgba(232, 168, 56, 0.05);
}

.ranking-position {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--gray);
    flex-shrink: 0;
}

.ranking-position.top-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--white);
}

.ranking-position.top-2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: var(--white);
}

.ranking-position.top-3 {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: var(--white);
}

.ranking-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-light);
    flex-shrink: 0;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-info h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-info p {
    font-size: 12px;
    color: var(--gray);
    margin: 0;
}

.ranking-score {
    font-weight: 700;
    color: var(--secondary);
    font-size: 15px;
    flex-shrink: 0;
}

/* --- Entries Grid Section --- */
.entries-section {
    padding: var(--section-padding);
}

.entry-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: var(--white);
    height: 100%;
    cursor: pointer;
}

.entry-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.entry-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.entry-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.entry-card:hover .entry-card-img img {
    transform: scale(1.08);
}

.entry-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 40px 16px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: var(--transition);
}

.entry-card:hover .entry-card-overlay {
    opacity: 1;
}

.entry-card-overlay .vote-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    transition: var(--transition);
}

.entry-card-overlay .vote-btn:hover {
    background: var(--secondary-light);
}

.entry-card-body {
    padding: 20px;
}

.entry-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.entry-card-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.entry-card-author span {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.entry-card-body h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.entry-card-body p {
    font-size: 13px;
    color: var(--gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.entry-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--gray-light);
    font-size: 13px;
    color: var(--gray);
}

.entry-card-meta .votes {
    color: var(--secondary);
    font-weight: 600;
}

.entry-card-meta i {
    margin-right: 4px;
}

/* --- Upload Page --- */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 140px 0 80px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 12px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.upload-section {
    padding: var(--section-padding);
    background: var(--light);
}

.upload-form-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 48px;
}

.upload-dropzone {
    border: 2px dashed var(--gray-light);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--secondary);
    background: rgba(232, 168, 56, 0.05);
}

.upload-dropzone i {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 16px;
}

.upload-dropzone h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.upload-dropzone p {
    color: var(--gray);
    font-size: 14px;
}

.form-label-custom {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control-custom {
    border: 1.5px solid var(--gray-light);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    transition: var(--transition);
    font-family: var(--font-family);
}

.form-control-custom:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.15);
}

/* --- Entries List Page --- */
.filter-bar {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-bar .search-input {
    flex: 1;
    min-width: 200px;
    border: 1.5px solid var(--gray-light);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    font-family: var(--font-family);
    transition: var(--transition);
}

.filter-bar .search-input:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.15);
}

.filter-bar select {
    border: 1.5px solid var(--gray-light);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    font-family: var(--font-family);
    cursor: pointer;
    min-width: 160px;
}

/* --- Filter Pills & View Mode --- */
.entries-filter-controls {
    gap: 16px;
}

.custom-pills {
    background: var(--gray-light);
    border-radius: 50px;
    padding: 6px;
    margin: 0 !important;
}

.custom-pills .nav-link {
    border-radius: 50px;
    color: var(--gray);
    font-weight: 600;
    padding: 8px 20px;
    border: none;
    background: transparent;
    transition: var(--transition);
}

.custom-pills .nav-link:hover {
    color: var(--primary);
}

.custom-pills .nav-link.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.view-mode-controls {
    display: flex;
    background: var(--gray-light);
    border-radius: 12px;
    padding: 4px;
}

.view-mode-controls .btn {
    border: none;
    background: transparent;
    color: var(--gray);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.view-mode-controls .btn:hover {
    color: var(--primary);
    background: rgba(255,255,255,0.5);
}

.view-mode-controls .btn.btn-primary,
.view-mode-controls .btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* --- Newsfeed (List) View --- */
.entries-grid.list-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.entries-grid.list-view .list-item {
    width: 100%;
    max-width: 680px;
}

.entries-grid.list-view .entry-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.entries-grid.list-view .entry-card-body {
    display: contents; /* Allows children to be flex items of .entry-card */
}

.entries-grid.list-view .entry-card-author {
    order: 1;
    padding: 16px 20px;
    margin: 0;
    display: flex;
    align-items: center;
}

.entries-grid.list-view .entry-card-author img {
    width: 40px;
    height: 40px;
    margin-right: 12px;
}

.entries-grid.list-view .entry-card-author span {
    font-size: 16px;
    font-weight: 600;
}

.entries-grid.list-view .entry-card-img {
    order: 2;
    border-radius: 0;
    height: auto;
    max-height: 600px;
}

.entries-grid.list-view .entry-card-img img {
    border-radius: 0;
    height: auto;
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}

.entries-grid.list-view h5 {
    order: 3;
    padding: 16px 20px 0;
    margin: 0;
    font-size: 20px;
}

.entries-grid.list-view p {
    order: 4;
    padding: 8px 20px 0;
    margin: 0;
    font-size: 15px;
}

.entries-grid.list-view .entry-card-meta {
    order: 5;
    padding: 16px 20px;
    margin-top: 12px;
    border-top: 1px solid var(--gray-light);
}

/* --- Ranking Page --- */
.ranking-page-section {
    padding: var(--section-padding);
    background: var(--light);
}

.ranking-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 60px;
}

.podium-item {
    text-align: center;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 32px 24px;
    transition: var(--transition);
    cursor: pointer;
    width: 220px;
}

.podium-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.podium-item.first {
    order: 2;
}

.podium-item.second {
    order: 1;
}

.podium-item.third {
    order: 3;
}

.podium-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--gray-light);
}

.podium-item.first .podium-avatar {
    width: 100px;
    height: 100px;
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.podium-item.second .podium-avatar {
    border-color: #C0C0C0;
}

.podium-item.third .podium-avatar {
    border-color: #CD7F32;
}

.podium-crown {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.podium-item.first .podium-crown {
    font-size: 36px;
}

.podium-item h5 {
    font-size: 16px;
    margin-bottom: 4px;
}

.podium-item p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}

.podium-score {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
}

.ranking-table {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ranking-table table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th {
    background: var(--primary);
    color: var(--white);
    padding: 16px 24px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.ranking-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-light);
    font-size: 14px;
    vertical-align: middle;
}

.ranking-table tr:hover {
    background: rgba(232, 168, 56, 0.03);
}

.ranking-table tr:last-child td {
    border-bottom: none;
}

.table-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Pagination --- */
.pagination-custom {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination-custom a,
.pagination-custom span {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1.5px solid var(--gray-light);
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-dark);
    transition: var(--transition);
    cursor: pointer;
}

.pagination-custom a:hover,
.pagination-custom span.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

/* --- Footer --- */
footer {
    background: var(--dark);
    padding: 64px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo img {
    height: 48px;
    margin-bottom: 16px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-bottom {
    margin-top: 48px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
}

/* --- Entry Detail Page --- */
.entry-detail-hero {
    padding: 120px 0 0;
    background: var(--dark);
}

.entry-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-bottom: 32px;
    overflow-x: auto;
}

.gallery-thumb {
    width: 88px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.6;
    transition: var(--transition);
    flex-shrink: 0;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    border-color: var(--secondary);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Lightbox --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

.entry-detail-img {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    max-height: 560px;
}

.entry-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 560px;
}

.entry-detail-content {
    padding: 48px 0 80px;
}

.entry-detail-header {
    margin-bottom: 32px;
}

.entry-detail-header h1 {
    font-size: 32px;
    margin-bottom: 16px;
}

.entry-detail-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--gray);
    font-size: 14px;
}

.entry-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.entry-detail-author-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--light);
    border-radius: var(--border-radius);
    margin-bottom: 32px;
}

.entry-detail-author-box img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary);
}

.entry-detail-author-box .author-info h5 {
    font-size: 16px;
    margin-bottom: 2px;
}

.entry-detail-author-box .author-info p {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
}

.entry-detail-description {
    font-size: 16px;
    line-height: 1.9;
    color: var(--gray-dark);
    margin-bottom: 32px;
}

.entry-detail-vote-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.vote-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

.vote-count i {
    font-size: 24px;
}

.vote-big-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vote-big-btn:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 168, 56, 0.4);
}

.vote-big-btn.voted {
    background: var(--primary);
}

.share-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.share-box span {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.share-box a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    transition: var(--transition);
}

.share-box a:hover {
    background: var(--secondary);
    color: var(--white);
}

.entry-detail-sidebar .sidebar-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-card h5 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-light);
}

.sidebar-card h5 i {
    color: var(--secondary);
    margin-right: 8px;
}

.related-entry-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
}

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

.related-entry-item:hover {
    opacity: 0.8;
}

.related-entry-item img {
    width: 72px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-entry-item .related-info h6 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-entry-item .related-info p {
    font-size: 12px;
    color: var(--gray);
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-item h3 {
        font-size: 28px;
    }

    .quick-nav-inner {
        padding: 24px;
        gap: 16px;
    }

    .section-title {
        font-size: 26px;
    }

    .ranking-podium {
        flex-direction: column;
        align-items: center;
    }

    .podium-item {
        order: unset !important;
        width: 100%;
        max-width: 320px;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: var(--border-radius);
        margin-top: 12px;
        box-shadow: var(--shadow);
    }

    .navbar-collapse .nav-link {
        color: var(--primary) !important;
    }

    .upload-form-card {
        padding: 24px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .quick-nav-item {
        min-width: 100%;
    }

    section {
        padding: 48px 0;
    }

    .filter-bar {
        flex-direction: column;
    }

    .ranking-table {
        overflow-x: auto;
    }

    .ranking-table table {
        min-width: 600px;
    }
}