:root {
    --primary-color: #00c853;
    --primary-hover: #2ecc71;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text-light: #e0e0e0;
    --text-muted: #9e9e9e;
    --border-color: #2c2c2c;
}

/* Dark theme placeholder */
.bg-dark.text-white::placeholder {
    color: #adb5bd8a !important; /* Light gray color */
}

a {
    text-decoration: none;
    color: inherit;
}

.text-muted {
    color: #e0e0e0 !important;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: "Poppins", sans-serif;
    padding-bottom: 70px;
}

html,
body {
    height: 100%;
}

.navbar {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    color: var(--primary-color);
}

.nav-link {
    color: var(--text-light) !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

/* Desktop Nav Specific */
.desktop-nav {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background-color: var(--border-color);
    margin: 0 15px;
}

.desktop-search {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 20px;
}

.desktop-search .search-bar {
    padding-left: 15px;
    padding-right: 15px;
}

/* Language badge styles */
.language-badge {
    background-color: rgba(0, 200, 83, 0.2);
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    cursor: pointer;
}

.language-badge i {
    margin-left: 4px;
    font-size: 10px;
}

.language-badge:hover {
    background-color: rgba(0, 200, 83, 0.3);
}

/* Audio story player */
.audio-story {
    background: rgba(0, 200, 83, 0.1);
    border-radius: 20px;
    padding: 10px 15px;
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.audio-story button {
    background: var(--primary-color);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    margin-right: 10px;
}

/* Prompt styles */
.prompt-container {
    margin-bottom: 15px;
}

.prompt-label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.prompt-hint {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* Voice recording UI */
.voice-recording {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.record-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.record-btn i {
    margin-right: 5px;
}

.recording-indicator {
    display: flex;
    align-items: center;
    color: #ff5252;
}

.recording-indicator .pulse {
    width: 10px;
    height: 10px;
    background: #ff5252;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

/* Story enhancement styles */
.enhanced-story {
    background: rgba(0, 200, 83, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 10px;
    margin-top: 10px;
    border-radius: 0 5px 5px 0;
}

.original-story {
    font-style: italic;
    color: var(--text-muted);
}

/* Tag selector styles */
.tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag-option {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-option:hover {
    background: rgba(0, 200, 83, 0.1);
}

.tag-option.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Hero section styles */
.hero-container {
    position: relative;
    margin-top: 56px;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: brightness(0.7);
    opacity: 0.9;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;

    background: linear-gradient(
        135deg,
        rgba(0, 200, 83, 0.2),
        rgba(0, 0, 0, 0.8)
    );
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: white;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 700px;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-hero {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-hero-primary {
    background-color: var(--primary-color);
    border: none;
}

.btn-hero-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 200, 83, 0.3);
    color: var(--border-color);
}

.btn-hero-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-hero-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.search-bar {
    width: 100%;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #444;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
}

.search-bar:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.2);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.btn-upload {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    border: none;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
    transition: all 0.3s ease;
    touch-action: none; /* Important for mobile drag */
    cursor: grab;
}

.btn-upload:hover {
    background-color: var(--primary-hover);
    transform: scale(1.1);
}

.action-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--card-bg);
    padding: 15px 0;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border-color);
    z-index: 1040;
}

.action-icon {
    color: var(--text-muted);
    font-size: 22px;
    transition: all 0.2s ease;
    position: relative;
}

.action-icon.active {
    color: var(--primary-color);
}

.action-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.action-icon .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 10px;
    background-color: var(--primary-color);
}

.content-wrapper {
    flex: 1 0 auto;
    min-height: calc(
        100vh - footer-height
    ); /* Adjust footer-height to your footer's actual height */
}

.footer {
    flex-shrink: 0;
    background-color: var(--card-bg);
    color: var(--text-muted);
    padding: 30px 0;
    text-align: center;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    /* object-fit: fill; */
    /* object-fit: none; */
    /* object-fit: scale-down; */
    transition: transform 0.5s ease;
    cursor: pointer;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.action-btns {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    display: flex;
    align-items: center;

    background: none;
    border: none;
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-size: 18px;
}

.action-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.action-btn.liked {
    color: #ff5252;
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 2;
    color: var(--text-light);
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tag {
    background-color: rgba(0, 200, 83, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    transition: all 0.2s ease;
    padding: 4px 12px;
    font-size: 0.8rem;
    cursor: pointer;
}

.tag:hover {
    background-color: var(--primary-color);
    color: var(--border-color);
    cursor: pointer;
}

.translation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.translation-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 12px;
}

/* Image Modal Styles */
.image-modal .modal-content {
    background-color: var(--dark-bg);
    border: none;
    border-radius: 0;
}

.image-modal .modal-header {
    border-bottom: none;
    padding: 15px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.image-modal .modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.modal-preview-image {
    object-fit: cover;
}

.image-modal .modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    margin: 0 auto;
}

.image-modal .modal-footer {
    border-top: none;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.7);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.image-modal .modal-dialog {
    max-width: 90%;
    margin: 20px auto;
}

.image-modal .close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.image-modal .close-btn:hover {
    opacity: 1;
}

.image-actions {
    display: flex;
    gap: 15px;
}

.image-action-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.image-action-btn:hover {
    color: var(--primary-color);
}

.image-action-btn.liked {
    color: #ff5252;
}

.image-action-btn .count {
    font-size: 0.9rem;
    font-family: "Poppins", sans-serif;
}

/* Search Modal */
.search-modal .modal-content {
    background-color: var(--dark-bg);
    border: none;
    border-radius: 0;
}

.search-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 15px;
}

.search-modal .modal-body {
    padding: 20px;
}

/* image modal */
/* Image Modal Specific Styles */
.image-modal .modal-dialog {
    max-width: 600px;
    /* Medium size */
}

.image-modal .modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
}

.image-modal .modal-footer {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 0 0 0.3rem 0.3rem;
    padding: 12px 15px;
}

/* Details button styles */
.details-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.details-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Image action buttons */
.image-actions {
    display: flex;
    gap: 12px;
}

.image-action-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    padding: 0.3rem;
}

.image-action-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.image-action-btn.liked {
    color: #ff5252;
}

.image-action-btn .count {
    font-size: 0.8rem;
    font-family: "Poppins", sans-serif;
}

/* Close button */
.close-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-btn:hover {
    opacity: 1;
}

/* Responsive adjustments */

/* register & login */

.register-header {
    padding: 60px 20px 30px;
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(0, 200, 83, 0.2),
        rgba(0, 0, 0, 0.8)
    );
}

.register-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-control {
    background-color: #2a2a2a;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 12px 15px;
}

.form-control:focus {
    background-color: #2a2a2a;
    color: var(--text-light);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.2);
}

.form-label {
    color: var(--text-light);
}

.input-group-text {
    background-color: #2a2a2a;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.btn-register {
    background-color: var(--primary-color);
    border: none;
    padding: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider-text {
    padding: 0 10px;
    color: var(--text-muted);
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.login-link {
    text-align: center;
    margin-top: 20px;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.password-toggle {
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.validation-message {
    font-size: 13px;
    margin-top: 5px;
}

.valid-feedback {
    color: var(--primary-color);
}

.invalid-feedback {
    color: #ff5252;
}

/* login form modal */
/* Password Toggle Styles */
.position-relative {
    position: relative;
}

.input-group-text {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
    color: #9e9e9e !important;
}

.btn-link.text-muted {
    color: #9e9e9e !important;
    text-decoration: none;
    padding: 0 10px;
    transition: color 0.3s;
}

.btn-link.text-muted:hover {
    color: #00c853 !important;
}

.invalid-feedback {
    color: #ff5252;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.is-invalid {
    border-color: #ff5252 !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 82, 82, 0.25) !important;
}

/* Adjust input group to align properly */
.input-group > .form-control {
    border-top-right-radius: 0.25rem !important;
    border-bottom-right-radius: 0.25rem !important;
}

.input-group > .input-group-text {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Enhanced profile picture Dropdown Styles */
.user-avatar {
    transition: all 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.nav-link:hover .user-avatar {
    border-color: rgba(0, 200, 83, 0.5);
    transform: scale(1.05);
}

.dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    background-color: rgba(30, 30, 30, 0.95) !important;
}

.dropdown-item {
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 2px 6px;
    width: auto;
}

.dropdown-item:hover {
    background-color: rgba(0, 200, 83, 0.1) !important;
}

.dropdown-item:active {
    background-color: rgba(0, 200, 83, 0.2) !important;
}

.dropdown-header {
    font-size: 0.75rem;
}

/* Active nav item styling */
.nav-link.active {
    color: #00c853 !important; /* Your primary green color */
    background-color: rgba(0, 200, 83, 0.1);
    border-radius: 4px;
    font-weight: 500;
    position: relative;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: #00c853;
    border-radius: 3px;
}

/* Disable pointer events for active item */
.nav-link.disabled {
    pointer-events: none;
    cursor: default;
}

/* Hover effect for non-active items */
.nav-link:not(.active):hover {
    color: rgba(0, 200, 83, 0.8) !important;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* ............................... */

.modal-content.bg-dark {
    border: 1px solid #444;
}

.offcanvas-start {
    width: 280px;
}

.form-control.bg-dark {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-color: #444 !important;
}

.form-control.bg-dark:focus {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    color: white !important;
}

/* Explore page specific styles */
.explore-header {
    padding: 80px 20px 40px;
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(0, 200, 83, 0.2),
        rgba(0, 0, 0, 0.8)
    );
    position: relative;
    margin-top: 56px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.search-container {
    max-width: 600px;
    margin: 5px auto;
    position: relative;
}

/* Improved Filter Section Styles */
.filter-section {
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
}

.btn-filter {
    background-color: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    margin: 2px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-filter:hover,
.btn-filter.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-filter i {
    margin-right: 3px;
    font-size: 0.9em;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Action Bar Styles */

.back-to-top {
    opacity: 0.3;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.back-to-top.visible {
    opacity: 0.7;
    transform: scale(1);
}

.back-to-top.visible:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* contests ................ */
.contests-header {
    padding: 80px 20px 40px;
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(0, 200, 83, 0.2),
        rgba(0, 0, 0, 0.8)
    );
    position: relative;
    margin-top: 56px; /* Navbar height */
}

.contest-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.contest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.contest-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.contest-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.contest-prize {
    background-color: rgba(255, 215, 0, 0.1);
    color: gold;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
}

.progress {
    height: 8px;
    background-color: #333;
    margin: 15px 0;
}

.progress-bar {
    background-color: var(--primary-color);
}

.tab-content {
    padding: 20px 0;
}

.winner-card {
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.winner-card:hover {
    transform: translateY(-5px);
}

.winner-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin: 0 auto 15px;
}

.winner-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: gold;
    color: black;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* stories .......................... */
.stories-header {
    padding: 80px 20px 40px;
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(0, 200, 83, 0.2),
        rgba(0, 0, 0, 0.8)
    );
    position: relative;
    margin-top: 56px; /* Navbar height */
}

.stories-container {
    max-width: 800px;
    margin: 0 auto;
}

.story-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.story-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.story-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.story-author {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.story-date {
    color: var(--text-muted);
    font-size: 14px;
}

.story-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.story-excerpt {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.story-tag {
    background-color: rgba(0, 200, 83, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.story-actions {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.story-action {
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.story-action:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.categories {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 15px 0;
    margin: 0 15px;
}

.category-btn {
    background-color: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 15px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-icon {
    font-size: 60px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* story_view ........................... */
/* Translation panel */
.translation-panel {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

/* Story content styles */
.story-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 20px;
}

.action-btn i {
    margin-right: 5px;
}

/* Comments section */
.comment-container:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.comments-section {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.comment {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 15px;
}

.comment-content {
    flex-grow: 1;
}

.comment-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.comment-action {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
}

/* photo-details ...................................... */

.photo-container {
    margin-top: 56px;
    /* Navbar height */
}

.photo-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background-color: black;
}

.photo-actions {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    padding: 15px;
}

.photo-meta {
    padding: 15px;
}

.photo-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.photo-location {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.photo-description {
    margin-bottom: 20px;
}

.photo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.comment-form {
    /* display: flex; */
    gap: 10px;
    margin-bottom: 20px;
}

.comment-input {
    flex: 1;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 20px;
    padding: 10px 15px;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-text {
    margin-bottom: 5px;
    font-size: 14px;
}

.comment-action:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.related-photos {
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.related-item {
    margin-bottom: 20px;
}

.related-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* contests tab */
@media (max-width: 576px) {
    #contestTabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    #contestTabs .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }

    .register-container {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Mobile-specific styles */
@media (max-width: 992px) {
    .filter-options {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .filter-options.expanded {
        max-height: 500px; /* Adjust based on your content */
    }

    .filter-toggle .fa-chevron-down {
        transition: transform 0.3s ease;
    }

    .filter-toggle.expanded .fa-chevron-down {
        transform: rotate(180deg);
    }
}

/* Desktop styles */
@media (min-width: 992px) {
    .filter-toggle {
        display: none !important;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .profile-header {
        padding: 60px 15px 20px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .gallery-item img {
        height: 150px;
    }

    .explore-header {
        padding: 60px 15px 30px;
    }

    .card-img-top {
        height: 200px;
    }

    .search-bar {
        padding: 10px 45px 10px 15px;
    }

    .photo-image {
        max-height: 50vh;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
    }

    .photo-title {
        font-size: 20px;
    }

    .story-image {
        max-height: 50vh;
    }

    .stories-header {
        padding: 60px 15px 30px;
    }

    .story-title {
        font-size: 20px;
    }

    .contests-header {
        padding: 60px 15px 30px;
    }

    .contest-image {
        height: 150px;
    }

    .winner-avatar {
        width: 80px;
        height: 80px;
    }

    .image-modal .modal-dialog {
        margin: 10px auto;
    }

    .details-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .image-actions {
        gap: 8px;
    }

    .image-action-btn {
        font-size: 1rem;
    }

    .hero-container {
        height: 60vh;
        min-height: 400px;
    }

    .hero-buttons .btn-hero {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .prompt-container textarea {
        height: 80px;
    }

    .image-modal .modal-footer {
        padding: 10px;
    }

    .image-action-btn {
        font-size: 1rem;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Profile ......................... */

.profile-header {
    padding: 80px 20px 30px;
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(0, 200, 83, 0.2),
        rgba(0, 0, 0, 0.8)
    );
    position: relative;
    margin-top: 56px; /* Navbar height */
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin: 0 auto 15px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 20px;
    font-weight: bold;
}

.stat-label {
    font-size: 14px;
    /* color: var(--text-muted); */
}

.profile-bio {
    max-width: 600px;
    margin: 0 auto;
}

.btn-edit {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid var(--text-muted);
    border-radius: 20px;
    padding: 5px 15px;
}

.btn-edit:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.nav-tabs {
    border-bottom: 1px solid var(--border-color);
    justify-content: center;
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    padding: 12px 20px;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: transparent;
    border-bottom: 2px solid var(--primary-color);
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
}

.gallery-item {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 10px;
    color: white;
}

.gallery-stats {
    display: flex;
    justify-content: space-between;
}

.achievement-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 200, 83, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.badge-icon {
    font-size: 24px;
    color: var(--primary-color);
}

/* Add to your existing styles */
.dropdown-menu-dark {
    background-color: #1a1a1a;
    border: 1px solid #333;
}

.dropdown-menu-dark .dropdown-item {
    color: #e9ecef;
    padding: 0.5rem 1rem;
}

.dropdown-menu-dark .dropdown-item:hover {
    background-color: #333;
    color: #fff;
}

.dropdown-menu-dark .dropdown-divider {
    border-color: #333;
}

/* bookmark */

.bookmark-btn {
    color: #6c757d;
    /* Default color */
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* .bookmark-btn:hover {
    color:   var(--primary-color);
} */

.bookmark-btn.bookmarked,
.bookmark-btn.bookmarked:hover {
    color: var(--primary-color);
    /* Active color (same as hover) */
}

.bookmark-btn i {
    transition: transform 0.2s ease;
}

.bookmark-btn.bookmarked i {
    transform: scale(1.1);
    animation: pulseBookmark 0.5s;
}

@keyframes pulseBookmark {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Comment styling */
.comment-container {
    transition: all 0.2s ease;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.comment-container:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.comment-content {
    line-height: 1.5;
    word-break: break-word;
}

/* Share Modal Styles - Moved outside loop */
.share-modal {
    font-family: "Poppins", sans-serif;
}

.share-content {
    animation: fadeInUp 0.3s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    width: 70px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.share-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    text-decoration: none;
    color: white;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.share-option:hover .share-icon {
    transform: scale(1.1);
}

.share-option small {
    font-size: 0.7rem;
    text-align: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Character counter styling */
.text-warning {
    color: #ffc107 !important;
    font-weight: bold;
}

.text-danger {
    color: #dc3545 !important;
    font-weight: bold;
}

/* Textarea styling */
.comment-textarea {
    transition: border-color 0.3s ease;
}

.comment-textarea:focus {
    border-color: #6c757d !important;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.report-btn {
    color: #6c757d;
    transition: all 0.2s;
}

.report-btn:hover {
    color: #dc3545;
}

.report-form .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* Black Pagination ................................................... */
.pagination-black .page-link {
    color: #000000;
    background-color: #ffffff;
    border-color: #dee2e6;
}

.pagination-black .page-item.active .page-link {
    color: #ffffff;
    background-color: #000000;
    border-color: #000000;
}

.pagination-black .page-link:hover {
    color: #000000;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}
