/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1E1E1E;
    color: white;
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}

.app {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* AppBar Styles */
.app-bar {
    background-color: #c70a36;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 100;
    gap: 16px;
}

.app-bar-title {
    flex:1;
    display: grid;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.app-bar-actions {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.logo {
    object-fit: contain;
    height: 22px;
}

.app-bar-title span {
    font-size: .9em;
    font-weight: 500;
    color: #f2f2f2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* AppBar Search Styles */
.app-bar-search {
    flex: 1;
    max-width: 400px;
    position: relative;
    margin: 0 16px;
}

.search-input-container-appbar {
    position: relative!important;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 0 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input-container-appbar:focus-within {
    border-color: #f2f2f2!important;
    /* border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.25); */
}

.search-input-container-appbar .search-icon {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 8px;
    font-size: 18px;
}

.search-input-appbar {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: white;
    font-size: 14px;
    padding: 10px 0;
    font-family: 'Roboto', sans-serif;
}

.search-input-appbar::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-clear-appbar {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    /* margin-left: 4px; */
}

.search-clear-appbar:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.search-clear-appbar .material-icons {
    font-size: 16px;
}

.search-results-appbar {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: #3A3A3A;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.language-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #2A2A2A;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 140px;
    display: none;
    z-index: 1001;
    margin-top: 4px;
}

.language-dropdown.show {
    display: block;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.language-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.language-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.language-check {
    font-size: 20px;
    color: #4CAF50;
}

.language-check.inactive {
    color: #666;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1E1E1E;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #c70a36;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



.search-result-item {
    padding: 16px 20px;
    border-bottom: 1px solid #4A4A4A;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #444;
}

.search-result-item.selected {
    background-color: #c70a36;
}

.search-result-title {
    font-weight: 500;
    color: white;
    margin-bottom: 4px;
    font-size: 14px;
}

.search-result-description {
    color: #ccc;
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-highlight {
    background-color: #c70a36;
    color: white;
    padding: 1px 2px;
    border-radius: 2px;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}



@media (max-width: 800px) {
    .main-content {
        flex-direction: column;
        height: calc(100vh - 64px);
        overflow: hidden;
    }

    .navigation-panel {
        width: 100%!important;
        height: 100px;
        order: 1;
        flex-shrink: 0;
        border-right: none;
        border-bottom: 1px solid #4A4A4A;
        background-color: #2A2A2A;
    }

    .nav-list {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 0;
        gap: 6px;
        height: 100%;
        align-items: center;
        width: 100%;
    }

    .nav-item {
        min-width: 150px;
        max-width: 220px;
        flex-shrink: 0;
        height: 60px;
        margin: 0 6px;
        display: flex;
        align-items: center;
    }

    .nav-item:first-child {
        margin-left: 12px;
    }

    .nav-item:last-child {
        margin-right: 0;
    }

    .nav-item-content {
        padding: 8px 12px;
        text-align: center;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .nav-item-text {
        font-size: 13px;
        line-height: 1.2;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .content-area {
        flex: 1;
        order: 2;
        overflow-y: auto;
    }

    .content-container {
        padding: 16px;
        max-width: 100%;
    }

    .content-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .content-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .media-content {
        margin: 16px 0;
    }

    .media-content img,
    .media-content video {
        max-width: 100%;
        height: auto;
    }
    
    /* AppBar responsive - Mobile fix */
    .app-bar {
        padding: 0 12px;
        gap: 12px;
        height: 64px;
        min-height: 64px;
        flex-wrap: nowrap;
        /* overflow: hidden; */
    }
    
    .app-bar-title {
        flex-shrink: 1;
        min-width: 140px;
        overflow: hidden;
    }
    
    .app-bar-title span {
        font-size: 15px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: 500;
    }
    
    /* .logo {
        width: 170px;
        height: 24px;
        flex-shrink: 0;
    } */
    
    .app-bar-search {
        margin: 0 8px;
        max-width: 220px;
        min-width: 130px;
        flex: 1;
    }
    
    .search-input-container-appbar {
        padding: 0 12px;
        min-height: 40px;
        border-radius: 20px;
    }
    
    .search-input-appbar {
        font-size: 14px;
        padding: 10px 0;
    }
    
    .search-input-container-appbar .search-icon {
        font-size: 18px;
        margin-right: 8px;
    }
    
    .search-clear-appbar .material-icons {
        font-size: 18px;
    }
    
    .app-bar-actions {
        flex-shrink: 0;
    }
    
    .language-btn {
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
    }

    /* Search results positioning for mobile */
    .search-results-appbar {
        left: 12px;
        right: 12px;
        max-height: 300px;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Navigation Panel */
.navigation-panel {
    scrollbar-color: #3a3a3a transparent;
    width: 300px;
    background-color: #2A2A2A;
    overflow-y: auto;
    border-right: 1px solid #4A4A4A;
}

.nav-list {
    padding: 8px;
}

/* Custom scrollbar for navigation */
.nav-list::-webkit-scrollbar {
    height: 4px;
}

.nav-list::-webkit-scrollbar-track {
    background: #2A2A2A;
}

.nav-list::-webkit-scrollbar-thumb {
    background: #4A4A4A;
    border-radius: 2px;
}

.nav-list::-webkit-scrollbar-thumb:hover {
    background: #5A5A5A;
}

.nav-item {
    margin: 3px 0;
    border-radius: 8px;
    background-color: #3A3A3A;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-item.selected {
    background-color: #c70a36;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid #c70a36;
}

.nav-item:hover:not(.selected) {
    background-color: #444;
}

.nav-item-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 16px;
}

.nav-item-indicator {
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background-color: #c70a36;
}

.nav-item.selected .nav-item-indicator {
    background-color: white;
}

.nav-item-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #B0B0B0;
}

.nav-item.selected .nav-item-text {
    color: white;
    font-weight: 600;
}

/* Content Area */
.content-area {
    scrollbar-color: #3a3a3a transparent;
    flex: 1;
    background-color: #1E1E1E;
    overflow-y: auto;
}

.content-container {
    padding: 24px;
}

.content-title {
    font-size: 24px;
    font-weight: bold;
    color: #c70a36;
    margin-bottom: 20px;
}

.content-description {
    font-size: 14px;
    color: white;
    line-height: 1.6;
    margin-bottom: 20px;
}

.content-details {
    margin-bottom: 20px;
}

.details-title {
    font-size: 16px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    margin: 4px 0;
    gap: 8px;
}

.detail-bullet {
    color: #c70a36;
    font-size: 16px;
    font-weight: bold;
    margin-top: 2px;
}

.detail-text {
    flex: 1;
    font-size: 14px;
    color: #B0B0B0;
    line-height: 1.4;
}

/* Media Content */
.media-content {
    width: 100%;
    height: 500px;
    background-color: #2A2A2A;
    border: 1px solid #4A4A4A;
    border-radius: 8px;
    margin: 30px 0 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #666;
}

.media-placeholder .material-icons {
    font-size: 48px;
    color: #c70a36;
}

.media-placeholder-text {
    font-size: 14px;
    color: #B0B0B0;
    text-align: center;
}

/* Contact Section */
.contact-section {
    width: 100%;
    padding: 20px;
    background-color: #2A2A2A;
    border: 1px solid #4A4A4A;
    border-radius: 8px;
}

.contact-title {
    font-size: 18px;
    font-weight: bold;
    color: #c70a36;
    margin-bottom: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-icon {
    color: #B0B0B0;
    font-size: 20px;
    margin-top: 2px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    color: #B0B0B0;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 14px;
    color: white;
    font-weight: 500;
}

/* Video Placeholder */
.video-placeholder {
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.video-icon {
    font-size: 80px !important;
    color: white;
}

.video-text {
    color: white;
    font-size: 16px;
    text-align: center;
}

/* Video Player Styles */
video {
    border-radius: 8px;
    background-color: #000;
    /* Prevent right-click and selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Prevent drag */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

video:focus {
    outline: 2px solid #2D5AA0;
    outline-offset: 2px;
}

/* Hide audio controls completely */
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-mute-button {
    display: none !important;
}

video::-moz-media-controls-volume-slider,
video::-moz-media-controls-mute-button {
    display: none !important;
}

/* Hide download button in video controls */
video::-webkit-media-controls-download-button {
    display: none !important;
}

video::-moz-media-controls-download-button {
    display: none !important;
}

/* Medium Mobile screens */
@media (max-width: 600px) {
    .app-bar {
        padding: 0 10px;
        gap: 10px;
        height: 60px;
        min-height: 60px;
    }

    .app-bar-title {
        min-width: 120px;
        max-width: 180px;
    }

    .app-bar-title span {
        font-size: 14px;
        font-weight: 500;
    }

    .logo {
        /* width: 160px; */
        height: 15px;
    }

    .main-content {
        height: calc(100vh - 60px);
    }
    
    .navigation-panel {
        order: 1;
        border-bottom: 1px solid #4A4A4A;
        border-top: none;
        height: 90px;
    }
    
    .content-area {
        order: 2;
    }
    
    .nav-item {
        height: 55px;
        min-width: 130px;
        max-width: 190px;
        display: flex;
        align-items: center;
        margin: 0 5px;
    }

    .nav-item:first-child {
        margin-left: 10px;
    }

    .nav-item:last-child {
        margin-right: 0;
    }
    
    .nav-item-content {
        padding: 7px 11px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    
    .nav-item-text {
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-bar-search {
        margin: 0 6px;
        max-width: 160px;
        min-width: 100px;
    }

    .search-input-container-appbar {
        padding: 0 10px;
        min-height: 38px;
        border-radius: 19px;
    }

    .search-input-appbar {
        font-size: 13px;
        padding: 9px 0;
    }

    .search-input-container-appbar .search-icon {
        font-size: 17px;
        margin-right: 7px;
    }

    .language-btn {
        padding: 7px;
        min-width: 38px;
        min-height: 38px;
    }

    .language-btn .material-icons {
        font-size: 19px;
    }

    .content-title {
        font-size: 20px;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .content-description {
        font-size: 13px;
        line-height: 1.5;
    }

    .details-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .detail-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .app-bar {
        padding: 0 8px;
        height: 56px;
        min-height: 56px;
        gap: 8px;
    }

    .app-bar-title {
        flex-shrink: 1;
        min-width: 110px;
        max-width: 190px;
    }

    .app-bar-title span {
        font-size: 13px;
        font-weight: 500;
    }

    /* .logo {
        width: 150px;
        height: 20px;
    } */

    .main-content {
        height: calc(100vh - 56px);
    }

    .navigation-panel {
        height: 80px;
    }

    .nav-list {
        padding: 8px 0;
        gap: 4px;
        align-items: center;
        width: 100%;
    }

    .nav-item {
        min-width: 120px;
        max-width: 170px;
        height: 50px;
        display: flex;
        align-items: center;
        margin: 0 4px;
    }

    .nav-item:first-child {
        margin-left: 8px;
    }

    .nav-item:last-child {
        margin-right: 0;
    }

    .nav-item-content {
        padding: 6px 10px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .nav-item-text {
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .content-container {
        padding: 12px;
    }

    .content-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .content-description {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .media-content {
        margin: 12px 0;
        height: auto;
    }

    /* Mobile video responsive */
    .media-content video {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    /* Improved AppBar for small screens */
    .app-bar-search {
        margin: 0 4px;
        max-width: 140px;
       min-width: 190px;
        flex: 1;
    }
    
    .search-input-container-appbar {
        padding: 0 8px;
        min-height: 36px;
        border-radius: 18px;
    }
    
    .search-input-appbar {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .search-input-container-appbar .search-icon {
        font-size: 16px;
        margin-right: 6px;
    }
    
    .search-clear-appbar {
        padding: 4px;
        /* margin-left: 4px; */
    }
    
    .search-clear-appbar .material-icons {
        font-size: 16px;
    }
    
    .language-btn {
        padding: 6px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .language-btn .material-icons {
        font-size: 20px;
    }
    
    /* Search results for small screens */
    .search-results-appbar {
        left: 8px;
        right: 8px;
        max-height: 250px;
    }

    .search-result-item {
        padding: 12px 16px;
    }

    .search-result-title {
        font-size: 13px;
    }

    .search-result-description {
        font-size: 11px;
    }
}

/* Ultra small screens - Better text handling */
@media (max-width: 360px) {
    .app-bar-title span {
        font-size: 12px;
        max-width: 100px;
    }
    
    .app-bar-title {
        min-width: 80px;
        flex-shrink: 1;
    }
    
    .app-bar-search {
        max-width: 140px;
        min-width: 80px;
        margin: 0 4px;
    }
    
    .search-input-container-appbar {
        min-height: 32px;
        padding: 0 6px;
        border-radius: 16px;
    }
    
    .search-input-appbar {
        font-size: 11px;
        padding: 6px 0;
    }

    .language-btn {
        padding: 4px;
        min-width: 32px;
        min-height: 32px;
    }
    
    .language-btn .material-icons {
        font-size: 18px;
    }
}

/* Search results scrollbar */
.search-results-appbar::-webkit-scrollbar {
    width: 4px;
}

.search-results-appbar::-webkit-scrollbar-track {
    background: #3A3A3A;
}

.search-results-appbar::-webkit-scrollbar-thumb {
    background: #5A5A5A;
    border-radius: 2px;
}

.search-results-appbar::-webkit-scrollbar-thumb:hover {
    background: #6A6A6A;
} 