/* Frontend styles */
.wp-block-oht-meeting-topics .oht-topics-block-container,
.wp-block-oht-meeting-summary .oht-meeting-summary-tabs {
    margin-top: 30px;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.oht-youtube-id {
    display: none;
}

/* Topics table styling */
.wp-block-oht-meeting-topics .oht-topics-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.4;
}

.wp-block-oht-meeting-topics .oht-topics-table th {
    background-color: #1e1e2d;
    color: #fff;
    text-align: left;
    padding: 10px 16px;
    font-weight: 600;
}

.wp-block-oht-meeting-topics .oht-topics-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
}

.wp-block-oht-meeting-topics .oht-topics-table tr.oht-topic-row {
    font-weight: 600;
}

.wp-block-oht-meeting-topics .oht-topics-table tr.oht-subtopic-row td:first-child {
    padding-left: 40px;
}

.wp-block-oht-meeting-topics .oht-timestamp-link,
.wp-block-oht-meeting-summary .timestamp-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.wp-block-oht-meeting-topics .oht-timestamp-link:hover,
.wp-block-oht-meeting-summary .timestamp-link:hover {
    text-decoration: underline;
}

.oht-block-placeholder {
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px dashed #ccc;
    text-align: center;
}

.oht-block-error {
    padding: 15px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 3px;
}

.oht-block-info {
    padding: 15px;
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 3px;
}

/* Meeting Tabs Styles */
.wp-block-oht-meeting-summary .meeting-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    margin-top: 20px;
}

.wp-block-oht-meeting-summary .meeting-tabs {
    display: flex;
    margin-bottom: 30px;
}

.wp-block-oht-meeting-summary .meeting-tab-button {
    padding: 10px 25px;
    background-color: #333333;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    margin: 0 5px;
    min-width: 120px;
    transition: background-color 0.3s;
    text-align: center;
}

.wp-block-oht-meeting-summary .meeting-tab-button.active {
    background-color: #0073aa;
}

.wp-block-oht-meeting-summary .meeting-tab-content {
    display: none;
}

.wp-block-oht-meeting-summary .meeting-tab-content.active {
    display: block;
}

/* Video container styles */
.wp-block-oht-meeting-summary .video-container-fixed {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: #000;
    padding-bottom: 56.25%; /* For 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.wp-block-oht-meeting-summary .video-container-fixed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 767px) {
    .wp-block-oht-meeting-summary .video-container-fixed {
        position: relative;
    }
}

/* YouTube embed styling */
.wp-block-oht-meeting-summary .youtube-embed-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.wp-block-oht-meeting-summary .youtube-embed-wrapper iframe {
    width: 100%;
    height: 480px;
}

@media (max-width: 767px) {
    .wp-block-oht-meeting-summary .youtube-embed-wrapper iframe, .oht-meeting-summary-tabs .youtube-embed-wrapper iframe {
        height: 220px;
    }
}

/* Transcript styling */
.wp-block-oht-meeting-summary .oht-transcript-content {
    line-height: 1.6;
}

.wp-block-oht-meeting-summary .oht-timestamp {
    font-weight: bold;
    color: #0073aa;
    text-decoration: none;
    margin-right: 10px;
}

.wp-block-oht-meeting-summary .oht-timestamp:hover {
    text-decoration: underline;
}

.wp-block-oht-meeting-summary .oht-transcript-section-heading {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.wp-block-oht-meeting-summary .oht-transcript-line {
    margin-bottom: 10px;
}

/* Generic Tab styling */
.wp-block-oht-meeting-summary .tab-button {
    display: inline-block;
    padding: 10px 30px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    margin-right: 5px;
}

.wp-block-oht-meeting-summary .tab-button.active {
    background-color: #0073aa;
}

.wp-block-oht-meeting-summary .tab-button:not(.active) {
    background-color: #333333;
}

/* Tab content styling */
.wp-block-oht-meeting-summary .tab-content {
    display: none;
}

.wp-block-oht-meeting-summary .tab-content.active {
    display: block;
}

#videoOuterDiv,#videoOuterDiv iframe{
    transition: all 0.3s ease;
}

/* Video player */
#videoOuterDiv.is-sticky{
    position: fixed;
    right:10px;
    top:95px;
    width:300px;
    z-index: 9;
    margin: 0px!important;
    padding: 0px!important;
}

#videoOuterDiv.is-sticky iframe{
    width: 300px !important;
    height: auto !important;
    margin: 0px !important;
    padding: 0px !important;
}

/* Custom YouTube Play Button */
.oht-youtube-player-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.oht-custom-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    /* transition: all 0.3s ease; */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.oht-custom-play-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.oht-custom-play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 25px solid #333;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.oht-custom-play-button.playing {
    display: none;
}

.oht-custom-play-button.paused {
    display: flex;
}

/* Make sure the button is visible over the iframe */
.youtube-embed-wrapper {
    position: relative;
}

#videoOuterDiv {
    position: relative;
}

/* Responsive sizing for smaller screens */
@media (max-width: 768px) {
    .oht-custom-play-button {
        width: 60px;
        height: 60px;
    }
    
    .oht-custom-play-button::before {
        border-left: 20px solid #333;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        margin-left: 3px;
    }
}
/* media 600px max */
@media (max-width: 600px) {
    #videoOuterDiv.is-sticky{
        position: fixed;
        top:75px;
        width:100%;
        margin: 0px!important;
        background-color: unset!important;
    }
    #videoOuterDiv.is-sticky iframe{
        width: 100px !important;
        height: 60px !important;
        margin: 0px !important;
        padding: 0px !important;
        right:0px;
        position: fixed;
    }
    #videoOuterDiv.is-sticky .oht-custom-play-button{
        position: sticky;
        margin-top: 32px;
        margin-left: 16px;
        margin-right: -20px;
        top: unset;
        left: 100%;
    }

}
