/* ===== DESKTOP THEME PAGES STYLES ===== */
/* Desktop only (1024px and up) */

@media (min-width: 1024px) {

  /* ===================== */
  /* DESKTOP LAYOUT        */
  /* ===================== */
  .a-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    height: 100vh;
    padding: 15px;
    box-sizing: border-box;
    width: 100%;
    transition: all var(--transition-speed) ease;
  }

  /* ===================== */
  /* DESKTOP PANELS        */
  /* ===================== */
  .panel {
    max-height: calc(100vh - 30px - 10px);
  }

  #panel-a {
    --collapsed-width: 60px;
    --expanded-width: 30%;
    position: relative;
    flex: 3.6;
    width: var(--collapsed-width);
    min-width: var(--collapsed-width);
    max-width: var(--collapsed-width);
    transition: width var(--transition-speed) ease, min-width var(--transition-speed) ease;
    overflow-y: auto;
  }

  #panel-a.expanded {
    width: var(--expanded-width) !important;
    min-width: 250px !important;
    max-width: 350px !important;
    overflow-y: auto;
  }

  #panel-b {
    flex: 3.4;
    transition: all var(--transition-speed) ease;
    min-height: 0 !important;
    height: 100vh !important;
  }

  #panel-c {
    flex: 3;
    transition: all var(--transition-speed) ease;
    min-height: 0 !important;
    height: 100vh !important;
  }

  #panel-a.collapsed .panel-content {
    opacity: 0;
    pointer-events: none;
  }

  /* ===================== */
  /* DESKTOP HEADERS       */
  /* ===================== */
  .left-header,
  .central-header,
  .right-header {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
  }

  .left-header .navbar {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
  }

  .left-header .nav-links {
    display: flex;
    gap: 20px;
    margin-left: 0;
  }

  .central-header {
    justify-content: center;
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
  }

  /* ===================== */
  /* DESKTOP NAVBAR        */
  /* ===================== */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    background-color: inherit;
    border: none;
    font-size: 1.2rem;
    height: 100%;
    box-sizing: border-box;
    position: relative;
  }

  .navbar-nav.right {
    margin-left: auto;
  }

  .navbar-toggler {
    display: none;
  }

  .navbar-collapse {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .navbar-title {
    color: burlywood;
    font-size: 1.2rem;
    white-space: nowrap;
    padding-right: 15px;
    margin: 0;
    line-height: 1;
  }

  .navbar-brand,
  .navbar-title,
  .nav-links {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .navbar-brand img {
    height: 40px;
    width: auto;
    display: block;
  }

  .nav-links {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 20px;
    gap: 15px;
  }

  .nav-links.right {
    margin-left: auto;
    padding-right: 15px;
  }

  .nav-item {
    margin: 0 10px;
  }

  .nav-link {
    text-decoration: none;
    font-size: 16px;
    white-space: nowrap;
  }

  .nav-link:hover {
    color: orange;
  }

  /* ===================== */
  /* DESKTOP DROPDOWN      */
  /* ===================== */
  .dropdown {
    position: relative;
    z-index: 100;
  }

  .dropdown-btn {
    background: none;
    border: none;
    color: #99c7f2;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
  }

  .dropdown-btn i.fa-caret-down {
    transition: transform 0.2s ease;
    margin-left: 5px;
  }

  .dropdown-btn i.fa-caret-down.rotated {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    display: none;
    position: fixed;
    top: calc(100% + 5px);
    right: 15px;
    background-color: #2c3e50;
    border: 1px solid #3a4f63;
    border-radius: 4px;
    padding: 10px;
    min-width: 180px;
    z-index: 1051;
    list-style: none;
    margin: 2px 0 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }

  .dropdown-menu.active {
    display: block;
  }

  .dropdown-menu a,
  .dropdown-menu button {
    color: #99c7f2;
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
  }

  .dropdown-menu a:hover,
  .dropdown-menu button:hover {
    color: orange !important;
    text-decoration: underline;
  }

  /* ===================== */
  /* DESKTOP SEARCH BUTTON */
  /* ===================== */
  .search-button {
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #444;
    border-left: none;
    border-radius: 0 15px 15px 0;
    background-color: #333;
    color: #d0d8e6;
    padding: 0;
    margin-left: -1px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .search-button:hover {
    background-color: #007bff;
    color: #fff;
  }

  .search-button:focus {
    outline: 2px solid rgba(0, 123, 255, 0.5);
    outline-offset: 1px;
  }

  /* ===================== */
  /* DESKTOP FORM ELEMENTS */
  /* ===================== */
  .label-container {
    text-align: left;
    margin-bottom: 5px;
  }

  .search-label {
    white-space: nowrap;
    color: #d0d8e6;
    font-size: 0.8rem;
    display: block;
  }

  .input-with-icon {
    display: flex;
    align-items: center;
    position: relative;
  }

  .search-input::placeholder {
    text-align: center;
    color: #99c7f2;
  }

  .search-input {
    flex-grow: 1;
  }

  /* ===================== */
  /* DESKTOP SELECTORS     */
  /* ===================== */
  .selector-container select,
  .selector-container .search-select {
    width: 220px;
    padding: 10px 45px 10px 20px;
    border: 1px solid #555;
    border-radius: 25px;
    background-color: #2a2a2a;
    color: #99c7f2;
    font-size: 1rem;
    text-align: center;
    text-align-last: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2399c7f2'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .selector-container select:hover,
  .selector-container .search-select:hover {
    border-color: #007bff;
    background-color: #333;
  }

  .selector-container select:focus,
  .selector-container .search-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  }

  .selector-container select option,
  .selector-container .search-select option {
    background-color: #2a2a2a;
    color: #d0d8e6;
    padding: 12px 15px;
    font-size: 0.95rem;
    text-align: left;
  }

  /* ===================== */
  /* DESKTOP SEARCH INPUTS */
  /* ===================== */
  .search-input-selector {
    width: 280px !important;
    padding: 10px 45px 10px 20px !important;
    border: 1px solid #555 !important;
    border-radius: 25px !important;
    background-color: #2a2a2a !important;
    color: #99c7f2 !important;
    font-size: 1rem !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .search-input-selector::placeholder {
    color: #99c7f2 !important;
    opacity: 0.7 !important;
    text-align: center !important;
  }

  .search-input-selector:hover {
    border-color: #007bff !important;
    background-color: #333 !important;
  }

  .search-input-selector:focus {
    outline: none !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25) !important;
    background-color: #2a2a2a !important;
  }

  .search-input-selector:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background-color: #333 !important;
  }

  .search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: fit-content;
    margin: 0 auto;
  }

  .search-input-container .search-button {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #99c7f2;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }

  .search-input-container .search-button i {
    font-size: 16px;
  }

  .search-input-container .search-button:hover {
    color: #007bff;
  }

  .search-input-selector:disabled+.search-button {
    opacity: 0.6;
    cursor: not-allowed;
  }

  /* ===================== */
  /* DESKTOP SEARCH FORMS  */
  /* ===================== */
  .search-form {
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 20px;
    background-color: #333;
    transition: border-color 0.2s;
    overflow: hidden;
    height: 38px;
    max-width: 100%;
  }

  .search-form:hover,
  .search-form:focus {
    border: 1px solid #007bff;
  }

  .search-form .search-btn {
    padding: 0 12px;
    border: none;
    background-color: transparent;
    color: #d0d8e6;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 0 20px 20px 0;
    outline: none;
  }

  .search-form input {
    background-color: #333;
    border: none;
    color: #d0d8e6;
    padding: 8px 12px;
    height: 100%;
    outline: none;
    flex-grow: 1;
  }

  /* Navbar Search Components */
  .navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }

  #cinemaSearchForm,
  #literatureSearchForm {
    flex: 1;
    min-width: 0;
    max-width: 600px;
  }

  .search-box {
    display: flex;
    width: 100%;
  }

  #cinemaSearchInput,
  #literatureSearchInput,
  #composerSearchInput {
    flex-grow: 1;
    padding: 8px 20px;
    border: 1px solid #444;
    border-right: none;
    border-radius: 20px 0 0 20px;
    background-color: #333;
    color: #d0d8e6;
    font-size: 1rem;
  }

  .navbar-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-left: 20px;
  }

  /* ===================== */
  /* DESKTOP TABLES        */
  /* ===================== */
  .mytable {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
    color: #d0d8e6;
  }

  .mytable th,
  .mytable td {
    text-align: left;
    vertical-align: middle;
    font-size: 1.1rem;
  }

  .mytable tr:hover {
    background-color: #121212;
  }

  .writer-item-container {
    padding: 0 !important;
  }

  .info-icon {
    text-align: right;
    width: 20px;
  }

  .film-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  ul {
    list-style-type: none;
  }

  li {
    margin-bottom: 3px;
    cursor: pointer;
  }

  li:hover,
  li:focus {
    color: lightgreen;
  }

  .film-item {
    text-decoration: none;
    cursor: pointer;
  }

  /* ===================== */
  /* DESKTOP MOVIE DISCOVERY */
  /* ===================== */
  .movie-discovery {
    width: 100%;
    padding: 0;
  }

  .burly,
  h4.burly {
    color: burlywood;
    margin-bottom: 10px;
    font-size: 20px;
  }

  .selector-label {
    font-size: 1rem;
    margin-right: 10px;
  }

  .movie-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 100vh;
    scrollbar-width: thin;
    scrollbar-color: #444 #121212;
  }

  .movie-carousel::-webkit-scrollbar {
    width: 8px;
  }

  .movie-carousel::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 4px;
  }

  .movie-carousel::-webkit-scrollbar-track {
    background-color: #121212;
  }

  .movie-card {
    display: flex;
    align-items: center;
    background: #333;
    border-radius: 5px;
    padding: 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    max-height: 75px;
    margin-bottom: 5px;
  }

  .movie-image {
    flex: 0 0 30px;
    height: 30px;
    margin-right: 10px;
    overflow: hidden;
  }

  .movie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .movie-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .movie-link {
    font-size: 0.9rem;
    color: #99c7f2;
    text-decoration: none;
  }

  .movie-link:hover {
    text-decoration: underline;
    color: #ffa500;
  }

  /* ===================== */
  /* DESKTOP ACCORDION     */
  /* ===================== */
  .sites-accordion,
  .literary-container {
    margin-top: 20px;
  }

  .accordion-header,
  .literary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
  }

  .accordion-header:hover,
  .literary-header:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .accordion-icon {
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
  }

  .accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(0deg);
  }

  .literary-header::after {
    content: '+';
    font-size: 18px;
    transition: transform 0.3s ease;
  }

  .literary-header.active::after {
    content: '-';
  }

  .accordion-content,
  .literary-content {
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: max-height 0.3s ease-out;
  }

  .accordion-content[aria-hidden="true"],
  .literary-content:not(.active) {
    max-height: 0 !important;
  }

  .accordion-content[aria-hidden="false"],
  .literary-content.active {
    max-height: 1000px;
    display: block;
  }

  .literary-content {
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
  }

  .literary-list {
    list-style: none;
    padding: 5px 0 5px 15px;
    margin: 0;
  }

  .literary-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .load-writers-link {
    color: #99c7f2;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
  }

  .load-writers-link:hover {
    color: orange;
    text-decoration: underline;
    padding-left: 5px;
  }

  .literary-info {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 10px;
    transition: color 0.3s ease;
  }

  .literary-info:hover {
    color: orange;
  }

  /* ===================== */
  /* DESKTOP UTILITIES     */
  /* ===================== */
  .panel-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  .panel-error {
    padding: 20px;
    text-align: center;
    color: #d9534f;
  }

  .panel-error button {
    background: #d9534f;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
  }

  /* ===================== */
  /* DESKTOP FONT AWESOME  */
  /* ===================== */
  .fas,
  .far,
  .fal,
  .fab,
  .fa {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
  }

  .fa-home:before {
    content: "\f015";
  }

  /* ===================== */
  /* HIDE MOBILE NAV       */
  /* ===================== */
  .mobile-nav-aids {
    display: none !important;
  }
}

/* ===================== */
/* LARGE DESKTOP (1200px+) */
/* ===================== */
@media (min-width: 1200px) {
  .category-container {
    grid-template-columns: repeat(5, 1fr);
  }

  .movie-carousel {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================== */
/* EXTRA LARGE DESKTOP   */
/* ===================== */
@media (min-width: 1400px) {
  .category-container {
    gap: 25px;
  }

  .theme img {
    height: 180px;
  }
}