/* Webinar Custom Styles */

/* Webinar image styling for full coverage */
.webinar-image {
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
    height: 100% !important;
    transition: all 0.3s ease;
}

/* Ensure webinar card images fill their containers properly */
.webinar-card .webinar-image {
    display: block;
    overflow: hidden;
}

/* Additional styling for hover effects on webinar images */
.webinar-card:hover .webinar-image {
    transform: scale(1.05);
}

/* Tag styling for webinar pages */
.webinar-tags .tag-links a {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px 4px 2px 0;
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.webinar-tags .tag-links a:hover {
    background: linear-gradient(135deg, #2563EB, #1E3A8A);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Dark mode support for tags */
.dark .webinar-tags .tag-links a {
    background: linear-gradient(135deg, #1E40AF, #1E3A8A);
}

.dark .webinar-tags .tag-links a:hover {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .webinar-tags .tag-links a {
        font-size: 11px;
        padding: 4px 8px;
        margin: 1px 2px 1px 0;
    }
}

/* Webinar status badge animations */
.webinar-status-live {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Custom scrollbar for webinar content */
.webinar-content::-webkit-scrollbar {
    width: 8px;
}

.webinar-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.webinar-content::-webkit-scrollbar-thumb {
    background: #3B82F6;
    border-radius: 4px;
}

.webinar-content::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

/* Share buttons hover effects */
.webinar-share-buttons a {
    transition: all 0.3s ease;
}

.webinar-share-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Loading animation for webinar links */
.webinar-join-button.loading {
    position: relative;
    color: transparent;
}

.webinar-join-button.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Persian font optimization for webinar content */
.webinar-single .prose {
    font-family: 'IRANSans', 'IRANSans_Fa', 'IRANSansdn', Tahoma, Arial, sans-serif;
    line-height: 1.8;
}

.webinar-single .prose h1,
.webinar-single .prose h2,
.webinar-single .prose h3,
.webinar-single .prose h4,
.webinar-single .prose h5,
.webinar-single .prose h6 {
    font-family: 'IRANYekan_Fa', 'yekan_bakh', 'IRANSans', Tahoma, Arial, sans-serif;
    font-weight: bold;
}

/* Better spacing for RTL content */
.webinar-single .prose p {
    text-align: justify;
    margin-bottom: 1.25em;
}

.webinar-single .prose ul,
.webinar-single .prose ol {
    padding-right: 1.5em;
    padding-left: 0;
}

/* Enhanced breadcrumb styling */
.webinar-breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.dark .webinar-breadcrumb {
    background: rgba(31, 41, 55, 0.9);
    border-color: rgba(107, 114, 128, 0.2);
}

/* Smooth transitions for all interactive elements */
.webinar-single * {
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

/* Print styles for webinar content */
@media print {
    .webinar-share-buttons,
    .webinar-sidebar,
    .webinar-breadcrumb {
        display: none !important;
    }
    
    .webinar-single {
        background: white !important;
        color: black !important;
    }
} 