/*
 * Photo Gallery Styles: Aesthetic, Poetic, and Highly Visual
 * Explore Page – Masonry Layout (Column-based, Stable)
 */

/* ------------------------------------------------------------------
   BASE STYLES
---------------------------------------------------------------------*/

* {
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #f7f7f7;
    color: #333;
}

/* ------------------------------------------------------------------
   HEADER & SEARCH
---------------------------------------------------------------------*/

.header-motto {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    color: #777;
    margin-top: 5px;
    margin-bottom: 40px;
}

.explore-jumbotron {
    padding: 50px 20px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(245, 245, 245, 0.8) 100%
    );
    border-bottom: 1px solid #ddd;
    text-align: center;
    margin-bottom: 40px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-input-box {
    border-radius: 50px;
    padding: 15px 30px 15px 50px;
    border: 2px solid #ccc;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input-box:focus {
    border-color: #007bff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.search-container > .fa {
    pointer-events: none;
}

/* ------------------------------------------------------------------
   MASONRY GRID
---------------------------------------------------------------------*/

#myphotos {
    column-count: 3;
    column-gap: 30px;
    padding-top: 15px;
    padding-bottom: 50px;
}

/* ------------------------------------------------------------------
   PHOTO CARD
---------------------------------------------------------------------*/

.photo-display-bpx {
    break-inside: avoid;              /* REQUIRED for masonry */
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-inner {
    position: relative;
}

.photo-display-bpx:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

/* ------------------------------------------------------------------
   IMAGE
---------------------------------------------------------------------*/

.img-cn img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.photo-display-bpx:hover .img-cn img {
    transform: scale(1.01);
}

/* ------------------------------------------------------------------
   METADATA (Optional, safe to keep)
---------------------------------------------------------------------*/

.photo-metadata {
    padding: 18px;
    background-color: #fff;
}

.photo-story {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #1a1a1a;
    white-space: pre-wrap;
}

.photo-tags {
    font-size: 0.8rem;
    color: #888 !important;
    font-style: italic;
}

/* ------------------------------------------------------------------
   ACTION OVERLAY
---------------------------------------------------------------------*/

.photo-actions-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 10;
    background: rgba(0, 0, 0, 0.1);
}

.photo-display-bpx:hover .photo-actions-overlay {
    opacity: 1;
    visibility: visible;
}

.photo_ed_btn {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.photo-display-bpx:hover .photo_ed_btn {
    opacity: 1;
    transform: translateY(0);
}

.photo_ed_btn a {
    background: white;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
}


.photo_ed_btn .delete-photo-btn:hover { background: #fee2e2; color: #ef4444; }
.photo_ed_btn .edit-photo-btn:hover { background: #f1f5f9; color: #3b82f6; }

.photo-metrics-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 14px;
    display: flex;
    gap: 16px;
    align-items: center;
    z-index: 15;
    font-size: 0.85rem;
    color: #fff;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0)
    );

    pointer-events: none; /* So clicks go to image */
}

.photo-metrics-overlay span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.photo-metrics-overlay i {
    font-size: 0.8rem;
}

.action-button {
    cursor: pointer;
}
/* ------------------------------------------------------------------
   LIKE STATE
---------------------------------------------------------------------*/

.text-danger {
    color: #dc3545 !important;
}

/* ------------------------------------------------------------------
   SKELETON LOADING
---------------------------------------------------------------------*/

.skeleton-block {
    break-inside: avoid;
    height: 300px;
    margin-bottom: 30px;
    border-radius: 12px;
    background: linear-gradient(
        to right,
        #f0f0f0 8%,
        #e0e0e0 18%,
        #f0f0f0 33%
    );
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite linear;
}


/* Modal Container Styling */
.aesthetic-modal {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    background: #ffffff;
}

.modal-title-group h5 {
    font-family: 'Georgia', serif;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

/* Social Icon Grid */
.social-share-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.share-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.share-circle:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.wa { background: #25D366; }
.tw { background: #000000; } /* Modern X look */
.fb { background: #1877F2; }

/* Custom Link Input */
.share-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.custom-input-group {
    display: flex;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px;
    align-items: center;
}

.custom-input-group input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #475569;
    font-family: monospace;
    outline: none;
}

.copy-trigger {
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.2s;
}

.copy-trigger:hover {
    background: #0f172a;
}

.copy-success-msg {
    display: none;
    text-align: center;
    color: #10b981;
    font-size: 0.8rem;
    margin-top: 12px;
    font-weight: 600;
}

@keyframes shimmer {
    0% { background-position: -800px 0; }
    100% { background-position: 800px 0; }
}

/* ------------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------------*/

@media (min-width: 1500px) {
    #myphotos { column-count: 4; }
}

@media (max-width: 1200px) {
    #myphotos { column-count: 3; }
}

@media (max-width: 992px) {
    #myphotos {
        column-count: 2;
        column-gap: 20px;
    }
}

@media (max-width: 576px) {
    #myphotos { column-count: 1; }
    .photo-display-bpx { margin-bottom: 20px; }
}
