.stat-card {
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.water-wave {
    position: relative;
    overflow: hidden;
}

.water-wave::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent
    );
    opacity: 0.3;
}

.post-content {
    line-height: 1.6;
    word-wrap: break-word;
}

.post-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.post-content a:hover {
    color: #1d4ed8;
}

.score-low {
    background-color: #10b981;
    color: white;
}

.score-medium {
    background-color: #f59e0b;
    color: white;
}

.score-high {
    background-color: #ef4444;
    color: white;
}

.score-very-high {
    background-color: #7c3aed;
    color: white;
}

.btn-approve {
    background-color: #10b981;
    color: white;
}

.btn-approve:hover {
    background-color: #059669;
}

.btn-reject {
    background-color: #ef4444;
    color: white;
}

.btn-reject:hover {
    background-color: #dc2626;
}

.btn-score {
    background-color: #3b82f6;
    color: white;
}

.btn-score:hover {
    background-color: #2563eb;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.media-attachments {
    margin: 12px 0;
}

.media-grid {
    display: grid;
    gap: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.media-grid.single {
    grid-template-columns: 1fr;
    max-width: 100%;
}

.media-grid.double {
    grid-template-columns: repeat(2, 1fr);
}

.media-grid.triple {
    grid-template-columns: repeat(2, 1fr);
}

.media-grid.triple .media-item:first-child {
    grid-column: span 2;
}

.media-grid.multiple {
    grid-template-columns: repeat(2, 1fr);
}

.media-item {
    position: relative;
    overflow: hidden;
}

.media-grid.single .media-item {
    aspect-ratio: 16/9;
}

.media-grid:not(.single) .media-item {
    aspect-ratio: 1;
}

.media-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.media-item img:hover {
    transform: scale(1.05);
}

.media-item.video::before {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 1;
}

.media-count {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
}

.media-description {
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.media-item {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.media-item:hover {
    border-color: #9ca3af;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .avatar-placeholder {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

.avatar-placeholder:hover {
    opacity: 0.9;
}

.engagement-metrics {
    display: flex;
    gap: 16px;
}

.engagement-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
}

.engagement-count {
    font-size: 14px;
    font-weight: 500;
}

.engagement-replies:hover {
    color: #3b82f6;
}

.engagement-boosts:hover {
    color: #10b981;
}

.engagement-likes:hover {
    color: #ef4444;
}

.btn-external {
    background-color: #6b7280;
    color: white;
}

.btn-external:hover {
    background-color: #4b5563;
}

.table-cell-content {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#postsTable table {
    table-layout: fixed;
}

#postsTable table td {
    vertical-align: top;
}

.post-content-cell {
    max-width: 300px;
    vertical-align: top;
}

@media (min-width: 768px) {
    .post-content-cell {
        max-width: 400px;
    }
}

@media (min-width: 1024px) {
    .post-content-cell {
        max-width: 500px;
    }
}

@media (min-width: 1280px) {
    .post-content-cell {
        max-width: 600px;
    }
}

@media (min-width: 1536px) {
    .post-content-cell {
        max-width: 700px;
    }
}

.author-cell {
    min-width: 200px;
    vertical-align: top;
}

.date-cell {
    vertical-align: top;
}

.score-cell {
    min-width: 80px;
    vertical-align: top;
}

.stream-cell {
    min-width: 150px;
    vertical-align: top;
}

.engagement-cell {
    min-width: 120px;
    vertical-align: top;
}

.actions-cell {
    min-width: 100px;
    vertical-align: top;
}

.actions-cell .flex {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.actions-cell button,
.actions-cell a {
    display: block;
    width: 100%;
    padding: 4px 6px;
    font-size: 12px;
    text-align: center;
}

.actions-cell button i,
.actions-cell a i {
    display: inline-block;
}

@media (max-width: 639px) {
    #postsTable table th,
    #postsTable table td {
        padding: 8px 4px;
    }

    .author-cell .flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .author-cell .flex-col {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-cell .block.sm\\:inline {
        display: block;
    }

    .actions-cell .flex {
        gap: 4px;
    }

    .actions-cell button,
    .actions-cell a {
        width: 100%;
        padding: 6px 8px;
        font-size: 11px;
    }

    .author-cell {
        min-width: 100px;
    }

    .stream-cell {
        min-width: 80px;
    }

    .engagement-cell {
        min-width: 70px;
    }

    .score-cell span {
        padding: 2px 6px;
        font-size: 11px;
    }

    .post-content-cell {
        max-width: 250px;
    }

    #postsTable table th {
        font-size: 12px;
    }

    .avatar-placeholder {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}
