/* assets/css/style.css */

:root {
    --app-primary: #0d6efd;
    --app-card-radius: 12px;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    background-color: var(--bs-body-bg-subtle);
}

.max-w-400 { max-width: 400px; }
.max-h-300 { max-height: 300px; }
.max-h-350 { max-height: 350px; }
.width-320 { width: 320px; }
.display-none { display: none; }

/* Custom Profile Header */
.profile-cover-box {
    height: 220px;
    background-color: var(--bs-tertiary-bg);
    border-top-left-radius: var(--app-card-radius);
    border-top-right-radius: var(--app-card-radius);
    background-size: cover;
    background-position: center;
}

.profile-avatar-overlay {
    margin-top: -65px;
}

.profile-avatar-img {
    width: 120px;
    height: 120px;
    border: 4px solid var(--bs-body-bg);
}

/* Feed Post Card */
.post-card {
    border-radius: var(--app-card-radius);
    border: 1px solid var(--bs-border-color-translucent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: transform 0.15s ease-in-out;
}

/* Post Media Display - Complete Image Without Cropping */
.post-media-box {
    position: relative;
    width: 100%;
    max-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bs-tertiary-bg);
    border-radius: 12px;
    overflow: hidden;
}

.post-media-box img {
    max-width: 100%;
    max-height: 620px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.post-media-box img:hover {
    opacity: 0.96;
}

.post-media-box video {
    max-width: 100%;
    max-height: 620px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    background-color: var(--bs-tertiary-bg);
}

/* Hide empty video tags completely across all pages */
video:not([src]),
video[src=""] {
    display: none !important;
}

/* Publisher Media Preview */
#mediaPreviewBox {
    background-color: var(--bs-tertiary-bg);
    border-radius: 10px;
    overflow: hidden;
    max-height: 380px;
    align-items: center;
    justify-content: center;
    position: relative;
}

#mediaPreviewBox.d-none,
#imagePreview.d-none,
#videoPreview.d-none {
    display: none !important;
}

#mediaPreviewBox:not(.d-none) {
    display: flex !important;
}

#mediaPreviewBox img:not(.d-none),
#mediaPreviewBox video:not(.d-none) {
    max-height: 360px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* Image Lightbox Modal */
.image-lightbox-modal .modal-content {
    background-color: transparent;
    border: none;
}
.image-lightbox-modal .modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-lightbox-modal img {
    max-height: 88vh;
    max-width: 92vw;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.chat-bubble img {
    max-height: 280px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
}

.action-btn-hover:hover {
    background-color: var(--bs-tertiary-bg);
    border-radius: 6px;
}

/* Chat messenger layout */
.chat-window {
    height: calc(100vh - 160px);
    min-height: 500px;
}

.chat-messages-container {
    height: calc(100% - 130px);
    overflow-y: auto;
}

.chat-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.chat-bubble-sent {
    background-color: #0d6efd;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-bubble-received {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    border-bottom-left-radius: 4px;
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 120, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 120, 120, 0.5);
}

/* Ads & Banners Module Styles */
.ad-banner-horizontal-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ad-banner-horizontal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}
.ad-banner-horizontal-media-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bs-tertiary-bg);
    border-radius: 8px;
    overflow: hidden;
    max-height: 180px;
}
.ad-banner-horizontal-img {
    max-height: 180px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.ad-banner-vertical-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ad-banner-vertical-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}
.ad-banner-vertical-media-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bs-tertiary-bg);
    border-radius: 8px;
    overflow: hidden;
    max-height: 380px;
}
.ad-banner-vertical-img {
    max-height: 380px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Modal Stacking & Backdrop Fix */
.modal {
    z-index: 100050 !important;
}
.modal.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.modal-backdrop {
    z-index: 100040 !important;
}
.modal-dialog {
    z-index: 100060 !important;
    position: relative !important;
    pointer-events: auto !important;
}
.modal-content {
    background-color: var(--bs-body-bg, #ffffff) !important;
    color: var(--bs-body-color, #212529) !important;
    border: 1px solid rgba(0,0,0,0.2) !important;
    box-shadow: 0 1.5rem 4rem rgba(0,0,0,0.45) !important;
    pointer-events: auto !important;
}
[data-bs-theme="dark"] .modal-content {
    background-color: #212529 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

/* Social Share Buttons & Grid */
.share-btn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.65rem;
}
.btn-social-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 50rem;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.btn-social-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    color: #ffffff !important;
    opacity: 0.95;
}
.btn-share-whatsapp { background-color: #25D366; }
.btn-share-twitter { background-color: #0f1419; }
.btn-share-facebook { background-color: #1877F2; }
.btn-share-telegram { background-color: #229ED9; }
.btn-share-linkedin { background-color: #0A66C2; }
.btn-share-reddit { background-color: #FF4500; }
.btn-share-email { background-color: #475569; }


