/* Pinterest-Style Post Tiles */

/* Pinterest Grid Layout */
.pinterest-grid {
    column-count: 3;
    column-gap: 20px;
    padding: 0 40px;
}

/* Individual Pinterest Item */
.pinterest-item {
    break-inside: avoid;
    margin-bottom: 20px;
    background: white;
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.pinterest-item:hover {
    transform: translateY(-5px);
}

/* Post Image Container */
.post-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
}

.post-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.pinterest-item:hover .post-image {
    transform: scale(1.05);
}

/* Post Overlay (Title & Tags Area) */
.post-overlay {
    padding: 8px;
    background: white;
    position: relative;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

/* Center align emojis when there's no title */
.post-header-no-title {
    justify-content: center !important;
    flex-direction: row;
    gap: 10px;
}

.post-header-no-title .post-tags {
    justify-content: center;
}

/* Post Title Links */
.post-title-link {
    text-decoration: none !important;
    color: inherit;
}

.post-title-link:hover,
.post-title-link:focus,
.post-title-link:active {
    text-decoration: none !important;
}

.post-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dub-brown);
    margin-bottom: 0;
    line-height: 1.2;
    flex: 1;
}

.post-title-link:hover .post-title {
    color: var(--sunset-orange);
}

/* Eye emoji for posts without titles */
.eye-emoji {
    font-size: 1.4rem;
    line-height: 1;
}

.eye-emoji-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eye-emoji-link:hover .eye-emoji {
    transform: scale(1.1);
}

/* Tag Badges */
.post-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.post-tag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1;
    text-decoration: none !important;
}

.post-tag-badge:hover,
.post-tag-badge:focus,
.post-tag-badge:active {
    text-decoration: none !important;
    transform: scale(1.1);
}

.post-tag-badge.more-tags {
    font-size: 0.7rem;
    background: rgba(108, 117, 125, 0.15);
    padding: 3px 6px;
    border-radius: 6px;
    color: #6c757d;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pinterest-grid {
        column-count: 3;
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .pinterest-grid {
        column-count: 2;
        padding: 0 25px;
    }
}

@media (max-width: 768px) {
    .pinterest-grid {
        column-count: 2;
        column-gap: 15px;
        padding: 0 20px;
    }

    .pinterest-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .pinterest-grid {
        column-count: 1;
        padding: 0 15px;
    }
}
