﻿.kanban-board {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.kanban-column {
    background-color: #eff3f4;
    border-radius: 16px;
    padding: 12px;
    min-width: 340px;
    flex: 1;
}

@media (max-width: 992px) {
    .kanban-board {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .kanban-column {
        min-width: 100%;
    }
}

.tweet-card {
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 0;
    background: #fff;
    transition: background-color 0.2s ease-in-out;
}

    .tweet-card:first-of-type {
        border-radius: 16px 16px 0 0;
    }

    .tweet-card:last-of-type {
        border-radius: 0 0 16px 16px;
    }

    .tweet-card:not(:last-of-type) {
        border-bottom: none;
    }

    .tweet-card:hover {
        background-color: var(--tweet-hover-bg);
    }

    .tweet-card .card-body {
        padding: 1rem 1.25rem;
    }

.tweet-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .tweet-author img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
    }

    .tweet-author .name {
        font-weight: bold;
    }

        .tweet-author .name:hover {
            text-decoration: underline;
        }

    .tweet-author .handle {
        color: #536471;
    }

/* --- Multi-media Grid Styles --- */
.tweet-media {
    margin-top: 0.75rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color-translucent);
    display: grid;
    gap: 2px;
    grid-template-columns: 1fr;
}

    .tweet-media.media-count-2, .tweet-media.media-count-4 {
        grid-template-columns: 1fr 1fr;
    }

    .tweet-media.media-count-3 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

.media-item {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}

    .media-item:first-child:only-child {
        aspect-ratio: auto;
    }

.tweet-media.media-count-3 .media-item:first-child {
    grid-row: span 2;
    aspect-ratio: auto;
}

.media-item img, .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-item .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255,255,255,0.8);
    pointer-events: none;
    transition: opacity 0.2s;
}

.media-item:hover .video-play-icon {
    opacity: 1;
}


.tweet-actions {
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    color: #536471;
}

    .tweet-actions a {
        text-decoration: none;
        color: inherit;
        font-size: 0.85rem;
        padding: 0.5rem;
        border-radius: 999px;
        transition: all 0.2s ease-in-out;
    }

        .tweet-actions a .bi {
            font-size: 1.2rem;
            margin-right: 0.5rem;
        }

        /* Specific hover colors */
        .tweet-actions a.action-reply:hover {
            color: var(--action-blue);
            background-color: var(--action-blue-hover);
        }

        .tweet-actions a.action-retweet:hover {
            color: var(--action-green);
            background-color: var(--action-green-hover);
        }

        .tweet-actions a.action-like:hover {
            color: var(--action-red);
            background-color: var(--action-red-hover);
        }

        .tweet-actions a.action-share:hover {
            color: var(--action-blue);
            background-color: var(--action-blue-hover);
        }

/* --- Modal Styles --- */
#media-preview-modal .modal-content {
    background-color: transparent;
    border: none;
}

#media-preview-modal .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    border-bottom: none;
}

#media-preview-modal .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
}

    #media-preview-modal .modal-body img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 95vh;
        object-fit: contain;
    }

    #media-preview-modal .modal-body video {
        width: 100%;
        height: auto;
        max-height: 100vh;
    }
     
