/* ===============================
   GLOBAL THEME
================================= */

body {
    background-color: #121212;
}

/* Global typography fixes for dark theme */
body, .text-light {
    color: #f8f9fa;
}

p {
    color: rgba(255, 255, 255, 0.82);
}

.text-muted {
    color: rgba(255, 255, 255, 0.62) !important;
}

/* Prevent image dragging */
img, video {
    -webkit-user-drag: none;
    user-drag: none;
}


/* ===============================
   HOMEPAGE / POSTS THUMBNAILS + OVERLAY
================================= */

.thumbnail-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: #1c1c1c;
}

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

.post-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

/* Full-card hover overlay */
.post-unlock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 5;
}

.post-card:hover .post-unlock-overlay {
    opacity: 1;
}

.unlock-hover-card {
    background: #2a2a2a;
    padding: 22px 24px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);

    width: calc(100% - 24px);
    max-width: 240px;
}

.unlock-hover-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: #f8f9fa;
}

.unlock-hover-price {
    font-size: 22px;
    font-weight: 600;
    color: #ffc107;
    margin-bottom: 14px;
}

.unlock-hover-btn {
    width: 100%;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
}


/* ===============================
   DASHBOARD TABLE
================================= */

.dashboard-table thead {
    border-bottom: 1px solid #444;
}

.dashboard-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dashboard-table tbody tr:hover td {
    background-color: #2a2a2a !important;
}


/* ===============================
   DASHBOARD THUMBNAILS
================================= */

.dashboard-thumb-wrapper {
    width: 110px;
    height: 75px;
    overflow: hidden;
    border-radius: 6px;
}

.dashboard-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.dashboard-thumb-placeholder {
    width: 110px;
    height: 75px;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #aaa;
    border-radius: 6px;
}


/* ===============================
   EDIT POST MEDIA GRID
================================= */

.edit-thumb-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    background-color: #1c1c1c;
}

.edit-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}


/* ===============================
   MULTI FILE DROP ZONE
================================= */

#drop-zone input[type="file"] {
    display: none;
}

#drop-zone {
    transition: all 0.2s ease;
}

#drop-zone.dragover {
    background-color: #2b2b2b;
    border-color: #ffffff !important;
}

#drop-zone:hover {
    border-color: #bbbbbb !important;
}


/* ===============================
   POST DETAIL GALLERY
================================= */

.gallery-main {
    cursor: pointer;
    border-radius: 6px;
}

.gallery-thumb-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 6px;
    background-color: #1c1c1c;
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-thumb:hover {
    transform: scale(1.03);
}

.gallery-locked {
    filter: blur(6px) brightness(0.7);
}


/* ===============================
   LOCKED MEDIA OVERLAY (post_detail)
================================= */

.locked-thumb-wrapper {
    position: relative;
}

.locked-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: 26px;
    color: rgba(255,255,255,0.9);
    pointer-events: none;
}


/* ===============================
   POST DETAIL UNLOCK CARD
================================= */

.unlock-section {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.unlock-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 28px 40px;
    text-align: center;

    box-shadow: 0 0 12px rgba(0,0,0,0.45);
}

.unlock-title {
    font-size: 18px;
    margin-bottom: 6px;
}

.unlock-price {
    font-size: 24px;
    font-weight: 600;
    color: #ffc107;
    margin-bottom: 16px;
}

.unlock-btn {
    padding: 10px 28px;
    font-size: 16px;
    font-weight: 500;
}


/* ===============================
   FULLSCREEN MEDIA VIEWER
================================= */

.viewer-overlay {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;

    background: rgba(0,0,0,0.96);

    display:none;
    align-items:center;
    justify-content:center;

    z-index:3000;
}

.viewer-content {
    position:relative;
    max-width:90%;
    max-height:90%;
}

.viewer-content img {
    max-width:100%;
    max-height:90vh;
    border-radius:6px;
}

.viewer-close {
    position:absolute;
    top:-40px;
    right:0;

    font-size:28px;
    background:none;
    border:none;
    color:white;
    cursor:pointer;
}

.viewer-arrow {
    position:absolute;
    top:50%;
    transform:translateY(-50%);

    font-size:40px;
    background:none;
    border:none;
    color:white;
    cursor:pointer;
    padding:10px;
}

.viewer-arrow.left {
    left:-60px;
}

.viewer-arrow.right {
    right:-60px;
}

.viewer-counter {
    text-align:center;
    margin-top:10px;
    color:#ccc;
    font-size:14px;
}


/* ===============================
   AGE GATE MODAL
================================= */

.agegate-backdrop.modal-backdrop.show {
    opacity: 0.94 !important;
}

#ageGateModal .modal-body p {
    color: #f8f9fa;
}

#ageGateModal .modal-body p.text-muted {
    color: rgba(255, 255, 255, 0.70) !important;
}


/* ===============================
   TOKEN / CODE STYLING
================================= */

code {
    letter-spacing: 1px;
    font-weight: 600;
}