/*
 * Sessions Schedule Manager Pro - Styles
 * Professional tab interface and enhanced features
 */

/* Tab Container */
.ssmp-tabs {
    margin-bottom: 30px;
    font-family: inherit;
}

/* Tab List Container */
.ssmp-tabs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #dee2e6;
}

/* Individual Tab Buttons */
.ssmp-tabs-list-button {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 8px 8px 0 0;
    margin-bottom: -1px !important;
}

/* Tab Button Hover State */
.ssmp-tabs-list-button:hover {
    background: #e9ecef;
    color: #212529;
    border-color: #adb5bd;
}

/* Active Tab Button */
.ssmp-tabs-list-button[aria-selected="true"] {
    background: #ffffff;
    border-color: #007cba;
    border-bottom: 2px solid #ffffff;
    color: #007cba;
    font-weight: 600;
    z-index: 1;
}

/* Focus State for Accessibility */
.ssmp-tabs-list-button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Tab Panel Container */
.ssmp-tabs-panel {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0 8px 8px 8px;
    padding: 0;
    margin: 0;
}

/* Hide inactive panels */
.ssmp-tabs-panel[hidden] {
    display: none !important;
}

/* Show active panels */
.ssmp-tabs-panel:not([hidden]) {
    display: block;
}

/* Schedule table within panels */
.ssmp-tabs-panel .ssm-schedule {
    margin: 0;
    border-radius: 0 0 8px 8px;
}

/* Enhanced Content Display Styles */
.ssm-session-excerpt,
.ssm-session-full-content {
    margin-top: 8px;
    padding: 8px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
}

.ssm-session-full-content {
    max-height: 150px;
    overflow-y: auto;
}

.ssm-session-excerpt p,
.ssm-session-full-content p {
    margin: 0 0 8px 0;
}

.ssm-session-excerpt p:last-child,
.ssm-session-full-content p:last-child {
    margin-bottom: 0;
}

/* Sponsor Display Styles */
.ssmp-sponsor-single {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.ssmp-sponsor-single h2 {
    margin: 0 0 15px 0;
    font-size: 32px;
    color: #212529;
    font-weight: 600;
}

.ssmp-sponsor-single-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.ssmp-sponsor-single-image {
    max-width: 200px;
}

.ssmp-sponsor-single-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.ssmp-sponsor-single-image a:hover img {
    transform: scale(1.05);
}

/* Text fallback for sponsors without images */
.ssmp-sponsor-text-link {
    display: inline-block;
    padding: 12px 20px;
    background: #007cba;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #007cba;
}

.ssmp-sponsor-text-link:hover {
    background: #ffffff;
    color: #007cba !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Enhanced Speaker Display */
.ssm-single-session-speakers {
    margin: 15px 0;
    padding: 12px;
    background: #e8f4f8;
    border-radius: 6px;
    border-left: 4px solid #007cba;
}

.ssm-single-session-speakers strong {
    color: #007cba;
    font-weight: 600;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .ssmp-tabs-list {
        flex-direction: column;
        gap: 2px;
    }

    .ssmp-tabs-list-button {
        border-radius: 6px;
        margin-bottom: 0;
        border-bottom: 1px solid #dee2e6;
        text-align: left;
    }

    .ssmp-tabs-list-button[aria-selected="true"] {
        border-bottom: 1px solid #007cba;
    }

    .ssmp-tabs-panel {
        border-radius: 8px;
        margin-top: 10px;
    }

    .ssmp-sponsor-single-row {
        flex-direction: column;
        text-align: center;
    }

    .ssmp-sponsor-single-image {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .ssmp-tabs-list-button {
        padding: 10px 15px;
        font-size: 13px;
    }

    .ssm-session-excerpt,
    .ssm-session-full-content {
        font-size: 12px;
        padding: 6px;
    }

    .ssmp-sponsor-single {
        padding: 12px;
        margin: 15px 0;
    }

    .ssmp-sponsor-single h2 {
        font-size: 16px;
    }
}

/* Animation for smooth transitions */
.ssmp-tabs-panel {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Print styles */
@media print {
    .ssmp-tabs-list {
        display: none;
    }

    .ssmp-tabs-panel[hidden] {
        display: block !important;
    }

    .ssmp-tabs-panel {
        border: none;
        page-break-inside: avoid;
    }
}