/* Main Layout */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    color: #060606;
    font-weight: 300;
}

#wrapper {
    height: 100vh;
}

/* Banner */
#banner {
    background: linear-gradient(120.85deg, rgb(0, 24, 57) 0%, rgb(31, 70, 122) 98.31%);
    position: relative;
    min-height: 184px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow: visible;
    z-index: 1;
    height: 184px;
    padding-top: 60px;
}

#banner .first {
    text-align: center;
    font-size: 1.25em;
    color: rgba(255, 255, 255, 0.8);
}

#banner .second {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    color: white;
    padding-top: 0;
}

#banner .bottomline {
    width: 100%;
    height: 4px;
    background: linear-gradient(269.52deg, rgb(255, 255, 255) 50%, rgb(255, 107, 0) 100%);
    position: absolute;
    bottom: 0px;
    transform: translateY(0%);
}

#logo1 {
    position: absolute;
    top: -20px;
    left: calc(50% - 90px);
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background-image: url('media/hexagon_base_blue.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

#logo1 img {
    margin-top: 3px;
    margin-left: 2px;
}

#logo2 {
    position: absolute;
    top: -8px;
    left: calc(50% + 90px);
    transform: translateX(-50%);
    width: 150px;
    height: 80px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
    text-align: center;
}

#logo2 img {
    width: 90%;
    height: 100%;
    object-fit: contain;
}

.containerThomas {
    position: relative;
    padding-top: 100px;
    height: 300px;
    z-index: 0;
}

#banner h1 {
    margin: 0;
    padding: 30px;
}

/* Container */
.container {
    position: relative;
    z-index: 0;
    padding: 20px;
    padding-top: 60px;
}

h1, h2, h3, p {
    font-weight: 300;
    text-align: center;
    margin: 40px;
}

.container > .row:first-child h2 {
    margin: 10px 40px;
}

/* Player */
#player-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
    line-height: 0;
    margin: auto;
    -webkit-box-shadow: 0px 0px 56px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 56px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 56px 0px rgba(0, 0, 0, 0.75);
}

#player-wrapper {
    position: relative;
}

.player-play-pause {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.player-play-pause:hover {
    background: rgba(0, 0, 0, 0.75);
}

.player-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.75);
    color: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.player-play-pause:disabled {
    opacity: 0;
    pointer-events: none;
}

/* Cards */
.card-text {
    text-align: center;
    margin: unset;
}

.additional-text {
    margin-top: 40px;
}

/* Stream Buttons */
.stream-btn {
    margin: 5px;
    min-width: 120px;
}

.stream-btn.active {
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.5);
}

/* Controls Bar */
.controls-bar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.controls-bar .control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.controls-bar label {
    font-size: 0.85em;
    color: #666;
    margin: 0;
    white-space: nowrap;
}

.controls-bar .latency-value {
    font-family: monospace;
    font-size: 1.1em;
    font-weight: 400;
    min-width: 60px;
}

.latency-btn.active {
    background-color: #1f467a;
    border-color: #1f467a;
    color: white;
}

/* Stream Selector */
.stream-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.content {
    margin-bottom: 10em;
}

/* Publisher */
#publisher-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.publisher-devices {
    display: flex;
    gap: 8px;
    width: 100%;
}

.publisher-devices select {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 300;
}

.publisher-preview {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

#preview-video {
    max-height: 200px;
    border-radius: 6px;
    background: #000;
}

.live-badge {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    background: #e00;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.4;
}

.live-badge.visible {
    display: block;
}

.publisher-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.publisher-start-btn,
.publisher-load-btn {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    padding: 6px 24px;
    border: 1px solid #1f467a;
    background: linear-gradient(120deg, #001839, #1f467a);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0.02em;
    display: inline-block;
}

.publisher-start-btn:hover,
.publisher-load-btn:hover {
    background: linear-gradient(120deg, #001839, #2a5a9e);
    box-shadow: 0 2px 8px rgba(31, 70, 122, 0.3);
    color: white;
}

.publisher-start-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Intro Text */
.intro-text {
    font-size: 0.95em;
    color: #555;
    line-height: 1.7;
    margin: 10px 40px 30px;
}

/* Architecture Diagram */
.architecture-section {
    margin-top: 50px;
}

.architecture-section h3 {
    margin-bottom: 20px;
}

.architecture-diagram {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Quotes */
.quote-section {
    margin-top: 50px;
}

.moq-quote {
    border-left: 4px solid #1f467a;
    padding: 15px 25px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

.moq-quote p {
    text-align: left;
    font-style: italic;
    font-size: 0.95em;
    line-height: 1.7;
    color: #333;
    margin: 0 0 10px 0;
}

.moq-quote footer {
    text-align: left;
    font-weight: 400;
    color: #1f467a;
    font-size: 0.9em;
}

/* NAB CTA */
.nab-cta {
    margin-top: 60px;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(120.85deg, rgb(0, 24, 57) 0%, rgb(31, 70, 122) 98.31%);
    border-radius: 12px;
}

.nab-cta h2 {
    color: white;
    margin: 0 0 15px 0;
}

.cta-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95em;
    line-height: 1.7;
    margin: 0 0 10px 0;
}

.cta-booths {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 1.05em;
    margin: 15px 0 25px 0;
}

.btn-cta {
    background: linear-gradient(269.52deg, rgb(255, 255, 255) 50%, rgb(255, 107, 0) 100%);
    color: #001839;
    font-weight: 400;
    padding: 10px 30px;
    border-radius: 6px;
    border: none;
    transition: all 0.2s ease;
}

.btn-cta:hover {
    opacity: 0.9;
    color: #001839;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

/* Responsive */
@media (max-width: 800px) {
    #banner .second {
        font-size: 1.4em;
    }
    #banner .first p {
        font-size: 0.9em;
    }

    .container {
        padding: 10px;
        padding-top: 60px;
    }

    .stream-btn {
        min-width: 70px;
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .controls-bar {
        padding: 10px;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .controls-bar .control-group {
        flex-wrap: wrap;
        gap: 5px;
    }

    .latency-btn {
        font-size: 0.75rem !important;
        padding: 3px 8px !important;
    }

    h1, h2, h3, p {
        margin: 20px 10px;
    }

    #logo1 {
        left: calc(50% - 70px);
    }

    #logo2 {
        left: calc(50% + 70px);
        width: 120px;
        height: 65px;
    }

    .intro-text {
        margin: 10px 10px 20px;
    }

    .nab-cta {
        margin: 40px 10px 20px;
        padding: 25px 15px;
    }
}
