/* Presentations & Media Page Specific Styles */

.presentations-section {
    padding: 3rem 0;
}

.content-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 3rem 0 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
}

.section-title:first-child {
    margin-top: 0;
}

/* Presentations List Container */
.presentations-list {
    position: relative;
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Presentation Items - Compact List Style */
.presentation-item {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 0.875rem 1rem;
    margin-bottom: 0;
    transition: none;
    position: relative;
}

.presentation-item:nth-child(even) {
    background-color: var(--bg-light);
}

.presentation-item:last-child {
    border-bottom: none;
}

.presentation-item.presentation-item-hidden {
    display: none;
}

.presentation-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.presentation-header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    flex: 1;
    min-width: 200px;
}

.presentation-details {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin: 0;
    padding-left: 0.25rem;
}

.presentation-details+.presentation-details {
    margin-top: 0.5rem;
    padding-left: 0.25rem;
}

/* View More Button */
.view-more-btn {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.75rem 2rem;
    background-color: var(--primary);
    color: var(--text-dark);
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 238, 115, 0.4);
}

.view-more-btn:active {
    transform: translateY(0);
}

[data-theme="dark"] .view-more-btn {
    color: #000000;
}

/* Experience Links */
.experience-link {
    display: inline-block;
    margin-left: 0.375rem;
    padding: 0.25rem 0.625rem;
    background-color: var(--primary);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.experience-link:hover:not(.disabled):not(.placeholder) {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.experience-link.placeholder {
    background-color: var(--primary);
    border: 2px dashed var(--primary-dark);
    cursor: pointer;
    opacity: 1;
    font-weight: 600;
}

[data-theme="dark"] .experience-link {
    color: #000000;
}

[data-theme="dark"] .experience-link.placeholder {
    background-color: var(--primary);
    border-color: var(--primary-dark);
    color: #000000;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 61px;
    background-color: var(--bg-white);
    z-index: 999;
    padding-top: 0.5rem;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Mobile spacing for sticky tabs */

@media (max-width: 768px) {
    .tab-nav {
        top: 53px;
        padding-top: 1rem;
    }
}

.tab-nav.stuck {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary-dark);
}

[data-theme="dark"] .tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--text-dark);
    border-bottom-color: var(--primary);
}

[data-theme="dark"] .tab-btn.active {
    color: var(--text-dark);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Grid - Thumbnail Card Layout */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.media-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.media-thumbnail {
    width: 100%;
    height: 180px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder styling for empty images */
.media-thumbnail:has(img[src=""]) {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--border) 100%);
}

.media-thumbnail:has(img[src=""])::after {
    content: '📷';
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.3;
    color: var(--text-medium);
}

.media-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.media-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-description {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .media-card {
    background-color: var(--bg-white);
    border-color: var(--border);
}

[data-theme="dark"] .media-card:hover {
    border-color: var(--primary);
}

/* Responsive Design */
@media (max-width: 640px) {
    .presentations-section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin: 2rem 0 1.5rem;
    }

    .presentation-item {
        padding: 0.75rem 0.875rem 0.75rem 1rem;
    }

    .presentation-header h3 {
        font-size: 0.875rem;
        min-width: 100%;
    }

    .presentation-details {
        font-size: 0.8125rem;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .media-thumbnail {
        height: 160px;
    }

    .media-content {
        padding: 1rem;
    }

    .media-title {
        font-size: 0.9375rem;
    }

    .media-description {
        font-size: 0.8125rem;
    }
}

@media (min-width: 641px) and (max-width: 968px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.25rem;
    }
}