/* EventManager Lite Frontend Styles
 * Uses .etn-* class names to match Eventin's DOM for CSS compatibility
 */

/* ── Grid ───────────────────────────────────────────────── */
.etn-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
[class*="etn-col-"] {
    padding: 0 15px;
    box-sizing: border-box;
}
.etn-col-lg-3  { width: 25%; }
.etn-col-lg-4  { width: 33.333%; }
.etn-col-lg-6  { width: 50%; }
.etn-col-md-6  { width: 50%; }
.etn-col-sm-3  { width: 25%; }
.etn-col-sm-6  { width: 50%; }

/* ── Speaker Grid ────────────────────────────────────────── */
.etn-speaker-wrapper {
    margin-bottom: 30px;
}
.etn-speaker-item {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.etn-speaker-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* Speaker Thumb (styles 2) */
.etn-speaker-thumb {
    position: relative;
}
.etn-speaker-thumb img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    transition: transform 0.4s ease;
}
.etn-speaker-thumb .etn-img-link {
    display: block;
    overflow: hidden;
    border-radius: inherit;
}
.etn-speaker-item:hover .etn-speaker-thumb img {
    transform: scale(1.04);
}

/* Social Overlay (style 2) */
.etn-speakers-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.55);
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.etn-speaker-thumb:hover .etn-speakers-social {
    opacity: 1;
    transform: translateY(0);
}
.etn-speakers-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 14px;
    transition: background 0.2s ease;
    text-decoration: none;
}
.etn-speakers-social a:hover {
    background: rgba(255,255,255,0.35);
}

/* Speaker Content */
.etn-speaker-content {
    padding: 16px;
}
.etn-speaker-title {
    font-size: 16px;
    margin: 0 0 6px;
    font-weight: 600;
}
.etn-speaker-title a {
    text-decoration: none;
    color: inherit;
}
.etn-speaker-title a:hover {
    color: #0073aa;
}
.etn-speaker-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ── Style 3 specific (social below content) ─────────────── */
.etn-speaker-item.style-3 .etn-speakers-social {
    position: static;
    opacity: 1;
    transform: none;
    background: transparent;
    padding: 8px 0 0;
    justify-content: flex-start;
}
.etn-speaker-item.style-3 .etn-speakers-social a {
    background: #f0f0f0;
    color: #333;
}
.etn-speaker-item.style-3 .etn-speakers-social a:hover {
    background: #0073aa;
    color: #fff;
}

/* ── Style 4 specific (flex card with circular image) ─────── */
.etn-speaker-card-flex {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 6px;
}
.etn-speaker-img-circle {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
}
.etn-speaker-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.etn-speaker-style-4 .etn-speaker-content {
    padding: 0;
    flex: 1;
}
.etn-email {
    font-size: 13px;
    color: #888;
    margin: 2px 0 0 !important;
}

/* ── Pagination ───────────────────────────────────────────── */
.etn-pagination-wrapper {
    text-align: center;
    margin-top: 24px;
}
.etn-pagination-link,
.etn-pagination-current {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}
.etn-pagination-current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
.etn-pagination-link:hover {
    background: #f4f4f4;
}

/* ── Schedule Tabs ────────────────────────────────────────── */
.schedule-tab-wrapper {
    margin-bottom: 40px;
}

/* Tab Navigation */
.etn-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 24px;
    justify-content: center;
}
.etn-nav li {
    margin: 0;
}
.etn-nav li a {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    color: #666;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background-color: #f9f9f9;
    transition: background-color 0.2s, color 0.2s;
    text-align: center;
    position: relative;
}
.etn-nav li a:hover {
    background-color: #f0f0f0;
    color: #333;
}
.etn-nav li a.etn-active {
    background-color: #fff;
    color: #0073aa;
    border-color: #e0e0e0 #e0e0e0 #fff;
    font-weight: 600;
}
/* Arrow indicator */
.etn-nav li a:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 6px 0;
    border-style: solid;
    border-color: transparent transparent transparent;
    display: none;
}
.etn-nav li a.etn-active:after {
    display: block;
    border-color: #0073aa transparent transparent;
}
.etn-date {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}
.etn-day {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.etn-nav li a.etn-active .etn-day {
    color: #0073aa;
}

/* Tab Content */
.etn-tab-content {
    /* container */
}
.etn-tab {
    display: none;
}
.etn-tab.tab-active {
    display: block;
}

/* Schedule Items */
.etn-single-schedule-item {
    padding: 20px;
    margin-bottom: 12px;
    border-width: 1px;
    border-style: solid;
    border-color: #eee;
    border-radius: 4px;
    background: #fff;
    align-items: flex-start;
}
.etn-single-schedule-item:last-child {
    margin-bottom: 0;
}

/* Schedule Info Column (time + room) */
.etn-schedule-info span {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}
.etn-schedule-location {
    display: flex !important;
    align-items: center;
    gap: 4px;
    color: #888 !important;
    font-weight: 400 !important;
}

/* Schedule Content Column */
.etn-schedule-content .etn-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #222;
}
.etn-schedule-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Speaker Column */
.etn-schedule-right-content {
    text-align: right;
}
.etn-schedule-single-speaker {
    display: inline-block;
    vertical-align: top;
    margin-left: 8px;
    text-align: center;
}
.etn-schedule-speaker {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.etn-schedule-single-speaker img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 4px;
    border: 2px solid #eee;
}
.etn-schedule-single-speaker a {
    display: block;
}
.etn-schedule-speaker-title {
    font-size: 12px;
    color: #555;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

/* ── Schedule 2 - Grid layout ─────────────────────────────── */
.schedule-style-2 .etn-schedule-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.schedule-style-2 .etn-schedule-grid-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
    background: #fff;
    margin-bottom: 0; /* override row style */
}
.schedule-style-2 .etn-schedule-info {
    margin-bottom: 12px;
}
.schedule-style-2 .etn-schedule-time {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}
.schedule-style-2 .etn-schedule-content {
    flex: 1;
}
.schedule-style-2 .etn-schedule-right-content {
    margin-top: 16px;
    text-align: left;
}
.schedule-style-2 .etn-schedule-speaker {
    justify-content: flex-start;
}

@media (max-width: 600px) {
    .schedule-style-2 .etn-schedule-grid-container {
        grid-template-columns: 1fr;
    }
}

/* ── Speaker 1 (single) ───────────────────────────────────── */
.etn-speaker-wrapper .etn-speaker-item .etn-speaker-thumb img {
    max-width: 100%;
    height: auto;
}

/* No posts found */
.etn-not-found-post {
    padding: 30px;
    text-align: center;
    color: #888;
    font-size: 15px;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 992px) {
    .etn-col-lg-3,
    .etn-col-lg-4 { width: 50%; }
    .etn-col-sm-3,
    .etn-col-sm-6 { width: 50%; }
    .etn-schedule-right-content { text-align: left; margin-top: 16px; }
    .etn-schedule-speaker { justify-content: flex-start; }
}
@media (max-width: 768px) {
    .etn-col-lg-3,
    .etn-col-lg-4,
    .etn-col-lg-6,
    .etn-col-md-6 { width: 100%; }
    .etn-col-sm-3,
    .etn-col-sm-6 { width: 100%; }
    .etn-nav li a { padding: 8px 14px; }
    .etn-date { font-size: 15px; }
    .etn-single-schedule-item { flex-direction: column; }
}
@media (max-width: 480px) {
    .etn-speaker-card-flex { flex-direction: column; text-align: center; }
    .etn-speaker-img-circle { margin: 0 auto; }
}


/* ── Author Card [room_author_card] ───────────────────────── */
.room-author-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: #faf7f4;
    border-radius: 3px;
    max-width: 680px;
}
.room-author-card--center {
    margin-left: auto;
    margin-right: auto;
}
.elementor-shortcode .room-author-card {
    margin-left: auto;
    margin-right: auto;
}
.room-author-card__avatar {
    flex-shrink: 0;
}
.room-author-card__photo,
.room-author-card__avatar img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}
.room-author-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.room-author-card__name {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: #141210;
    line-height: 1.2;
}
.room-author-card__meta {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #6b6660;
    line-height: 1.4;
}
.room-author-card__linkedin {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #c4a882;
    text-decoration: none;
    letter-spacing: 0.03em;
    margin-top: 2px;
}
.room-author-card__linkedin:hover {
    color: #141210;
}
.room-author-card__linkedin img.emoji {
    display: none !important;
}
.room-author-card__linkedin::after {
    content: ' ↗';
}
@media (max-width: 480px) {
    .room-author-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}