.profile-tabs {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-link {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tab-link:hover {
    color: #333;
    border-bottom-color: #ccc;
    text-decoration: none;
}

.tab-link.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
    font-weight: 600;
}

.masonry-grid {
    /* Simple CSS column masonry */
    column-count: 3;
    column-gap: 1.5rem;
    margin: 2rem 0;
}

@media (max-width: 1200px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.masonry-link, .masonry-link:hover {
    display: block;
    text-decoration: none;
    color: inherit;
}

.masonry-image-container {
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
}

.masonry-hover-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-secondary);
    color: white;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.masonry-item:hover .masonry-hover-caption {
    transform: translateY(0);
}

.masonry-hover-caption h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}

.masonry-hover-caption p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

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

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

.masonry-caption {
    padding: 1rem 1rem 0.5rem;
}

.masonry-caption h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.masonry-description {
    padding: 0 1rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.masonry-meta {
    padding: 0.5rem 1rem 1rem;
    font-size: 0.85rem;
    color: #999;
}

.event-date {
    font-style: italic;
}

.no-media {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-media p {
    font-size: 1.1rem;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-overlay svg {
    margin-left: 4px;
}

.video-no-preview {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9e9e9e;
}

.video-placeholder svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.btn-load-more:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.load-more-container {
    text-align: center;
    margin: 2rem 0;
}

.load-more-status {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Tab badge for notifications */
.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background-color: #dc3545;
    border-radius: 10rem;
}

.tab-badge.has-updates {
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* No content placeholder */
.no-content {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Bookmarks styles */
.bookmarks-container .bookmarks-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.bookmark-item.card {
    padding: 1.5rem;
    background: #fff;
}

.bookmark-item h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.bookmark-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bookmark-items li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.bookmark-items li:last-child {
    border-bottom: none;
}

.bookmark-type {
    font-weight: 500;
    color: #666;
    margin-right: 0.5rem;
}

.empty-list {
    font-style: italic;
}

/* Media grid for profile */
.media-container .media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.media-container .media-item {
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f5f5f5;
}

.media-container .media-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

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

.media-container .media-item video,
.media-container .media-item audio {
    width: 100%;
}

/* Load more button styling */
.load-more {
    text-align: center;
    margin: 2rem 0;
}

/* Profile Overview Styles */
.profile-overview .overview-section {
    margin: 3rem 0;
}

.profile-overview .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

.profile-overview .section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.profile-overview .see-all-link {
    color: var(--color-accent, #0066cc);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.profile-overview .see-all-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.profile-overview .overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.profile-overview .overview-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.profile-overview .overview-media-grid .media-item {
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1;
}

.profile-overview .overview-media-grid .media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-overview .highlights-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.profile-overview .highlight-item.compact {
    background: #f8f9fa;
    border-left: 3px solid var(--color-accent, #0066cc);
    padding: 1rem;
    margin: 0;
    border-radius: 0 0.25rem 0.25rem 0;
}

.profile-overview .highlight-item.compact p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: italic;
}

.profile-overview .highlight-item.compact .source-link {
    font-size: 0.85rem;
    color: var(--color-accent, #0066cc);
    text-decoration: none;
}

.profile-overview .highlight-item.compact .source-link:hover {
    text-decoration: underline;
}

/* Make tabs look like navigation buttons on overview */
.profile-overview .profile-tabs {
    margin-bottom: 2rem;
}

.profile-overview .profile-tabs .tab-link {
    border-bottom: none;
    background: #f5f5f5;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.profile-overview .profile-tabs .tab-link:hover {
    background: var(--color-accent, #0066cc);
    color: white;
    border-bottom: none;
}

@media (max-width: 768px) {
    .profile-overview .overview-grid,
    .profile-overview .highlights-preview {
        grid-template-columns: 1fr;
    }

    .profile-overview .overview-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .profile-overview .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Draft articles styling */
.draft-list .card-title::before {
    content: "D";
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    line-height: 1.2em;
    text-align: center;
    background-color: var(--color-accent-strong);
    color: white;
    border-radius: 3px;
    font-size: 0.8em;
    margin-right: 0.5em;
}

