/**
 * ==========================================================================
 * TECHi Theme - Desktop Enhancements
 * ==========================================================================
 *
 * This file contains desktop-specific styles that enhance the mobile-first
 * base styles in mobile.css. Only loaded on desktop devices (min-width: 1024px).
 *
 * Breakpoint: min-width: 1024px
 *
 * @package TECHi
 * @version 2.0.0
 */

/* ==========================================================================
   1. DESKTOP LAYOUT OVERRIDES
   ========================================================================== */

@media screen and (min-width: 1024px) {

  /* Container - Desktop uses clamp for fluid padding */
  .techi-container {
    padding-left: clamp(1.5rem, 5vw, 5rem);
    padding-right: clamp(1.5rem, 5vw, 5rem);
  }

  /* Section spacing */
  body.home section + section {
    margin-top: var(--section-gap-desktop);
  }

  body.single .entry-content > * + * {
    margin-top: var(--section-gap-desktop);
  }

  /* ==========================================================================
     2. TYPOGRAPHY - Desktop Sizes
     ========================================================================== */

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.125rem; }
  h6 { font-size: 1rem; }

  .section-start-heading {
    font-size: 26px;
    font-weight: 700;
    line-height: 20px;
    color: var(--dark);
    margin-bottom: 0;
  }

  h2.h2-font {
    font-size: 38px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 2rem;
  }

  /* Single post typography */
  body.single .entry-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  body.single .entry-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }

  body.single .entry-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
  }

  body.single .entry-content p {
    max-width: 65ch;
    line-height: 1.7;
  }

  /* ==========================================================================
     3. HEADER - Desktop Layout
     ========================================================================== */

  .main-top-header-bar {
    padding: 10px 0;
  }

  .header-logo {
    margin-right: 2rem;
    position: relative;
  }

  .header-logo img {
    width: 85%;
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
  }

  .header-logo img:hover {
    filter: drop-shadow(0 2px 4px rgba(0, 176, 174, 0.15));
  }

  /* Logo separator line */
  .header-logo::before {
    content: "";
    position: absolute;
    height: 98px;
    background: linear-gradient(180deg, var(--primary-color) 0%, transparent 100%);
    width: 2px;
    right: -12px;
    top: -36px;
    opacity: 0.6;
  }

  .header-btns-main-wrapper {
    width: 100%;
    margin-left: 3rem;
    gap: 1.5rem;
  }

  .top-header-bar-right-elements {
    gap: 24px;
  }

  /* Category Toggle - Hidden on desktop */
  .category-toggle-bars {
    display: none;
  }

  /* Desktop Category Buttons Wrapper */
  .header-cat-btns-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  /* Desktop search bar */
  .header-search-bar {
    min-width: 280px;
  }

  /* Desktop header buy button margin */
  a.headerbuy-btn {
    margin-left: 2rem;
  }

  /* ==========================================================================
     4. CATEGORY NAVIGATION - Desktop Swiper/Carousel
     ========================================================================== */

  #menu-primary-menu-new-1 {
    padding: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
  }

  #menu-primary-menu-new-1 .tdb-menu-item-text {
    margin: 0;
    list-style: none;
    padding: 12px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%);
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
  }

  #menu-primary-menu-new-1 .tdb-menu-item-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
    z-index: 1;
  }

  #menu-primary-menu-new-1 .tdb-menu-item-text:hover::before {
    left: 100%;
  }

  #menu-primary-menu-new-1 .tdb-menu-item-text:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 176, 174, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 176, 174, 0.25);
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
  }

  #menu-primary-menu-new-1 .tdb-menu-item-text > div {
    font-size: 28px;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 50%, var(--primary-accessible) 100%);
    border-radius: 16px;
    border: 3px solid transparent;
    color: #fff;
    margin-bottom: 8px;
    width: 80px;
    height: 80px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto auto 8px auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 176, 174, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
    animation: categoryGradientShift 6s ease infinite;
  }

  @keyframes categoryGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  #menu-primary-menu-new-1 .tdb-menu-item-text:hover > div {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 176, 174, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.25);
  }

  #menu-primary-menu-new-1 a {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    text-align: center;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 6px 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  #menu-primary-menu-new-1 a:hover {
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 176, 174, 0.2);
  }

  .item-cat-post-count {
    color: var(--primary-color);
    line-height: 1;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(0, 176, 174, 0.1) 0%, rgba(0, 176, 174, 0.2) 100%);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-top: 2px;
    display: inline-block;
    border: 1px solid rgba(0, 176, 174, 0.2);
  }

  /* Carousel Navigation */
  #menu-primary-menu-new-1 .owl-nav button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 176, 174, 0.3);
    z-index: 10;
  }

  #menu-primary-menu-new-1 .owl-nav button:hover {
    background: linear-gradient(135deg, var(--primary-accessible) 0%, var(--primary-accessible-hover) 100%);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 176, 174, 0.35);
  }

  #menu-primary-menu-new-1 .owl-prev {
    left: -25px;
  }

  #menu-primary-menu-new-1 .owl-next {
    right: -25px;
  }

  /* ==========================================================================
     5. CARDS - Desktop Enhancements
     ========================================================================== */

  /* Top Post Cards */
  .post-content {
    padding: 16px;
  }

  .post-title {
    font-size: 1rem;
  }

  .post-meta {
    font-size: 0.8rem;
  }

  /* Hero Layout Sizes - Desktop */
  .hero-large .post-image-wrapper {
    padding-top: 56.25%; /* 16:9 */
  }

  .hero-medium .post-image-wrapper {
    padding-top: 75%; /* 4:3 */
  }

  .hero-small .post-image-wrapper {
    padding-top: 85%;
  }

  .hero-large .post-content {
    padding: 20px;
  }

  .hero-large .post-title {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 700;
    -webkit-line-clamp: 3;
  }

  .hero-medium .post-content {
    padding: 14px;
  }

  .hero-medium .post-title {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 600;
  }

  .hero-small .post-content {
    padding: 12px;
  }

  .hero-small .post-title {
    margin: 0 0 6px 0;
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 600;
  }

  .hero-large .post-meta { font-size: 0.8rem; }
  .hero-medium .post-meta { font-size: 0.7rem; }
  .hero-small .post-meta { font-size: 0.65rem; }

  /* Featured Post - Desktop */
  .techi-featured-post-main figure {
    height: 68%;
  }

  .techi-featured-post-main .techi-featured-post-main-content {
    padding: 14px 16px;
    min-height: 32%;
  }

  .techi-featured-post-main .techi-featured-post-main-content h2 a {
    font-size: 24px;
    line-height: 1.2;
  }

  .techi-featured-post-main .techi-featured-post-main-content p.post-meta {
    font-size: 16px;
  }

  /* Small Featured Post - Desktop */
  .techi-featured-post-sm figure {
    height: 67%;
  }

  .techi-featured-post-sm .techi-featured-post-main-content {
    padding: 12px 14px;
    min-height: 33%;
  }

  .techi-featured-post-sm .techi-featured-post-main-content h2 a {
    font-size: 16px;
    line-height: 1.25;
  }

  /* Trending Post - Desktop */
  .techi-featured-post-trending img {
    max-width: 140px;
    min-width: 140px;
    height: 80px;
  }

  /* ==========================================================================
     6. FOOTER - Desktop Layout
     ========================================================================== */

  .techi-footer h4,
  .techi-footer h5 {
    font-size: 20px;
  }

  .menu-copyright-left-menu-container ul,
  .menu-copyright-right-menu-container ul {
    display: flex;
    column-gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }

  .menu-copyright-right-menu-container ul {
    justify-content: end;
  }

  .menu-copyright-left-menu-container ul {
    justify-content: start;
  }

  /* ==========================================================================
     7. RESPONSIVE UTILITIES - Desktop Visibility
     ========================================================================== */

  .d-lg-none { display: none; }
  .d-lg-block { display: block; }
  .d-lg-flex { display: flex; }
  .d-lg-inline-flex { display: inline-flex; }
  .d-lg-grid { display: grid; }

  /* Desktop columns */
  .col-lg-1 { width: 8.333%; }
  .col-lg-2 { width: 16.667%; }
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333%; }
  .col-lg-5 { width: 41.667%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.333%; }
  .col-lg-8 { width: 66.667%; }
  .col-lg-9 { width: 75%; }
  .col-lg-10 { width: 83.333%; }
  .col-lg-11 { width: 91.667%; }
  .col-lg-12 { width: 100%; }

  /* Desktop text alignment */
  .text-lg-start { text-align: left; }
  .text-lg-center { text-align: center; }
  .text-lg-end { text-align: right; }

  /* Desktop flex direction */
  .flex-lg-row { flex-direction: row; }
  .flex-lg-column { flex-direction: column; }

  /* Desktop gap */
  .gap-lg-4 { gap: var(--space-4); }
  .gap-lg-5 { gap: var(--space-5); }
  .gap-lg-6 { gap: var(--space-6); }

  /* Desktop padding */
  .p-lg-4 { padding: var(--space-4); }
  .p-lg-5 { padding: var(--space-5); }
  .px-lg-5 { padding-inline: var(--space-5); }
  .py-lg-5 { padding-block: var(--space-5); }

  /* Desktop margin */
  .mt-lg-0 { margin-top: 0; }
  .mb-lg-0 { margin-bottom: 0; }
  .ms-lg-auto { margin-inline-start: auto; }
  .me-lg-auto { margin-inline-end: auto; }

} /* End @media (min-width: 1024px) */

/* ==========================================================================
   8. EXTRA LARGE DESKTOP (1200px+)
   ========================================================================== */

@media screen and (min-width: 1200px) {

  #menu-primary-menu-new-1 .tdb-menu-item-text > div {
    width: 70px;
    height: 70px;
    font-size: 24px;
  }

  .techi-featured-post-main .techi-featured-post-main-content h2 a {
    font-size: 24px;
  }

  /* Extra large columns */
  .col-xl-1 { width: 8.333%; }
  .col-xl-2 { width: 16.667%; }
  .col-xl-3 { width: 25%; }
  .col-xl-4 { width: 33.333%; }
  .col-xl-5 { width: 41.667%; }
  .col-xl-6 { width: 50%; }
  .col-xl-7 { width: 58.333%; }
  .col-xl-8 { width: 66.667%; }
  .col-xl-9 { width: 75%; }
  .col-xl-10 { width: 83.333%; }
  .col-xl-11 { width: 91.667%; }
  .col-xl-12 { width: 100%; }
}

/* ==========================================================================
   9. RESPONSIVE CONTAINER PADDING BREAKPOINTS
   ========================================================================== */

/* Max-width 1520px - slightly reduced padding */
@media screen and (max-width: 1520px) {
  .techi-container {
    padding-left: clamp(1.25rem, 4vw, 4rem);
    padding-right: clamp(1.25rem, 4vw, 4rem);
  }
  #menu-primary-menu-new-1 .owl-stage-outer {
    max-width: 1240px;
    margin: auto;
  }
}

/* Max-width 1380px - further reduced padding */
@media screen and (max-width: 1380px) and (min-width: 1200px) {
  body .techi-container {
    padding-left: clamp(1rem, 3vw, 2.5rem);
    padding-right: clamp(1rem, 3vw, 2.5rem);
  }
}

/* Max-width 1200px - compact padding */
@media screen and (max-width: 1200px) {
  body .techi-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .header-nav-bar-services .techi-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Wide Desktop (1440px+) */
@media screen and (min-width: 1440px) {
  /* Swiper category nav text adjustment */
  .techiSwiper .tdb-menu-item-text {
    font-size: 12px;
  }

  /* XXL columns */
  .col-xxl-1 { width: 8.333%; }
  .col-xxl-2 { width: 16.667%; }
  .col-xxl-3 { width: 25%; }
  .col-xxl-4 { width: 33.333%; }
  .col-xxl-6 { width: 50%; }
  .col-xxl-8 { width: 66.667%; }
  .col-xxl-9 { width: 75%; }
  .col-xxl-12 { width: 100%; }
}

/* ==========================================================================
   10. PRINT STYLES
   ========================================================================== */

@media print {
  .main-top-header-bar,
  .header-nav-bar-services,
  .techi-footer,
  .mobile-menu-toggle,
  .category-toggle-bars,
  .header-search-bar,
  #load-more-btn,
  .view-more-btn {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  .techi-container {
    max-width: 100%;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }
}
