/* 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: #000;
}

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

#mediaPreviewBox img,
#mediaPreviewBox video {
    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);
}
