/* List view page - Citaideal Rose/Violet Theme */

a { color: var(--color-primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-secondary); }

.board-wrapper { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 40px 20px 100px; 
    display: flex; 
    flex-direction: column; 
    gap: 30px;
}

.top-bar { 
    display: flex; 
    justify-content: flex-end; 
    gap: 14px; 
    flex-wrap: wrap;
}

.nav-btn { 
    padding: 12px 24px; 
    border-radius: var(--radius-pill); 
    border: 2px solid var(--color-muted); 
    background: var(--color-dark);
    color: #fff; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer; 
    transition: all 0.3s ease;
}

.nav-btn:hover { 
    background: var(--color-secondary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 40, 138, 0.5);
}

/* Footer link style for contrast and consistency */
.footer-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    background: var(--color-primary);
    color: #fff !important;
    border-radius: 22px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s;
}
.footer-link:hover, .footer-link:focus {
    background: var(--color-secondary);
    color: #fff;
    text-decoration: underline;
}

.hero-banner { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 25px; 
    padding: 35px 40px; 
    border-radius: var(--radius-xl); 
    background: var(--color-dark);
    border: 2px solid var(--color-secondary); 
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;

    /* Para distribuir los divs "around" */
    justify-content: space-around;
    justify-items: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 50%, var(--color-secondary) 100%);
}

.hero-left, .hero-center, .hero-right { display: flex; flex-direction: column; gap: 18px; max-width: 300px; justify-self: flex-end; }
.hero-left { align-items: center; justify-content: center; justify-self: flex-start;}

.hero-illustration { 
    width: 220px;
    /* height: 160px; */
    object-fit: contain;
    filter: drop-shadow(0 15px 40px rgba(255,105,180,0.5));
    transition: transform 0.4s ease;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-illustration:hover { transform: scale(1.08); }

.post-now-btn { 
    width: 100%; 
    border-radius: var(--radius-pill); 
    letter-spacing: 0.5px;
}

.brand-title { 
    font-size: 2.6em; 
    font-weight: 700; 
    letter-spacing: 3px; 
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 15px rgba(255,105,180,0.4);
}

.preference-banner { 
    font-size: 0.95em; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    color: var(--color-primary);
    font-weight: 500;
}

.view-toggle { 
    display: inline-flex; 
    border-radius: var(--radius-pill); 
    border: 2px solid var(--color-muted); 
    overflow: hidden;
    background: var(--color-dark);
}

.view-btn { 
    padding: 12px 28px; 
    background: transparent; 
    color: var(--color-muted); 
    border: none; 
    font-weight: 600; 
    letter-spacing: 0.5px; 
    cursor: pointer; 
    transition: all 0.3s ease;
}

.view-btn:hover { color: #fff; }

.view-btn.active { 
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%); 
    color: #fff;
    box-shadow: 0 4px 15px rgba(255,105,180,0.35);
}

.hero-info { 
    font-size: 0.85em; 
    color: var(--color-muted); 
    letter-spacing: 1px; 
    text-transform: uppercase;
}

.hero-right { 
    background: var(--color-dark);
    border-radius: var(--radius-lg); 
    border: 2px solid var(--color-primary); 
    padding: 22px 24px;
}

.location-label { 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: var(--color-primary); 
    font-size: 0.75em;
    font-weight: 600;
}

.location-value { 
    font-size: 1.15em; 
    font-weight: 600;
    color: #fff;
}

.location-chip { 
    padding: 10px 18px; 
    border-radius: var(--radius-pill); 
    border: 2px solid var(--color-secondary); 
    background: var(--color-dark);
    color: #fff; 
    display: inline-flex; 
    gap: 10px; 
    align-items: center;
}

.location-actions { display: flex; gap: 12px; }

.location-btn { 
    flex: 1; 
    border-radius: var(--radius-md); 
    border: 2px solid var(--color-primary); 
    background: transparent;
    color: var(--color-primary); 
    padding: 10px 0; 
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.location-btn:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 105, 180, 0.5);
}

.board-stats { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.9em; 
    color: var(--color-muted); 
    letter-spacing: 0.5px;
    padding: 0 10px;
}

.posts-board { 
    background: var(--color-dark);
    border: 2px solid var(--color-secondary); 
    border-radius: var(--radius-xl); 
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.posts-list { display: flex; flex-direction: column; }

.post-item { 
    display: grid; 
    grid-template-columns: 110px 1fr; 
    gap: 20px; 
    padding: 22px 26px; 
    border-bottom: 1px solid var(--color-muted); 
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-item:hover { 
    background: var(--color-secondary);
    transform: translateX(6px);
}

.post-thumbnail { position: relative; }

.thumbnail-img { 
    width: 110px; 
    height: 110px; 
    object-fit: cover; 
    border-radius: var(--radius-md); 
    border: 2px solid var(--color-secondary);
    transition: all 0.3s ease;
}

.post-item:hover .thumbnail-img {
    border-color: var(--color-primary);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5);
}

.video-label, .photo-label { 
    position: absolute; 
    top: 8px; 
    left: 8px; 
    padding: 5px 10px; 
    border-radius: var(--radius-pill); 
    font-size: 0.7em; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #fff;
}

.video-label { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%); }
.photo-label { background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%); }

.post-body { display: flex; flex-direction: column; gap: 10px; justify-content: center; }

.post-headline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.badge { 
    background: var(--color-secondary);
    border-radius: var(--radius-pill); 
    padding: 4px 12px; 
    font-size: 0.7em; 
    letter-spacing: 0.5px; 
    border: 2px solid var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.post-title { 
    font-size: 1.1em; 
    font-weight: 600; 
    color: #fff;
}

.post-location-line { color: var(--color-primary); font-size: 0.9em; }
.post-snippet { color: var(--color-muted); font-size: 0.9em; line-height: 1.5; }

.post-footer { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.8em; 
    color: var(--color-muted);
    margin-top: 5px;
}

.post-item.type-post { grid-template-columns: 1fr; }
.post-item.type-post .thumbnail-img { width: 100%; height: 280px; border-radius: var(--radius-lg); }

.no-posts { 
    text-align: center; 
    padding: 60px 30px; 
    color: var(--color-muted);
}

.no-posts i { 
    font-size: 3em; 
    color: var(--color-primary); 
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 0 30px rgba(255,105,180,0.5);
}

.no-posts p { margin: 8px 0; }

/* Modal Styles */
.modal { 
    display: none; 
    position: fixed; 
    inset: 0; 
    z-index: 1000; 
    background: rgba(51, 51, 51, 0.95); 
    backdrop-filter: blur(12px); 
    padding: 30px 20px;
}

.modal-content { 
    max-width: 920px; 
    margin: 0 auto; 
    background: var(--color-dark);
    border-radius: var(--radius-xl); 
    border: 3px solid var(--color-primary); 
    box-shadow: var(--shadow-lg); 
    display: flex; 
    flex-direction: column; 
    max-height: calc(100vh - 80px);
    overflow: hidden;
}

.modal-header { 
    padding: 26px 32px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%); 
    color: #fff; 
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-title { 
    font-size: 1.5em; 
    font-weight: 600; 
    letter-spacing: 1px;
}

.close-btn { 
    background: var(--color-muted); 
    border: none; 
    color: var(--color-dark); 
    width: 46px; 
    height: 46px; 
    border-radius: 50%; 
    font-size: 1.4em; 
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #fff;
    transform: rotate(90deg);
}

.modal-body { padding: 0; flex: 1; overflow: scroll; }

.modal-layout { display: flex; flex-wrap: wrap; height: 100%; }

.modal-info { 
    flex: 1 1 320px; 
    padding: 30px; 
    border-right: 2px solid var(--color-secondary); 
    display: flex; 
    flex-direction: column; 
    gap: 20px;
    background: var(--color-dark);

/* Pagination controls */
.pagination-controls { padding: 12px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.pagination-btn {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid rgba(255,255,255,0.06);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.15s ease;
}
.pagination-btn:hover { background: rgba(255,105,180,0.06); transform: translateY(-1px); }
.pagination-btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.pagination-btn.active {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: #fff;
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 6px 20px rgba(255,105,180,0.25);
}
}

.modal-info h3 { color: var(--color-primary); font-size: 1.1em; }
.modal-info p { color: var(--color-muted); line-height: 1.7; }

.modal-current-label { 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    font-size: 0.7em; 
    color: var(--color-muted);
    font-weight: 600;
}

.modal-current { 
    padding: 16px; 
    border-radius: var(--radius-md); 
    background: var(--color-dark);
    border: 2px dashed var(--color-primary);
    color: #fff;
    font-weight: 500;
}

.modal-current.is-empty { color: var(--color-muted); }

.modal-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-tips li {
    padding: 10px 0;
    color: var(--color-muted);
    font-size: 0.9em;
    border-bottom: 1px solid var(--color-muted);
}

.modal-tips li:last-child { border-bottom: none; }

.modal-tips i {
    color: var(--color-primary);
    margin-right: 12px;
    width: 16px;
}

.modal-clear-btn { 
    align-self: flex-start; 
    border: 2px solid var(--color-primary); 
    background: transparent; 
    color: var(--color-primary); 
    padding: 10px 20px; 
    border-radius: var(--radius-pill); 
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.modal-clear-btn:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 105, 180, 0.5);
}

.confirm-btn {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.confirm-btn:not(:disabled):hover {
    box-shadow: 0 8px 25px rgba(255,105,180,0.4);
    transform: translateY(-2px);
}

.modal-list { 
    flex: 2 1 400px; 
    padding: 28px; 
    max-height: 520px; 
    overflow-y: auto;
}

.modal-list-header {
    margin-bottom: 18px;
    color: var(--color-muted);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.location-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-item { 
    padding: 14px 20px; 
    border-radius: var(--radius-md); 
    background: var(--color-dark);
    border: 2px solid var(--color-muted);
    cursor: pointer; 
    transition: all 0.3s ease;
    color: #fff;
}

.location-item:hover { 
    background: var(--color-secondary);
    border-color: var(--color-primary);
    transform: translateX(6px);
}

.location-item.selected { 
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%); 
    border-color: var(--color-primary);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

/* Scrollbar Styles */
.modal-list::-webkit-scrollbar { width: 8px; }
.modal-list::-webkit-scrollbar-track { background: var(--color-dark); border-radius: 4px; }
.modal-list::-webkit-scrollbar-thumb { background: linear-gradient(135deg, var(--color-secondary), var(--color-primary)); border-radius: 4px; }

.comment {
        border-bottom: 1px solid #444;
        padding: 15px 0;
    }
    .comment p {
        margin: 0 0 10px;
    }
    .comment strong {
        color: var(--color-primary);
    }
    .comment small {
        color: #888;
    }
    .reply-btn, .submit-reply-btn {
        background: none;
        border: 1px solid var(--color-secondary);
        color: var(--color-secondary);
        padding: 5px 10px;
        border-radius: 5px;
        cursor: pointer;
    }
    .reply-form {
        margin-top: 10px;
        margin-left: 20px;
    }
    .reply-form textarea {
        width: 100%;
        min-height: 60px;
    }
    .replies {
        margin-left: 20px;
        padding-left: 20px;
        border-left: 1px solid #444;
    }
    .comment.reply {
        background-color: #2a2a2a;
        padding: 10px;
        border-radius: 8px;
        margin-top: 10px;
    }

.show-replies-btn {
        background: none;
        border: none;
        color: var(--color-secondary);
        cursor: pointer;
        margin-top: 10px;
        font-size: 0.9em;
    }

/* Comment Section Styles */
.comments-section {
    background: var(--color-dark);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-top: 25px;
}

.comment-input-group {
    position: relative;
}

.comment-input-group textarea {
    width: 100%;
    min-height: 90px;
    background: #1c1c1c;
    border: 2px solid var(--color-muted);
    border-radius: var(--radius-md);
    color: #fff;
    padding: 12px 15px;
    font-size: 1em;
    transition: border-color 0.3s;
    resize: vertical;
}

.comment-input-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #ccc;
    font-size: 0.9em;
    user-select: none;
}

.custom-checkbox input {
    display: none;
}

.custom-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-muted);
    border-radius: 4px;
    margin-right: 10px;
    display: inline-block;
    position: relative;
    transition: background-color 0.2s, border-color 0.2s;
}

.custom-checkbox input:checked + .checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked + .checkmark:after {
    display: block;
}

.comment-form button {
    padding: 10px 25px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form button:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.comments-list {
    margin-top: 30px;
}

.comment {
    background: #222;
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-top: 15px;
    border-left: 3px solid var(--color-secondary);
    position: relative;
}

.comment p {
    margin: 0 0 10px;
    line-height: 1.6;
}

.comment strong {
    color: var(--color-primary);
}

.comment small {
    color: #888;
    margin-left: 10px;
}

.reply-btn, .show-replies-btn {
    background: none;
    border: none;
    color: var(--color-secondary);
    cursor: pointer;
    font-size: 0.9em;
    padding: 5px 0;
    font-weight: 600;
}
.reply-btn:hover, .show-replies-btn:hover {
    color: var(--color-primary);
}

.reply-form {
    margin-top: 15px;
    padding-left: 20px;
}

.replies {
    padding-left: 15px;
    margin-top: 15px;
    border-left: 2px solid #444;
}

.comment.reply {
    background: #2a2a2a;
    border-left-color: var(--color-primary-light);
}

@media (max-width: 992px) {
    .hero-banner { grid-template-columns: 1fr 1fr; text-align: center; padding: 30px; }
    .hero-left { order: -1; }
    .hero-right { margin-top: 10px; }
}

@media (max-width: 768px) {
    .post-item { grid-template-columns: 90px 1fr; gap: 15px; padding: 18px 20px; }
    .thumbnail-img { width: 90px; height: 90px; }
    .brand-title { font-size: 2em; }
}
@media (max-width: 690px) {
    .hero-banner { 
        grid-template-columns: 1fr; 
        text-align: center; 
        padding: 30px; 
    }
    .hero-left {
        justify-self: center;
    }
    .hero-right {
        gap: 8px !important;
        width: 100%;
        max-width: none !important;
        padding: 4px 24px;
    }
}

@media (max-width: 540px) {
    .hero-banner { padding: 25px 20px; }
    .hero-illustration { width: 120px; height: 120px; }
    .modal { padding: 15px; }
    .modal-layout { flex-direction: column; }
    .modal-list { order: 1; }
    .modal-actions { order: 2; padding-top: 16px; }
    .modal-info { order: 3; border-right: none; border-top: 2px solid var(--color-secondary); border-bottom: none; padding-top: 24px; }
    .post-item { grid-template-columns: 1fr; }
    .thumbnail-img { width: 100%; height: 200px; }
}
