/**
 * Responsive Styles
 */

/* Responsive Display Utilities */
@media (min-width: 576px) {
  .d-sm-none { display: none !important; }
  .d-sm-block { display: block !important; }
  .d-sm-inline-block { display: inline-block !important; }
  .d-sm-flex { display: flex !important; }
  .d-sm-inline-flex { display: inline-flex !important; }
  .d-sm-grid { display: grid !important; }
}

@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-inline-block { display: inline-block !important; }
  .d-md-flex { display: flex !important; }
  .d-md-inline-flex { display: inline-flex !important; }
  .d-md-grid { display: grid !important; }
}

@media (min-width: 1024px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-inline-block { display: inline-block !important; }
  .d-lg-flex { display: flex !important; }
  .d-lg-inline-flex { display: inline-flex !important; }
  .d-lg-grid { display: grid !important; }
}

@media (min-width: 1280px) {
  .d-xl-none { display: none !important; }
  .d-xl-block { display: block !important; }
  .d-xl-inline-block { display: inline-block !important; }
  .d-xl-flex { display: flex !important; }
  .d-xl-inline-flex { display: inline-flex !important; }
  .d-xl-grid { display: grid !important; }
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .psc-header-inner {
    padding: var(--psc-spacing-sm) 0;
  }
  
  .psc-nav-primary {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--psc-white);
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 999;
    margin: 0;
  }
  
  .psc-nav-primary.active {
    left: 0;
  }
  
  .psc-nav-menu {
    flex-direction: column;
    padding: var(--psc-spacing-lg) var(--psc-spacing-md);
    gap: 0;
  }
  
  .psc-nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--psc-gray-light);
  }
  
  .psc-nav-menu a {
    display: block;
    padding: var(--psc-spacing-md);
  }
  
  .psc-mobile-toggle {
    display: flex;
  }
  
  .psc-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .psc-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .psc-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1023px) {
  .psc-container {
    max-width: 720px;
  }
  
  .psc-main-wrapper .psc-container {
    grid-template-columns: 1fr 250px;
    gap: var(--psc-spacing-lg);
  }
  
  .psc-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile First Responsive Spacing */
@media (min-width: 768px) {
  .mt-md-0 { margin-top: 0 !important; }
  .mt-md-auto { margin-top: auto !important; }
  .mb-md-0 { margin-bottom: 0 !important; }
  .mb-md-auto { margin-bottom: auto !important; }
  .ml-md-0 { margin-left: 0 !important; }
  .ml-md-auto { margin-left: auto !important; }
  .mr-md-0 { margin-right: 0 !important; }
  .mr-md-auto { margin-right: auto !important; }
  
  .pt-md-0 { padding-top: 0 !important; }
  .pb-md-0 { padding-bottom: 0 !important; }
  .pl-md-0 { padding-left: 0 !important; }
  .pr-md-0 { padding-right: 0 !important; }
}

/* Text Alignment Responsive */
@media (min-width: 768px) {
  .text-md-left { text-align: left !important; }
  .text-md-center { text-align: center !important; }
  .text-md-right { text-align: right !important; }
}

/* Flexbox Responsive */
@media (min-width: 768px) {
  .flex-md-row { flex-direction: row !important; }
  .flex-md-column { flex-direction: column !important; }
  .justify-md-start { justify-content: flex-start !important; }
  .justify-md-end { justify-content: flex-end !important; }
  .justify-md-center { justify-content: center !important; }
  .justify-md-between { justify-content: space-between !important; }
  .align-md-start { align-items: flex-start !important; }
  .align-md-end { align-items: flex-end !important; }
  .align-md-center { align-items: center !important; }
}

/* Component Responsive Adjustments */
@media (max-width: 767px) {
  /* Cards */
  .psc-card {
    margin-bottom: var(--psc-spacing-md);
  }
  
  /* Buttons */
  .psc-btn {
    width: 100%;
    text-align: center;
  }
  
  .psc-btn + .psc-btn {
    margin-top: var(--psc-spacing-sm);
  }
  
  /* Forms */
  .psc-form-actions {
    flex-direction: column;
  }
  
  .psc-form-actions .psc-btn {
    width: 100%;
  }
  
  /* Modal */
  .psc-modal-content {
    margin: var(--psc-spacing-md);
    max-height: calc(100vh - 2rem);
  }
  
  /* Footer */
  .psc-footer-widgets {
    grid-template-columns: 1fr;
  }
  
  .psc-footer-menu {
    flex-direction: column;
    align-items: center;
    gap: var(--psc-spacing-sm);
  }
  
  .psc-footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Print Styles */
@media print {
  .psc-header,
  .psc-footer,
  .psc-sidebar,
  .psc-nav-primary,
  .psc-mobile-toggle,
  .psc-btn,
  .psc-form {
    display: none !important;
  }
  
  .psc-main-wrapper .psc-container {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
}