/* ===== Modern RiderApp Stylesheet ===== */

/* --- CSS Variables (Light Mode Default) --- */
:root {
    /* Color Palette */
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;

    /* Light Mode Backgrounds */
    --bg-dark: #f7fafc;
    --bg-card: #ffffff;
    --bg-surface: #edf2f7;

    /* Light Mode Text Colors */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);

    /* Layout */
    --header-height: 60px;
    --bottom-nav-height: 65px;
    --border-radius: 12px;
    --border-radius-lg: 20px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;

    /* Border color for light mode */
    --border-color: rgba(0, 0, 0, 0.1);
}

/* --- Dark Mode --- */
@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode Backgrounds */
        --bg-dark: #1a1a2e;
        --bg-card: #16213e;
        --bg-surface: #0f3460;

        /* Dark Mode Text Colors */
        --text-primary: #ffffff;
        --text-secondary: #a0aec0;
        --text-muted: #718096;

        /* Dark Gradient */
        --gradient-dark: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);

        /* Shadows for dark mode */
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
        --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.5);

        /* Border color for dark mode */
        --border-color: rgba(255, 255, 255, 0.1);
    }
}

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

html,
body {
    height: 100%;
}

body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gradient-dark);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

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

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: none;
}

@media (min-width: 769px) {
    .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 30px;
    }
}

.header-logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.header-nav {
    display: flex;
    gap: 25px;
}

.header-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    text-decoration: none;
}

.header-nav a:hover,
.header-nav a.active {
    color: #ffffff;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width var(--transition-normal);
}

.header-nav a:hover::after,
.header-nav a.active::after {
    width: 100%;
}

/* --- Bottom Navigation (Mobile) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(22, 33, 62, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.75em;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.nav-item i {
    font-size: 1.4em;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* --- Main Content --- */
.main-content {
    padding-top: 0;
    padding-bottom: var(--bottom-nav-height);
    min-height: 100vh;
}

@media (min-width: 769px) {
    .main-content {
        padding-top: var(--header-height);
        padding-bottom: 0;
    }
}

/* --- Profile Styles --- */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    text-align: center;
    padding: 40px 20px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
}

.avatar-section {
    margin-bottom: 15px;
}

.avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: white;
}

.username {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
}

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

.stat-number {
    font-size: 1.8em;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85em;
    opacity: 0.8;
}

/* --- Sort Controls --- */
.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
}

.sort-label {
    color: var(--text-muted);
    font-size: 0.9em;
}

.sort-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sort-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.sort-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* --- Visit Cards --- */
.visit-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.visit-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.visit-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.visit-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.visit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visit-content {
    padding: 15px;
}

.visit-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
}

.visit-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.visit-rating {
    color: #ffc107;
}

.visit-comment {
    font-size: 0.9em;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    margin-bottom: 20px;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-logout {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-muted);
    font-size: 0.95em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-logout:hover {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.logout-section {
    margin-top: 30px;
}

/* --- FAB (Floating Action Button) --- */
.fab {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 20px);
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    z-index: 999;
    transition: all var(--transition-normal);
}

.fab:hover {
    transform: scale(1.1);
    color: white;
}

@media (min-width: 769px) {
    .fab {
        bottom: 30px;
        right: 30px;
    }
}

/* --- Form Styles --- */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1em;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- Utility Classes --- */
/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ===== Spot Detail Page ===== */

.spot-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.spot-header {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.spot-thumbnail {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.spot-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spot-info {
    flex: 1;
}

.spot-name {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.spot-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    opacity: 0.9;
}

/* Visit Action */
.visit-action-section {
    margin-bottom: 20px;
}

.btn-visit {
    width: 100%;
    padding: 15px;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.btn-visit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.already-visited {
    padding: 15px;
    background: var(--success-color);
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
}

/* Visit Form */
.visit-form-container {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.rating-input {
    display: flex;
    gap: 5px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 1.5em;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.rating-input input:checked~label,
.rating-input label:hover,
.rating-input label:hover~label {
    color: #ffc107;
}

/* Sections */
.section {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 8px;
    font-size: 0.75em;
    color: white;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.empty-gallery,
.empty-comments {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-gallery i {
    font-size: 3em;
    margin-bottom: 10px;
}

/* Visits List */
.visits-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.visit-item {
    padding: 15px;
    background: var(--bg-surface);
    border-radius: var(--border-radius);
}

.visit-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.visit-user {
    font-weight: 600;
}

.visit-date {
    color: var(--text-muted);
    font-size: 0.85em;
}

.visit-rating {
    color: #ffc107;
    margin-bottom: 8px;
}

.visit-comment {
    font-size: 0.9em;
    color: var(--text-secondary);
    line-height: 1.5;
}

.visit-image {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 400px;
}

.visit-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Comment Form */
.comment-form {
    margin-bottom: 20px;
}

.comment-input-area {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 10px;
    border: 1px solid var(--border-color);
}

.comment-form textarea {
    width: 100%;
    border: none;
    background: transparent;
    min-height: 80px;
    resize: none;
    outline: none;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.btn-icon {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 5px;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.image-preview {
    font-size: 0.85rem;
    color: var(--success-color);
    margin-top: 5px;
}

.comment-image {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 300px;
}

.comment-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Comment Item */
.comment-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.btn-comment {
    padding: 12px 20px;
    background: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.btn-comment:hover {
    background: var(--primary-dark);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    padding: 12px;
    background: var(--bg-surface);
    border-radius: var(--border-radius);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85em;
}

.comment-user {
    font-weight: 600;
    color: var(--primary-color);
}

.comment-date {
    color: var(--text-muted);
}

.comment-message {
    font-size: 0.9em;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Back Link */
.back-link {
    margin-top: 20px;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Login Prompt */
.login-prompt {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.login-prompt a {
    color: var(--accent-color);
    font-weight: 600;
}

/* ===== Custom Map Pin Icons ===== */

.custom-pin-icon {
    background: transparent;
    border: none;
}

.pin-container {
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 50% 0;
    background: var(--gradient-primary);
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 2px solid white;
    overflow: hidden;
}

.pin-container img {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    object-fit: cover;
    transform: rotate(45deg);
}

.pin-container.default-pin {
    width: 100%;
    height: 100%;
}

.pin-container.default-pin i {
    color: white;
    font-size: 1.5em;
    transform: rotate(45deg);
}

/* Leaflet Popup Styling - Refreshed */
.leaflet-popup-content-wrapper {
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
    margin: 0 !important;
    min-width: 240px;
}

.leaflet-popup-tip {
    background: var(--bg-card);
}

.leaflet-container a.leaflet-popup-close-button {
    color: white;
    font-size: 1.4em;
    padding: 8px;
    top: 5px;
    right: 5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.spot-popup-new {
    display: flex;
    flex-direction: column;
}

.popup-thumb {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.popup-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.popup-thumb-placeholder {
    height: 80px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2em;
}

.popup-content {
    padding: 15px;
}

.popup-title {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.3;
}

.popup-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9em;
}

.popup-rating {
    display: flex;
    align-items: center;
}

.popup-visits {
    color: var(--text-muted);
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.popup-categories {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 15px;
    background: var(--bg-surface);
    padding: 8px;
    border-radius: 8px;
}

.popup-category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.popup-category-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.cat-count {
    margin-left: auto;
    background: rgba(102, 126, 234, 0.15);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    color: var(--primary-color);
    font-weight: 600;
}

.popup-actions-new {
    display: flex;
    gap: 10px;
}

.btn-popup-primary,
.btn-popup-secondary {
    padding: 10px 0;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-popup-primary {
    flex: 1;
    background: var(--gradient-primary);
    color: white !important;
}

.btn-popup-secondary {
    flex: 1;
    background: var(--bg-surface);
    color: var(--primary-color) !important;
    border: 1px solid var(--border-color);
}

.btn-popup-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

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

/* ===== Spot Detail Page - Refactored Styles ===== */

/* Visit Action Section */
.visit-action-section {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Map and Route Buttons */
.btn-map,
.btn-route {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 15px;
    text-decoration: none;
    border-radius: 22px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-map {
    background: #f0f2f5;
    color: #333;
}

.btn-map:hover {
    background: #e2e6ea;
    color: #333;
}

.btn-route {
    background: #4285F4;
    color: white;
}

.btn-route:hover {
    background: #3367d6;
    color: white;
}

.btn-map i,
.btn-route i {
    margin-right: 5px;
}

/* Category Input */
.category-input {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.2s;
}

.category-label:hover {
    border-color: var(--primary-color);
}

.category-label input[type="radio"]:checked+span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Visit Category */
.visit-category {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Comments Sort */
.comments-sort {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.sort-options {
    font-size: 0.9em;
    display: flex;
    gap: 10px;
    align-items: center;
}

.sort-label {
    color: var(--text-muted);
}

.sort-divider {
    color: var(--border-color);
}

.sort-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: normal;
    transition: color var(--transition-fast);
}

.sort-link:hover {
    color: var(--primary-color);
}

.sort-link.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* Badge ME */
.badge-me {
    font-size: 0.8em;
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

/* Comment Edit Notice */
.comment-edit-notice {
    font-size: 0.8em;
    color: var(--text-muted);
    text-align: right;
    margin-top: 5px;
}

/* Image Status Icon */
.image-status-icon {
    color: var(--primary-color);
    margin-left: 5px;
}

/* Like Button */
.comment-actions-footer {
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.btn-like {
    background: none;
    border: none;
    cursor: pointer;
    color: #95a5a6;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: color var(--transition-fast);
}

.btn-like:hover {
    color: #e74c3c;
}

.btn-like.liked {
    color: #e74c3c;
}

.like-count {
    font-size: 0.9em;
}
/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 30px 0;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

