/* ═══════════════════════════════════════════════════════════════════════════
   AcheiGP.com — Página de Detalhes do Anúncio (TGNHOST)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── GALLERY ────────────────────────────────────────────────────────────── */
.ad-gallery-section {
    max-width: 800px;
    margin: 0 auto 25px;
    padding: 0 20px;
}

.ad-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #12131a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #32364c;
}

.ad-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #12131a;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(18, 19, 26, 0.8);
    border: 1px solid #32364c;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-nav:hover {
    background: rgba(255, 51, 102, 0.3);
    border-color: #ff3366;
}

.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

.gallery-counter {
    position: absolute;
    bottom: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 2;
}

/* Thumbnails */
.ad-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.ad-gallery-thumbs img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.ad-gallery-thumbs img.active,
.ad-gallery-thumbs img:hover {
    opacity: 1;
    border-color: #ff3366;
}

/* ── DETAIL LAYOUT ──────────────────────────────────────────────────────── */
.ad-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* ── INFO COLUMN ────────────────────────────────────────────────────────── */
.ad-detail-info h1 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 12px;
}

.vip-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    vertical-align: middle;
    letter-spacing: 0.5px;
    margin-left: 8px;
}
.vip-badge--ouro {
    background: linear-gradient(135deg, #ffd700, #b8960f);
    color: #121212;
}
.vip-badge--prata {
    background: linear-gradient(135deg, #c0c0c0, #8a8a8a);
    color: #121212;
}
.vip-badge--bronze {
    background: linear-gradient(135deg, #cd7f32, #8b5a2b);
    color: #fff;
}
.vip-badge--relampago {
    background: linear-gradient(135deg, #ff3366, #ffcc00);
    color: #fff;
}

.ad-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.ad-meta span {
    font-size: 15px;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 600;
}

.ad-price {
    background: rgba(255, 204, 0, 0.15);
    color: #ffcc00;
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.ad-location {
    background: rgba(100, 140, 255, 0.12);
    color: #c5d0ff;
    border: 1px solid rgba(100, 140, 255, 0.2);
}

.ad-gender {
    background: rgba(255, 51, 102, 0.1);
    color: #ff3366;
    border: 1px solid rgba(255, 51, 102, 0.2);
}

/* Stats bar */
.ad-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 1px solid #32364c;
    border-bottom: 1px solid #32364c;
}

.ad-stats span {
    font-size: 14px;
    color: #a0a5b5;
}

/* Description */
.ad-description {
    margin-bottom: 20px;
}

.ad-description h3 {
    font-size: 15px;
    color: #ff3366;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.ad-description p {
    color: #c5c8d3;
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Tags */
.ad-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.ad-tags .ad-tag {
    display: inline-block;
    background-color: #252836;
    color: #a0a5b5;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 3px;
    border: 1px solid #32364c;
}
/* ── SIDEBAR ────────────────────────────────────────────────────────────── */
.ad-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Author card */
.author-card {
    background: #1f222f;
    border: 1px solid #32364c;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.author-card a {
    text-decoration: none;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #252836;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 10px;
    border: 2px solid #ff3366;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
}

.author-since {
    font-size: 12px;
    color: #626880;
}

/* WhatsApp button */
.btn-whatsapp-contact {
    display: block;
    background: #25d366;
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-whatsapp-contact:hover {
    background: #1ebd58;
}

/* Action buttons */
.ad-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-action {
    background: #1f222f;
    border: 1px solid #32364c;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action:hover {
    background: #252836;
    border-color: #ff3366;
}

.btn-action.active {
    border-color: #ff3366;
    background: rgba(255, 51, 102, 0.1);
}

.btn-action.active.liked {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.btn-action.active.faved {
    border-color: #ffcc00;
    background: rgba(255, 204, 0, 0.1);
}

.btn-action-danger {
    color: #a0a5b5;
}

.btn-action-danger:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}

/* Related ads */
.related-ads {
    background: #1f222f;
    border: 1px solid #32364c;
    border-radius: 8px;
    padding: 15px;
}

.related-ads h3 {
    font-size: 13px;
    color: #ff3366;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

#related-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-card {
    display: flex;
    gap: 10px;
    background: #252836;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.related-card:hover {
    background: #2d3040;
}

.related-card-img {
    width: 70px;
    height: 60px;
    flex-shrink: 0;
    background: #171923;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #626880;
    font-size: 10px;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-info {
    padding: 8px 8px 8px 0;
    min-width: 0;
}

.related-card-info h4 {
    font-size: 13px;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-card-info p {
    font-size: 11px;
    color: #a0a5b5;
}

/* ── LOADING / ERROR STATES ─────────────────────────────────────────────── */
.ad-loading {
    text-align: center;
    padding: 60px 20px;
    color: #626880;
}

.ad-error {
    text-align: center;
    padding: 60px 20px;
    color: #e74c3c;
}

.ad-error h2 {
    margin-bottom: 10px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 850px) {
    .ad-detail-layout {
        grid-template-columns: 1fr;
    }

    .ad-detail-sidebar {
        order: -1;
    }

    .ad-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .btn-action {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

/* ── BONUS BANNER (first ad creation) ──────────────────────────────────── */
.bonus-banner {
    max-width: 800px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.bonus-banner-inner {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.12), rgba(255, 51, 102, 0.08));
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.bonus-banner-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.bonus-banner-text {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bonus-banner-text strong {
    color: #ffcc00;
    font-size: 15px;
}

.bonus-banner-text span {
    color: #a0a5b5;
    font-size: 13px;
}

.bonus-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-bonus-boost {
    background: #ffcc00;
    color: #12131a;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-bonus-boost:hover {
    background: #ffd633;
}

.btn-bonus-later {
    background: transparent;
    color: #a0a5b5;
    border: 1px solid #32364c;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-bonus-later:hover {
    background: #252836;
}

/* ── OWNER ACTIONS CARD ─────────────────────────────────────────────────── */
.owner-actions-card {
    background: #1f222f;
    border: 1px solid #ffcc00;
    border-radius: 8px;
    padding: 18px;
    margin: 0 0 16px;
}

.owner-actions-title {
    margin: 0 0 4px;
    font-size: 15px;
    color: #ffcc00;
}

.owner-actions-subtitle {
    margin: 0 0 14px;
    font-size: 13px;
    color: #a0a5b5;
}

.owner-actions-subtitle strong {
    color: #ffcc00;
}

/* Boost tier selector */
.boost-tier-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.boost-tier-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #252836;
    border: 1px solid #32364c;
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.boost-tier-option:hover {
    background: #2d3040;
}

.boost-tier-option.selected {
    border-color: #ffcc00;
    background: rgba(255, 204, 0, 0.08);
}

.boost-tier-option input[type="radio"] {
    display: none;
}

.boost-tier-radio {
    width: 16px;
    height: 16px;
    border: 2px solid #626880;
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}

.boost-tier-option.selected .boost-tier-radio {
    border-color: #ffcc00;
    background: #ffcc00;
    box-shadow: inset 0 0 0 2px #252836;
}

.boost-tier-label {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
    min-width: 100px;
}

.boost-tier-desc {
    font-size: 11px;
    color: #626880;
}

/* Days slider */
.boost-days-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.boost-days-row label {
    font-size: 12px;
    color: #a0a5b5;
    flex-shrink: 0;
}

.boost-days-row input[type="range"] {
    flex: 1;
    accent-color: #ffcc00;
}

#boost-dias-val {
    font-weight: 700;
    color: #fff;
    min-width: 28px;
    text-align: center;
    font-size: 14px;
}

/* Cost preview */
.boost-cost-preview {
    font-size: 13px;
    color: #a0a5b5;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: #252836;
    border-radius: 6px;
}

.boost-cost-preview strong {
    font-size: 15px;
}

#boost-first-discount {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
}

/* Owner buttons */
.btn-boost-activate {
    width: 100%;
    background: #ffcc00;
    color: #12131a;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-boost-activate:hover {
    background: #ffd633;
}

.btn-boost-activate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-owner-secondary {
    display: block;
    width: 100%;
    background: #252836;
    color: #a0a5b5;
    border: 1px solid #32364c;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
}

.btn-owner-secondary:hover {
    background: #2d3040;
    color: #fff;
}

.btn-owner-danger {
    width: 100%;
    background: transparent;
    color: #e74c3c;
    border: 1px solid #3d1515;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
}

.btn-owner-danger:hover {
    background: rgba(231, 76, 60, 0.1);
}

/* Owner boost status */
.owner-boost-status {
    margin-bottom: 12px;
}

.boost-tier-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.boost-tier--ouro { background: linear-gradient(135deg, #ffd700, #b8960f); color: #121212; }
.boost-tier--prata { background: linear-gradient(135deg, #c0c0c0, #8a8a8a); color: #121212; }
.boost-tier--bronze { background: linear-gradient(135deg, #cd7f32, #8b5a2b); color: #fff; }
.boost-tier--relampago { background: linear-gradient(135deg, #ff3366, #ffcc00); color: #fff; }

.boost-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.boost-info-grid div {
    font-size: 12px;
    color: #a0a5b5;
}

.boost-info-grid div span {
    display: block;
    font-size: 11px;
    color: #626880;
    margin-bottom: 2px;
}

.boost-info-grid div strong {
    color: #fff;
}

.owner-actions-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── REPORT DIALOG ─────────────────────────────────────────────────────────── */
#report-dialog-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.report-dialog {
    background: #1f222f;
    border: 1px solid #32364c;
    border-radius: 8px;
    padding: 24px;
    width: 100%;
    max-width: 420px;
    color: #fff;
}

.report-dialog h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #ff3366;
}

.report-dialog label {
    display: block;
    font-size: 13px;
    color: #a0a5b5;
    margin: 12px 0 4px;
}

.report-dialog select,
.report-dialog textarea {
    width: 100%;
    background: #252836;
    border: 1px solid #32364c;
    border-radius: 6px;
    color: #fff;
    padding: 10px;
    font-size: 14px;
    font-family: inherit;
}

.report-dialog select:focus,
.report-dialog textarea:focus {
    outline: none;
    border-color: #ff3366;
}

.report-dialog textarea {
    resize: vertical;
    min-height: 60px;
}

.report-dialog-btns {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: flex-end;
}

.report-dialog-btns .btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #32364c;
    background: #252836;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.report-dialog-btns .btn:hover {
    background: #2d3040;
}

.report-dialog-btns .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── RESPONSIVE (mobile) ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ad-detail-layout {
        grid-template-columns: 1fr;
        padding: 0 12px 30px;
        gap: 15px;
    }

    .ad-detail-sidebar {
        order: -1;
    }

    .ad-gallery-section {
        padding: 0;
    }

    .ad-gallery-main {
        aspect-ratio: 4 / 3;
    }

    .ad-detail-info h1 {
        font-size: 22px;
    }

    .ad-actions {
        flex-wrap: wrap;
    }

    .btn-action {
        flex: 1;
        min-width: 100px;
    }

    .author-card {
        padding: 14px;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .ad-gallery-thumbs img {
        width: 60px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .ad-detail-info h1 {
        font-size: 19px;
    }

    .ad-meta span {
        font-size: 13px;
        padding: 5px 10px;
    }

    .ad-description p {
        font-size: 14px;
    }

    .ad-gallery-main {
        aspect-ratio: 1 / 1;
    }

    .gallery-nav {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .ad-gallery-thumbs img {
        width: 50px;
        height: 40px;
    }

    .comment-card {
        padding: 12px;
    }

    .comment-card .comment-avatar {
        width: 32px;
        height: 32px;
    }

    .ad-detail-layout {
        padding: 0 4px 20px;
        gap: 10px;
    }
}
