/* ======================== */
/* Event Detail Page Styles */
/* ======================== */

/* We can re-use the blog post styles, but override the colors */
@import url('../blog-post/blog-post.css');

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Override the accent color to match the events section */
.post-header {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.03) 0%, rgba(58, 134, 255, 0.03) 100%);
    border-color: rgba(131, 56, 236, 0.1);
}

.dark-mode .post-header {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.08) 0%, rgba(58, 134, 255, 0.08) 100%);
    border-color: rgba(131, 56, 236, 0.2);
}

.post-header .btn-back {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.post-header .btn-back:hover {
    background: rgba(58, 134, 255, 0.1);
    transform: translateX(-3px);
}

.post-header .btn-back i {
    margin-right: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.post-header .btn-back:hover i {
    transform: translateX(-5px);
}

.post-meta span i {
    color: var(--secondary-color); /* Purple */
}

.post-body h2 {
    color: var(--secondary-color); /* Purple */
    border-bottom-color: var(--secondary-color);
    animation: slideInFromLeft 0.6s ease-out;
    position: relative;
}

.post-body h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
    transition: width 0.6s ease;
}

.post-body h2:hover::after {
    width: 100%;
}

.dark-mode .post-body h2 {
    color: #9775fa;
    border-bottom-color: #9775fa;
}

.post-body h2:hover {
    transform: translateX(5px);
}

.dark-mode .post-body h2 {
    color: #9775fa;
    border-bottom-color: #9775fa;
}

.post-body h3::before {
    background: var(--secondary-color);
}

.dark-mode .post-body h3::before {
    background: #9775fa;
}

.post-body blockquote {
    border-left-color: var(--secondary-color); /* Purple */
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.05) 0%, rgba(58, 134, 255, 0.05) 100%);
    color: var(--dark-color);
}

.dark-mode .post-body blockquote {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.1) 0%, rgba(58, 134, 255, 0.1) 100%);
    color: #ffffff;
}

.post-body blockquote:hover {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.1) 0%, rgba(58, 134, 255, 0.1) 100%);
}

/* Add a new style for event-specific info */
.event-info-box {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.05) 0%, rgba(58, 134, 255, 0.05) 100%);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 8px 24px rgba(131, 56, 236, 0.1);
    border-left: 5px solid var(--secondary-color);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.event-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(131, 56, 236, 0.15);
}

.dark-mode .event-info-box {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.1) 0%, rgba(58, 134, 255, 0.1) 100%);
}

.event-info-box h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInFromLeft 0.6s ease-out;
}

.event-info-box h3 i {
    color: var(--secondary-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.event-info-box h3:hover i {
    transform: rotate(360deg) scale(1.2);
    color: #9775fa;
}

.dark-mode .event-info-box h3 {
    color: #ffffff;
}

.event-info-list {
    list-style: none;
    padding-left: 0;
}

.event-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    font-size: 1.05rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(131, 56, 236, 0.2);
    transition: all 0.3s ease;
}

.event-info-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.event-info-list li:hover {
    padding-left: 10px;
    color: var(--primary-color);
}

.dark-mode .event-info-list li {
    color: #ffffff;
    border-bottom-color: rgba(131, 56, 236, 0.3);
}

.dark-mode .event-info-list li:hover {
    color: var(--primary-color);
}

.event-info-list li i {
    font-size: 1.4rem;
    color: var(--secondary-color);
    width: 30px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.event-info-list li span {
    flex: 1;
    line-height: 1.5;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================== */
/* Speakers Section Styles  */
/* ======================== */

.speakers-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px 0;
    animation: slideInUp 0.8s ease-out;
}

.speaker-card {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.05) 0%, rgba(58, 134, 255, 0.05) 100%);
    border: 1px solid rgba(131, 56, 236, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease-out backwards;
    box-shadow: 0 4px 15px rgba(131, 56, 236, 0.1);
}

.speaker-card:nth-child(1) { animation-delay: 0.1s; }
.speaker-card:nth-child(2) { animation-delay: 0.2s; }
.speaker-card:nth-child(3) { animation-delay: 0.3s; }

.speaker-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(131, 56, 236, 0.2);
    border-color: rgba(131, 56, 236, 0.3);
}

.dark-mode .speaker-card {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.1) 0%, rgba(58, 134, 255, 0.1) 100%);
    border-color: rgba(131, 56, 236, 0.25);
}

.speaker-image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.1) 0%, rgba(58, 134, 255, 0.1) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid rgba(131, 56, 236, 0.2);
    color: var(--secondary-color);
    font-size: 3rem;
    gap: 10px;
    transition: all 0.3s ease;
}

.speaker-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-height: 350px;
    border-bottom: 2px solid rgba(131, 56, 236, 0.2);
    transition: all 0.3s ease;
    padding: 15px;
}

.speaker-card:hover .speaker-image {
    transform: scale(1.05);
}

.speaker-card:hover .speaker-image-placeholder {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.2) 0%, rgba(58, 134, 255, 0.2) 100%);
}

.speaker-image-placeholder i {
    font-size: 3rem;
    opacity: 0.7;
}

.speaker-image-placeholder p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.7;
    color: var(--dark-color);
}

.dark-mode .speaker-image-placeholder p {
    color: #ffffff;
}

.speaker-info {
    padding: 25px;
}

.speaker-info h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin: 0 0 8px 0;
    font-weight: 700;
}

.dark-mode .speaker-info h3 {
    color: #ffffff;
}

.speaker-title {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 5px 0;
}

.speaker-organization {
    color: var(--dark-color);
    font-size: 0.95rem;
    margin: 0 0 12px 0;
    opacity: 0.85;
    font-weight: 500;
}

.dark-mode .speaker-organization {
    color: #ffffff;
}

.speaker-bio {
    color: var(--dark-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
}

.dark-mode .speaker-bio {
    color: #ffffff;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    gap: 15px;
    margin: 50px 0 30px 0;
    flex-wrap: wrap;
}

.navigation-buttons .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    animation: slideInUp 0.8s ease-out 0.4s backwards;
}

.navigation-buttons .btn-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(131, 56, 236, 0.4);
    border-color: var(--secondary-color);
}

.navigation-buttons .btn-back:active {
    transform: translateY(-1px);
}

.navigation-buttons .btn-back i {
    font-size: 1.1rem;
}

.dark-mode .navigation-buttons .btn-back {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.8), rgba(58, 134, 255, 0.8));
    box-shadow: 0 4px 15px rgba(131, 56, 236, 0.3);
}

.dark-mode .navigation-buttons .btn-back:hover {
    box-shadow: 0 6px 25px rgba(131, 56, 236, 0.5);
}

/* ======================== */
/* Viewer Modal Responsive  */
/* ======================== */
.viewer-modal-content {
    width: auto;
    max-width: 90vw;
    height: auto;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
    padding: 0;
    box-shadow: none;
    pointer-events: none;
}

#viewerContent img,
#viewerContent iframe {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    border: none;
    border-radius: var(--border-radius);
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    pointer-events: auto;
}

.viewer-modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 11001;
    transition: transform 0.3s ease, color 0.3s ease;
}

.viewer-modal-close:hover {
    transform: scale(1.2) rotate(90deg);
    color: #ffffff;
}

/* Responsive Design for Speakers */
@media (max-width: 992px) {
    .speakers-section {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .speaker-image-placeholder {
        height: 220px;
    }
    
    .speaker-info {
        padding: 25px;
    }
    
    .speaker-info h4 {
        font-size: 1.2rem;
    }
    
    .speaker-bio {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .speakers-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .speaker-image-placeholder {
        height: 200px;
    }
    
    .speaker-info {
        padding: 20px;
    }
    
    .speaker-info h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .speaker-designation {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .speaker-bio {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .speakers-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .speaker-image-placeholder {
        height: 180px;
    }
    
    .speaker-info {
        padding: 15px;
    }
    
    .speaker-info h4 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .speaker-designation {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .speaker-bio {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 320px) {
    .speakers-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .speaker-image-placeholder {
        height: 150px;
    }
    
    .speaker-info {
        padding: 12px;
    }
    
    .speaker-info h4 {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }
    
    .speaker-designation {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    
    .speaker-bio {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
}