/**
 * Session Detail Block Styles - FIXED VERSION
 * File: assets/css/blocks/session-detail.css
 * 
 * Added: Moderator list styles and Resources section styles
 */

/* Container */
.wpe-session-detail-block {
}

/* Loading State */
.wpe-session-detail-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 3rem;
}

.wpe-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e9ecef;
    border-top-color: #1a7431;
    border-radius: 50%;
    animation: wpe-spin 0.8s linear infinite;
}

@keyframes wpe-spin {
    to { transform: rotate(360deg); }
}

/* Header Section */
.wpe-session-header {
    margin-bottom: 3rem;
}

/* Breadcrumb */
.wpe-breadcrumb {
    margin-bottom: 1.5rem;
}

.wpe-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.wpe-breadcrumb-item {
    display: flex;
    align-items: center;
}

.wpe-breadcrumb-item:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: #dee2e6;
}

.wpe-breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.wpe-breadcrumb-item a:hover {
    color: #1a7431;
    text-decoration: underline;
}

.wpe-breadcrumb-current {
    color: #212529;
    font-weight: 500;
}

/* Session Type Badge */
.wpe-session-type-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: #1a7431;
    color: white;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* Title */
.wpe-session-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
    margin: 0.5rem 0 1.5rem 0;
}

/* Meta Info */
.wpe-session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1a7431;
}

.wpe-meta-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: #495057;
}

.wpe-meta-item svg {
    flex-shrink: 0;
    color: #1a7431;
}

/* Description */
.wpe-session-description {
    margin: 3rem 0;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #495057;
}

.wpe-session-description h2,
.wpe-session-description h3,
.wpe-session-description h4 {
    color: #0f4c21;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.wpe-session-description ul,
.wpe-session-description ol {
    margin: 1.5rem 0;
    padding-left: 1.75rem;
}

.wpe-session-description li {
    margin-bottom: 0.5rem;
}

/* Speakers Section */
.wpe-speakers-section {
    margin: 3rem 0;
}

.wpe-speakers-section.no-summary {
    margin: 0 0 3rem 0;
}

.wpe-speakers-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f4c21;
    margin-bottom: 2rem;
}



.wpe-speaker-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s;
}

.wpe-speaker-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.wpe-speaker-photo {
    flex-shrink: 0;
}

.wpe-speaker-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.wpe-speaker-avatar {
    width: 80px;
    height: 80px;
    background: #1a7431;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.wpe-speaker-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.5rem 0;
}

.wpe-speaker-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.wpe-speaker-info h3 a:hover {
    color: #1a7431;
}

.wpe-speaker-position {
    font-size: 0.9375rem;
    color: #6c757d;
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

.wpe-speaker-org {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* Moderator Section - NEW */
.wpe-moderator-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #e7f5ec;
    border-radius: 8px;
    border-left: 4px solid #1a7431;
}

.wpe-moderator-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f4c21;
    margin: 0 0 1.25rem 0;
}

.wpe-moderator-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wpe-moderator-item {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 6px;
}

.wpe-moderator-item .wpe-speaker-photo img,
.wpe-moderator-item .wpe-speaker-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

.wpe-moderator-item .wpe-speaker-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.375rem 0;
}

.wpe-moderator-item .wpe-speaker-info h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.wpe-moderator-item .wpe-speaker-info h4 a:hover {
    color: #1a7431;
}

/* Resources Section - NEW */
.wpe-resources-section {
    margin: 3rem 0;
}

.wpe-resources-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f4c21;
    margin-bottom: 2rem;
}

.wpe-resources-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wpe-resource-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s;
}

.wpe-resource-item:hover {
    border-color: #1a7431;
    box-shadow: 0 2px 8px rgba(26, 116, 49, 0.1);
}

.wpe-resource-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7f5ec;
    color: #1a7431;
    border-radius: 8px;
}

.wpe-resource-info {
    flex: 1;
    min-width: 0;
}

.wpe-resource-info h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.wpe-resource-info h4 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s;
}

.wpe-resource-info h4 a:hover {
    color: #1a7431;
    text-decoration: underline;
}

.wpe-resource-info p {
    font-size: 0.9375rem;
    color: #6c757d;
    margin: 0 0 0.5rem 0;
}

.wpe-resource-type {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: #1a7431;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Additional Info Section */
.wpe-additional-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.wpe-info-item {
    margin-bottom: 2rem;
}

.wpe-info-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f4c21;
    margin: 0 0 1rem 0;
}

/* Tags */
.wpe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.wpe-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: #e9ecef;
    color: #495057;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.wpe-tag:hover {
    background: #1a7431;
    color: white;
}

/* Session Links */
.wpe-session-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.wpe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.wpe-btn-primary {
    background: #1a7431;
    color: white;
}

.wpe-btn-primary:hover {
    background: #0f4c21;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 76, 33, 0.3);
    color: white;
}

.wpe-btn-secondary {
    background: white;
    color: #1a7431;
    border: 2px solid #1a7431;
}

.wpe-btn-secondary:hover {
    background: #1a7431;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 76, 33, 0.2);
}

.wpe-btn svg {
    flex-shrink: 0;
}

/* Editor Preview Styles */
.wpe-block-preview {
    padding: 3rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.wpe-block-icon {
    margin-bottom: 1rem;
    color: #1a7431;
}

.wpe-block-preview p {
    color: #6c757d;
    margin: 0;
}

/* Responsive Design */



@media (max-width: 768px) {
    .wpe-session-detail-block {
        padding: 1.5rem 1rem;
    }

    .wpe-session-title {
        font-size: 1.875rem;
    }

    .wpe-session-meta {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .wpe-speakers-grid {
        grid-template-columns: 1fr;
    }

    .wpe-speaker-card,
    .wpe-moderator-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .wpe-session-links {
        flex-direction: column;
    }

    .wpe-btn {
        width: 100%;
        justify-content: center;
    }

    .wpe-session-description {
        font-size: 1rem;
    }

    .wpe-breadcrumb-list {
        font-size: 0.8125rem;
    }

    .wpe-resource-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .wpe-session-title {
        font-size: 1.5rem;
    }

    .wpe-session-type-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.625rem;
    }

    .wpe-meta-item {
        font-size: 0.875rem;
    }

    .wpe-speakers-section h2,
    .wpe-resources-section h2,
    .wpe-session-description h2 {
        font-size: 1.5rem;
    }

    .wpe-speaker-photo img,
    .wpe-speaker-avatar {
        width: 64px;
        height: 64px;
    }

    .wpe-speaker-avatar {
        font-size: 1.5rem;
    }

    .wpe-resource-icon {
        width: 40px;
        height: 40px;
    }
}

/* Print Styles */
@media print {
    .wpe-session-links,
    .wpe-breadcrumb {
        display: none;
    }

    .wpe-session-detail-block {
        max-width: 100%;
        padding: 0;
    }

    .wpe-session-meta {
        border: 1px solid #dee2e6;
    }

    .wpe-speaker-card,
    .wpe-moderator-item,
    .wpe-resource-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Accessibility */
.wpe-btn:focus,
.wpe-breadcrumb-item a:focus,
.wpe-speaker-info h3 a:focus,
.wpe-resource-info h4 a:focus {
    outline: 2px solid #1a7431;
    outline-offset: 2px;
}



/**
 * ========================================================================
 * Responsive Speakers Grid
 * ========================================================================
 * Desktop: 3 columns (1200px+)
 * Tablet:  2 columns (768px - 1199px)
 * Mobile:  1 column (< 768px)
 */

/* =================================================================
   BASE STYLES (Desktop First - 1200px+)
   ================================================================= */

.wpe-speakers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    gap: 1.5rem;
}

/* =================================================================
   LARGE DESKTOP (1400px+) - Optional: 4 columns
   ================================================================= */

@media (min-width: 1400px) {
    .wpe-speakers-grid {
        grid-template-columns: repeat(3, 1fr); /* 4 columns for large screens */
        gap: 2rem;
    }
}

/* =================================================================
   TABLET (768px - 1199px) - 2 columns
   ================================================================= */

@media (max-width: 1199px) {
    .wpe-speakers-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
        gap: 1.25rem;
    }
}

/* =================================================================
   MOBILE (< 768px) - 1 column
   ================================================================= */

@media (max-width: 767px) {
    .wpe-speakers-grid {
        grid-template-columns: 1fr; /* 1 column for mobile */
        gap: 1rem;
    }
}

/* =================================================================
   SMALL MOBILE (< 480px) - Tighter spacing
   ================================================================= */

@media (max-width: 479px) {
    .wpe-speakers-grid {
        gap: 0.75rem;
    }
}

