/* 
==============================================
LOCATION MODAL DARK MODE FIX
==============================================
This file contains the correct dark mode styles for the location modal
that appears when clicking the location filter button in the wall controls.
*/

.dark-mode .wall-location-modal .wall-location-modal-content {
    background: #080808 !important;
    border: 1px solid rgba(255, 252, 241, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    color: #fffcf1 !important;
}

.dark-mode .wall-location-modal .wall-location-modal-header {
    border-bottom: 1px solid #444 !important;
}

.dark-mode .wall-location-modal .wall-location-modal-header h3 {
    color: #ffffff !important;
}

.dark-mode .wall-location-modal .close-btn {
    color: #AAA !important;
}

.dark-mode .wall-location-modal .close-btn:hover {
    color: #FFF !important;
}

.dark-mode .wall-location-modal .wall-location-search-input {
    background-color: #3a3a3a !important;
    color: #D4D4D4 !important;
    border: 1px solid #555 !important;
}

.dark-mode .wall-location-modal .wall-city-chip {
    background-color: #3a3a3a !important;
    color: #D4D4D4 !important;
    border: 1px solid #555 !important;
}

.dark-mode .wall-location-modal .wall-city-chip:hover {
    background-color: #4a4a4a !important;
    border-color: #666 !important;
}

.dark-mode .wall-location-modal .wall-city-chip.selected {
    background-color: #f10000 !important;
    color: white !important;
    border-color: #f10000 !important;
}

/* --- My Posts Modal Tab Fix --- */
.dark-mode .my-posts-tab {
    color: #ffffff !important;
}

/* --- Wall Control Buttons - Remove Background --- */
.dark-mode .wall-location-btn,
.dark-mode .wall-search-button,
.dark-mode .wall-filter-btn {
    background-color: transparent !important;
}

/* Sort trigger should have transparent background to match light mode */
.dark-mode .wall-sort-trigger {
    background-color: transparent !important;
    color: #D4D4D4 !important;
    border: none !important;
}

/* --- Wall Control Buttons - Hover & Focus States --- */
.dark-mode .wall-location-btn:hover,
.dark-mode .wall-location-btn:focus,
.dark-mode .wall-search-button:hover,
.dark-mode .wall-search-button:focus,
.dark-mode .wall-filter-btn:hover,
.dark-mode .wall-filter-btn:focus {
    background-color: #3a3a3a !important;
}

/* Sort trigger hover state */
.dark-mode .wall-sort-trigger:hover,
.dark-mode .wall-sort-trigger:focus {
    background-color: #4a4a4a !important;
}

/* --- Consistent Border Colors --- */
.dark-mode .wall-search-button {
    border-color: #333 !important;
}

/* --- Remove White Border/Outline from Sort Trigger --- */
.dark-mode .wall-sort-trigger:hover,
.dark-mode .wall-sort-trigger:focus {
    box-shadow: none !important;
    outline: none !important;
}

.wall-empty-message {
    text-align: center;
    font-size: 1rem;
    width: 100%;
    max-width: var(--letitout-content-max-width, 600px);
    margin: 0 auto 1rem;
    padding: 2.3rem 1.6rem 2.1rem;
    background: #fff;
    border: 1px solid #f2f2f2;
    border-radius: 12px;
    box-shadow: none;
}

.wall-empty-message .wall-empty-title {
    margin: 0;
    line-height: 1.3;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--letitout-text-primary, #141414);
}

.wall-empty-message .wall-empty-subtitle {
    margin: 0.7rem auto 0;
    max-width: 26rem;
    line-height: 1.45;
    font-size: 1rem;
    font-weight: 500;
    color: var(--letitout-text-muted, #4a4a4a);
}

.wall-empty-write-block {
    margin-top: 1.75rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.wall-empty-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--letitout-radius-md, 12px);
    background: #f10000;
    color: #fff;
    font-family: var(--letitout-font-family, 'DM Sans', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.wall-empty-cta-btn:hover,
.wall-empty-cta-btn:focus {
    background: #c90000;
    outline: none;
}

.wall-empty-cta-btn:active {
    transform: scale(0.98);
}

.dark-mode .wall-empty-message {
    background: #080808;
    border: 1px solid rgba(255, 252, 241, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.dark-mode .wall-empty-message .wall-empty-title {
    color: #ffffff;
}

.dark-mode .wall-empty-message .wall-empty-subtitle {
    color: #b8b8b8;
}

/* Mobile override to ensure the fix works on all screen sizes */
@media (max-width: 768px) {
    .wall-empty-message {
        padding: 1.8rem 1rem 1.7rem;
        border-radius: 10px;
    }

    .wall-empty-message .wall-empty-title {
        font-size: 1.2rem;
    }

    .wall-empty-message .wall-empty-subtitle {
        font-size: 0.95rem;
        margin-top: 0.6rem;
    }

    .wall-empty-write-block {
        margin-top: 1.35rem;
    }

    /* Match base dark modal (lines 9–14); do not revert to gray card on small screens */
    .dark-mode .wall-location-modal .wall-location-modal-content {
        background: #080808 !important;
        border: 1px solid rgba(255, 252, 241, 0.1) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
        color: #fffcf1 !important;
    }
} 