/* Global Styles */

/* Typography */
body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

code, .monospace {
    font-family: 'Courier New', monospace;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px var(--shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand:hover {
    color: #ffffff !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

.search-form {
    width: 100%;
}

/* Navbar Avatar */
.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.nav-avatar:hover {
    border-color: var(--text);
    transform: scale(1.1);
}

.nav-avatar-link {
    display: inline-flex;
    align-items: center;
    padding: 0;
    text-decoration: none;
}

/* Mobile Search Bar */
.mobile-search-bar {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: inherit;
    width: 100%;
    padding: 0.5rem 0;
}

.mobile-search-bar.open {
    display: block;
}

.mobile-search-bar form {
    width: 100%;
}

.mobile-search-bar input {
    flex: 1;
    min-width: 0;
}

@media (min-width: 992px) {
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -10px;
    z-index: 0;
    filter: blur(6px) saturate(1.1);
    background-size: cover;
    background-position: center;
}

.hero-bg .hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
}

.hero-bg .hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.25) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

[data-theme="dark"] .hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.hero-section h1 {
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-section .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-lg);
}

.hero-section .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.hero-section .btn {
    border-radius: 0;
    padding: 1rem 2rem;
    font-weight: 600;
}

/* Statistics Section */
.stats-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Movie Cards */
.movie-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    background-color: var(--card-bg);
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-lg);
}

.movie-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background-color: var(--bg-primary);
}

@media (max-width: 768px) {
    .movie-card img {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .movie-card img {
        height: 220px;
    }
}

.movie-card-body {
    padding: 1rem;
}

.movie-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Watched toggle button on poster */
.watched-toggle-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    transition: all 0.2s;
    opacity: 0;
    padding: 0;
}
.movie-card:hover .watched-toggle-btn {
    opacity: 1;
}
.watched-toggle-btn.watched {
    opacity: 1;
    color: #28a745;
    background: rgba(0,0,0,0.6);
}
.watched-toggle-btn:hover {
    opacity: 1;
    transform: scale(1.15);
    color: #28a745;
}

/* Watchlist toggle button on poster */
.watchlist-toggle-btn {
    position: absolute;
    top: 8px;
    right: 44px;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    transition: all 0.2s;
    opacity: 0;
    padding: 0;
}
.movie-card:hover .watchlist-toggle-btn {
    opacity: 1;
}
.watchlist-toggle-btn.in-watchlist {
    opacity: 1;
    color: var(--accent);
    background: rgba(0,0,0,0.6);
}
.watchlist-toggle-btn:hover {
    opacity: 1;
    transform: scale(1.15);
    color: var(--accent);
}

/* Wanted toggle button on poster */
.wanted-toggle-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    transition: all 0.2s;
    opacity: 0;
    padding: 0;
}
.movie-card:hover .wanted-toggle-btn {
    opacity: 1;
}
.wanted-toggle-btn.wanted {
    opacity: 1;
    color: #ffc107;
    background: rgba(0,0,0,0.6);
}
.wanted-toggle-btn:hover {
    opacity: 1;
    transform: scale(1.15);
    color: #ffc107;
}
.wanted-count-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    z-index: 5;
    pointer-events: none;
}

.difficulty-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

/* Movie Detail Page */
.movie-detail-section {
    min-height: 60vh;
}

.movie-meta .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* Availability Badge (compact, next to title) */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.availability-badge:hover {
    box-shadow: 0 2px 8px var(--shadow);
    border-color: var(--accent);
}

.availability-chevron {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.availability-badge.open .availability-chevron {
    transform: rotate(180deg);
}

/* Availability Detail (collapsible inline panel) */
.availability-detail {
    display: none;
}

.availability-detail.open {
    display: block;
}

.availability-inline {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--accent);
    background-color: var(--bg-secondary);
}

/* Info Badges (Cast, Crew, Genres, Releases) */
.info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.info-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 2px 8px var(--shadow);
}

.info-badge-count {
    background-color: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Movie Info Page - Person Cards */
.info-person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    padding: 1rem 0.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-person-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--shadow-lg);
    color: var(--text-primary);
}

.info-person-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.info-person-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.person-photo-lg {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
}

.info-person-name {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.info-person-role {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

/* Genre Cards */
.genre-card {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Release List */
.release-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.release-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--card-bg);
}

.release-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
}

.release-type {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.release-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Person Detail Page */
.person-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2.5rem;
    margin: 0 auto;
    box-shadow: 0 4px 15px var(--shadow-lg);
}

.filmography-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--card-bg);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filmography-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px var(--shadow);
    color: var(--text-primary);
    border-color: var(--accent);
}

.filmography-poster {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

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

.availability-section {
    border: 2px solid var(--border);
}

.availability-vote {
    padding: 1rem;
    border-radius: 8px;
    background-color: var(--bg-primary);
}

.availability-vote h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.user-status-section .btn-group {
    width: 100%;
    flex-wrap: wrap;
}

.user-status-section .btn {
    flex: 1;
    min-width: 150px;
}

/* Experience Card */
.experience-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.experience-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.experience-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.experience-username {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.experience-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.source-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.source-official {
    background-color: rgba(40, 167, 69, 0.15);
    color: #1a7a34;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.source-festival {
    background-color: rgba(255, 193, 7, 0.15);
    color: #997a00;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.source-physical {
    background-color: rgba(13, 110, 253, 0.15);
    color: #0a58ca;
    border: 1px solid rgba(13, 110, 253, 0.4);
}

.source-archive {
    background-color: rgba(108, 117, 125, 0.15);
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.4);
}

.source-private {
    background-color: rgba(111, 66, 193, 0.15);
    color: #59359a;
    border: 1px solid rgba(111, 66, 193, 0.4);
}

.source-unavailable {
    background-color: rgba(220, 53, 69, 0.15);
    color: #b02a37;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

.quality-notes {
    background-color: var(--bg-primary);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.quality-note-item {
    margin-bottom: 0.75rem;
}

.quality-note-item:last-child {
    margin-bottom: 0;
}

.quality-note-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.quality-note-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.experience-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.like-button,
.comment-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s ease;
}

.like-button:hover,
.comment-button:hover {
    color: var(--accent);
}

.like-button.liked {
    color: var(--accent);
}

/* Comments */
.comments-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.comment-item {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75rem;
}

.comment-content {
    flex: 1;
}

.comment-username {
    font-weight: 700;
    color: var(--text-primary);
    margin-right: 0.5rem;
    text-decoration: none;
}

.comment-username:hover {
    color: var(--accent);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.comment-text {
    margin-top: 0.5rem;
    color: var(--text-primary);
}

/* Profile Page */
.profile-header-section {
    position: relative;
    margin-bottom: 2rem;
}

.profile-cover {
    height: 250px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    opacity: 0.3;
}

/* Settings Toggle Button */
.settings-toggle-btn {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
}

.settings-toggle-btn:hover {
    background-color: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: rotate(45deg);
}

/* Settings Sidebar */
.settings-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
}

.settings-overlay.open {
    display: block;
}

.settings-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: var(--bg-primary);
    border-left: 1px solid var(--border);
    z-index: 1060;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px var(--shadow-lg);
}

.settings-sidebar.open {
    right: 0;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.settings-header .btn-link {
    color: var(--text-secondary);
}

.settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.settings-section {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem 0.25rem;
    margin: 0;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.15s ease;
}

.settings-item:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.settings-item i:first-child {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.settings-item .bi-chevron-right {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.settings-item-danger {
    color: #dc3545;
}

.settings-item-danger:hover {
    background-color: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.settings-item-danger i:first-child {
    color: #dc3545;
}

@media (max-width: 576px) {
    .settings-sidebar {
        width: 260px;
        right: -280px;
    }
    .settings-toggle-btn {
        top: 0;
        right: 0;
    }
}

.profile-header-content {
    margin-top: -120px;
    position: relative;
    z-index: 10;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--bg-secondary);
    object-fit: cover;
    box-shadow: 0 4px 15px var(--shadow-lg);
}

.profile-info {
    color: var(--text-primary);
}

.profile-info h2 {
    font-size: 2rem;
}

/* Profile Movie Grid */
.profile-movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 2/3;
}

.profile-movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-movie-card:hover img {
    transform: scale(1.05);
}

.profile-movie-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-movie-card:hover .profile-movie-overlay {
    opacity: 1;
}

/* Friend Card */
.friend-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.friend-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--shadow-lg);
}

.friend-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.friend-username {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

/* Source Statistics */
.source-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background-color: var(--bg-primary);
    border-radius: 6px;
}

.source-stat-bar {
    flex: 1;
    height: 30px;
    background-color: var(--accent);
    border-radius: 4px;
    margin: 0 1rem;
    position: relative;
}

.source-stat-percentage {
    font-weight: 700;
    color: var(--text-primary);
}

/* Auth Pages */
.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.auth-form .input-group-text {
    min-width: 45px;
    justify-content: center;
}

.btn-check:checked + .btn-outline-accent {
    background-color: var(--accent);
    color: white;
}

/* Modal */
.modal-backdrop {
    backdrop-filter: blur(5px);
}

.quality-textarea {
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    margin-top: auto;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

/* Cards */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-header-content {
        margin-top: -70px;
    }

    .user-status-section .btn {
        min-width: 100%;
        margin-bottom: 0.5rem;
    }

    .movie-detail-section .col-md-4 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .stat-item h3 {
        font-size: 1.25rem;
    }

    .stat-item p {
        font-size: 0.75rem;
    }

    .experience-card {
        padding: 1rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
}

.loading::after {
    content: "⏳";
    font-size: 3rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Scroll to top button (optional) */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    border: none;
    box-shadow: 0 4px 12px var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--accent-hover);
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

/* Friend Button (experience cards) */
.experience-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.friend-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.friend-btn:hover {
    opacity: 1;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.friend-btn-added {
    opacity: 0.7;
    color: var(--accent);
    cursor: default;
}

.friend-btn-added:hover {
    opacity: 0.7;
    background: none;
}

/* Report / Complaint System */
.report-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.report-btn:hover {
    opacity: 1;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.edit-btn, .delete-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.edit-btn:hover {
    opacity: 1;
    color: var(--accent);
    background: rgba(var(--accent-rgb, 99, 102, 241), 0.1);
}

.delete-btn:hover {
    opacity: 1;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.comment-actions {
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.comment-item:hover .comment-actions {
    opacity: 1;
}

.report-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1070;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.report-overlay.open {
    display: flex;
}

.report-panel {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: reportSlideIn 0.3s ease;
}

@keyframes reportSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.report-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.report-panel-header .btn-link {
    color: var(--text-secondary);
}

.report-panel-body {
    padding: 1.5rem;
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.report-reason-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.report-reason-item:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb, 99, 102, 241), 0.05);
}

.report-reason-item input[type="radio"] {
    margin-right: 0.75rem;
    flex-shrink: 0;
    accent-color: #dc3545;
}

.report-actions-section {
    margin-top: 0.5rem;
}

.report-action-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.report-action-item:hover {
    border-color: var(--accent);
}

.report-action-item input[type="checkbox"] {
    margin-right: 0.75rem;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.report-panel-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* Movie Select Modal */
.movie-select-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: 1px solid transparent;
    margin-bottom: 0.4rem;
}

.movie-select-item:hover {
    background-color: var(--card-bg);
    border-color: var(--accent);
}

.movie-select-added {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.movie-select-poster {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

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

/* Remove Movie Button */
.remove-movie-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(220, 53, 69, 0.85);
    color: white;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.profile-movie-card:hover .remove-movie-btn {
    opacity: 1;
}

.remove-movie-btn:hover {
    background: rgba(220, 53, 69, 1);
}

/* Filter Panel - Mobile/Tablet Slide-in */
.filter-side-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1039;
    width: 40px;
    height: 48px;
    border: none;
    border-radius: 0 10px 10px 0;
    background-color: var(--accent);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 8px var(--shadow);
    cursor: pointer;
    transition: background-color 0.2s ease, left 0.3s ease;
}

.filter-side-tab:hover {
    background-color: var(--accent-hover);
}

.filter-side-tab.filter-tab-hidden {
    left: -40px;
}

.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-overlay.filter-open {
    display: block;
    opacity: 1;
}

@media (max-width: 991.98px) {
    #filterSidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        z-index: 1050;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 0 !important;
        margin: 0 !important;
    }

    #filterSidebar .card {
        border: none;
        border-radius: 0;
        height: 100%;
        min-height: 100vh;
    }

    #filterSidebar.filter-open {
        left: 0;
    }

    body.filter-panel-active {
        overflow: hidden;
    }
}

/* Settings - Avatar Preview */
.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    display: block;
    margin: 0 auto;
}

/* Notifications - unread highlight */
.bg-accent-subtle {
    background-color: rgba(var(--accent-rgb, 99, 102, 241), 0.08) !important;
}

/* ===== Yardım Sistemi (Wanted Help) ===== */

.wanted-help-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.wanted-help-card:hover {
    box-shadow: 0 4px 12px var(--shadow);
}

.wanted-help-poster {
    width: 60px;
    height: 90px;
    object-fit: cover;
}

.help-toggle-btn .help-chevron {
    font-size: 0.75em;
    transition: transform 0.2s ease;
}

.help-chat-area {
    border-top: 1px solid var(--border);
    background: var(--bg-secondary, var(--card-bg));
}

.help-messages {
    max-height: 300px;
    overflow-y: auto;
}

.help-message {
    border-bottom: 1px solid var(--border);
}

.help-message:last-child {
    border-bottom: none;
}

.help-confirm-btn {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
}

/* Unvan Badgeleri */
.help-title-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    line-height: 1.4;
}

.help-title-helper {
    color: #0dcaf0;
    background: rgba(13, 202, 240, 0.12);
}

.help-title-hunter {
    color: #198754;
    background: rgba(25, 135, 84, 0.12);
}

.help-title-expert {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.12);
}

.help-title-legend {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.12);
}
