/* =========================================================
   NICKMUSIC.GR - RESPONSIVE CSS
   Φορτώνει ΜΕΤΑ το style.css
   ========================================================= */


/* =========================================================
   <= 1200px
   ========================================================= */
@media (max-width: 1200px) {

  #ht-container.ht-clearfix {
    width: 96%;
    padding: 0 20px;
  }

  .ht-footer {
    padding: 0 30px;
  }

  .free-items {
    gap: 80px;
  }

  .media-grid {
    gap: 70px;
  }

  .recording-wrap {
    gap: 70px;
  }

  .links-row {
    gap: 60px;
  }

  .product-container {
    gap: 40px;
  }

  .woo-tabs-outer,
  .related-wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* =========================================================
   <= 1024px  (tablet)
   ========================================================= */
@media (max-width: 1024px) {

  /* ---------- HEADER ---------- */
  #ht-masthead.ht-site-header {
    height: 80px;
  }

  #ht-masthead.ht-site-header.shrink {
    height: 64px;
  }

  #ht-container.ht-clearfix {
    width: 96%;
    padding: 0 16px;
  }

  #ht-site-branding img {
    max-height: 52px;
  }

  #ht-masthead.ht-site-header.shrink #ht-site-branding img {
    max-height: 44px;
  }

  .nm-menu {
    gap: 16px;
  }

  .nm-menu > li > a {
    padding: 8px 10px;
    font-size: 14px;
  }

  .lang-label {
    font-size: 13px;
  }

  /* ---------- MAIN LAYOUT ---------- */
  .ht-container {
    flex-direction: column;
    gap: 24px;
  }

  #primary {
    width: 100%;
  }

  #secondary {
    width: 100%;
    margin-top: 10px;
  }

  .content-area,
  .widget-area {
    float: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .widget-area {
    border-top: 1px solid #e5e5e5;
    padding-top: 20px;
  }

  /* ---------- FOOTER ---------- */
  #ht-top-footer .ht-container {
    gap: 24px 0;
  }

  .ht-footer {
    width: 50%;
    min-width: 0;
    padding: 0 20px;
  }

  /* ---------- INDEX ---------- */
  .category {
    flex: 0 0 calc(50% - 15px);
  }

  /* ---------- PAGE TITLES ---------- */
  .partners-page .page-title,
  .downloads-page .page-title,
  .authors-page .page-title,
  .instructions-page .page-title,
  .about-page .page-title,
  .free-page .page-title,
  .freebooks-title,
  .media-title,
  .youtube-title,
  .cineapolis-title,
  .instructions-title,
  .spaceq-title,
  .reviews-title,
  .ebooks-title,
  .books-title,
  .news-title,
  .welcome-title,
  .scores-page .page-title {
    font-size: 30px;
  }

  /* ---------- SIMPLE FLEX SECTIONS ---------- */
  .free-items,
  .media-grid,
  .recording-wrap,
  .links-row {
    gap: 40px;
  }

  .free-items {
    flex-direction: column;
  }

  .media-grid {
    flex-direction: column;
  }

  .recording-wrap {
    flex-direction: column;
  }

  .links-row {
    flex-direction: column;
  }

  /* ---------- EBOOKS / BOOKS / RELATED ---------- */
  .ebooks-grid,
  .books-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  /* ---------- PRODUCT PAGE ---------- */
  .product-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-right {
    margin-top: 0;
  }

  .product-title-right,
  .product-left .product-title {
    font-size: 24px;
  }

  .product-price {
    font-size: 26px;
  }

  .pdf-frame {
    height: 620px;
  }

  .woo-tabs-outer,
  .related-wrapper {
    padding-left: 0;
    padding-right: 0;
    margin-top: 20px;
  }

  /* ---------- CONTACT ---------- */
  .contact-form-msg {
    min-width: 0;
    width: 100%;
  }

  /* ---------- EXAMS ---------- */
  .exams-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   <= 860px  (mobile nav trigger point - ταιριάζει με style.css)
   ========================================================= */
@media (max-width: 860px) {

  #ht-masthead.ht-site-header {
    height: auto;
  }

  #ht-masthead.ht-site-header.shrink {
    height: auto;
  }

  #ht-container.ht-clearfix {
    width: 100%;
    padding: 10px 14px;
    flex-wrap: wrap;
    align-items: center;
  }

  #ht-site-branding {
    flex: 1 1 auto;
    min-width: 0;
  }

  #ht-site-branding img {
    max-height: 42px;
  }

  .nm-toggle {
    display: inline-block;
    margin-left: auto;
  }

  #ht-site-navigation {
    width: 100%;
    order: 3;
  }

  #ht-site-navigation.open {
    display: block;
    margin-top: 10px;
  }

  #ht-site-navigation.ht-main-navigation {
    justify-content: flex-start;
  }

  .nm-menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 0 0 0;
  }

  .nm-menu > li {
    width: 100%;
  }

  .nm-menu > li > a {
    display: block;
    width: 100%;
    padding: 12px 8px;
  }

  .lang-dropdown {
    margin-left: 0;
    margin-top: 10px;
    align-self: flex-start;
  }

  .lang-menu {
    left: 0;
    right: auto;
  }
}


/* =========================================================
   <= 768px  (mobile)
   ========================================================= */
@media (max-width: 768px) {

  /* ---------- GLOBAL ---------- */
  html,
  body {
    overflow-x: hidden;
  }

  img,
  iframe,
  video {
    max-width: 100%;
    height: auto;
  }

  /* ---------- WRAPPERS ---------- */
  .ht-container {
    width: calc(100% - 24px);
    margin: 24px auto;
    gap: 20px;
  }

  .container {
    padding: 12px;
  }

  /* ---------- FOOTER ---------- */
  #ht-top-footer {
    padding: 28px 0;
  }

  .ht-footer {
    width: 100%;
    padding: 0;
  }

  .social-icons {
    flex-wrap: wrap;
  }

  .ht-footer .cineapolis-logo {
    width: 100%;
    max-width: 220px;
  }

  /* ---------- INDEX ---------- */
  .categories {
    gap: 18px;
  }

  .category {
    flex: 0 0 100%;
  }

  /* ---------- TITLES ---------- */
  .partners-page .page-title,
  .downloads-page .page-title,
  .authors-page .page-title,
  .instructions-page .page-title,
  .about-page .page-title,
  .free-page .page-title,
  .freebooks-title,
  .media-title,
  .youtube-title,
  .cineapolis-title,
  .instructions-title,
  .spaceq-title,
  .reviews-title,
  .ebooks-title,
  .books-title,
  .news-title,
  .welcome-title,
  .scores-page .page-title,
  .shipping-page .page-title,
  .payment-page .page-title,
  .contact-page .page-title {
    font-size: 24px !important;
    line-height: 1.25;
    margin-bottom: 16px;
  }

  /* ---------- TEXT BLOCKS ---------- */
  .partners-intro,
  .downloads-coming-soon,
  .freebook-message,
  .youtube-message,
  .cineapolis-message,
  .spaceq-description,
  .news-message,
  .welcome-message,
  .review-text,
  .partner-box p,
  .about-page .about-text {
    font-size: 16px;
  }

  /* ---------- FIXED WIDTH SECTIONS ---------- */
  .free-box,
  .free-box .line-top,
  .free-box .line-bottom,
  .free-box img,
  .media-img-box,
  .media-img-box::before,
  .media-img-box::after,
  .media-img-box img,
  .rec-item,
  .rec-img,
  .rec-line {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .free-box-title,
  .media-label,
  .rec-label {
    font-size: 16px;
  }

  /* ---------- LINKS ---------- */
  .links-col {
    min-width: 0;
    width: 100%;
  }

  .links-category {
    font-size: 18px;
  }

  .links-item a,
  .links-final {
    font-size: 16px;
  }

  /* ---------- EBOOKS / BOOKS / RELATED ---------- */
  .ebooks-grid,
  .books-grid,
  .related-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ebook-btn,
  .book-btn,
  .related-btn {
    width: calc(100% - 32px);
    padding: 11px 12px;
    font-size: 15px;
    white-space: normal;
  }

  /* ---------- PRODUCT ---------- */
  .pdf-frame {
    height: 420px;
  }

  .product-buy-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .quantity-wrapper {
    flex-wrap: wrap;
    gap: 10px;
  }

  .qty-input {
    margin-top: 0;
  }

  .woo-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }

  .woo-tabs li {
    font-size: 14px;
    padding: 9px 12px;
  }

  .meta-line {
    font-size: 15px;
  }

  .extra-table td:first-child {
    width: 140px;
  }

  /* ---------- CONTACT ---------- */
  .contact-section {
    padding: 0;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form input[type="password"],
  .contact-form input[type="search"],
  .contact-form textarea {
    width: 100% !important;
  }

  /* ---------- SPACE QUESTIONS ---------- */
  .spaceq-form {
    flex-direction: column;
    align-items: stretch;
  }

  .spaceq-input {
    width: 100%;
  }

  .spaceq-error {
    margin-left: 0;
  }

  /* ---------- SPREC ---------- */
  .sprec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .sprec-item-left img {
    max-width: 100%;
  }

  .sprec-item-right {
    width: 100%;
    justify-content: flex-start;
  }

  .sprec-download-btn {
    width: 100%;
    text-align: center;
  }

  /* ---------- TABLES ---------- */
  .exam-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .exam-table,
  .exam-years-table {
    min-width: 640px;
  }
}


/* =========================================================
   <= 480px  (small mobile)
   ========================================================= */
@media (max-width: 480px) {

  #ht-container.ht-clearfix {
    padding: 10px 10px;
  }

  .ht-container {
    width: calc(100% - 16px);
  }

  .partners-page .page-title,
  .downloads-page .page-title,
  .authors-page .page-title,
  .instructions-page .page-title,
  .about-page .page-title,
  .free-page .page-title,
  .freebooks-title,
  .media-title,
  .youtube-title,
  .cineapolis-title,
  .instructions-title,
  .spaceq-title,
  .reviews-title,
  .ebooks-title,
  .books-title,
  .news-title,
  .welcome-title,
  .scores-page .page-title,
  .shipping-page .page-title,
  .payment-page .page-title,
  .contact-page .page-title {
    font-size: 21px !important;
  }

  .product-left .product-title,
  .product-title-right {
    font-size: 21px;
  }

  .product-price {
    font-size: 22px;
  }

  .pdf-frame {
    height: 320px;
  }

  .purchase-modal-box {
    padding: 14px 10px 10px 10px;
  }

  .purchase-modal-content {
    padding: 18px 14px;
  }

  .purchase-modal-btn {
    width: 100%;
  }
}