/* LegalQuery (LQ) - Responsive Styles */

/* Tablet Styles */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
    text-align: center;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 1rem 0.5rem;
  }
    
  .menu-toggle {
    display: block;
  }
  
  .menu--main {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    flex-direction: column;
    align-items: stretch;
    padding: 4rem 0 2rem;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
  }
  
  .menu--main.active {
    left: 0;
  }
  
  .menu--main li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .menu--main a {
    padding: 1rem 1.5rem;
    border-bottom: none;
    display: block;
    width: 100%;
  }
  
  .menu--main a::after {
    display: none;
  }
  
  /* Mobile menu overlay */
  .menu--main.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
  
  /* Close button for mobile menu */
  .menu--main.active::after {
    content: '×';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-gold);
    border: 2px solid white;
    font-weight: bold;
    line-height: 1;
  }
  
  /* Mobile menu actions */
  .mobile-menu-actions {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block
  }
  
  .mobile-menu-actions a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.75rem 0;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .mobile-menu-actions a:last-child {
    border-bottom: none;
  }
  
  .mobile-menu-actions a:hover {
    color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.1);
    padding-left: 0.5rem;
    transition: all 0.3s ease;
  }
  
  /* Hide header actions on mobile */
  .header-actions {
    display: none !important;
  }
  
  /* Mobile header adjustments */
  .layout-header {
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--primary-blue);
  }
  
  .header-content {
    justify-content: space-between;
    align-items: center;
    min-height: 56px;
  }
  
  .site-branding {
    flex: 1;
  }
  
  .site-name {
    font-size: 1.4rem;
    padding: 0.75rem 0;
  }
  
  .menu-toggle {
    display: flex;
    position: relative;
  }
  
  /* Hero section mobile adjustments */
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .search-form {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-input {
    width: 100%;
  }
  
  .search-btn {
    width: 100%;
  }
  
  .hero-stats {
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .lq-node-header {
    padding: 0.75rem;
  }
  
  .lq-title {
    font-size: 1.75rem;
  }
  
  .lq-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .meta-item:not(:last-child)::after {
    display: none;
  }
  
  .lq-content {
    padding: 0.75rem;
  }
  
  .rich-content {
    font-size: 1rem;
  }
  
  .rich-content h2 {
    font-size: 1.5rem;
  }
  
  .rich-content h3 {
    font-size: 1.2rem;
  }
  
  .action-group {
    flex-direction: column;
    align-items: center;
  }
  
  .lq-btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: 1;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .comment-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .comment-author-info {
    width: 100%;
  }
  
  .new-badge {
    align-self: flex-start;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .lq-node-header {
    padding: 0.5rem;
  }
  
  .lq-title {
    font-size: 1.5rem;
  }
  
  .lq-content {
    padding: 0.5rem;
  }
  
  .lq-footer {
    padding: 0.75rem;
  }
  
  .layout-container {
    padding: 0 1rem;
  }
  
  .author-avatar {
    width: 40px;
    height: 40px;
  }
  
  .avatar-initial {
    font-size: 1rem;
  }
  
  .comment-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* Print Styles */
@media print {
  .layout-header,
  .layout-primary-menu,
  .lq-footer,
  .action-group,
  .menu-toggle,
  .header-actions {
    display: none;
  }
  
  .lq-header {
    background: none;
    color: black;
    padding: 1rem 0;
  }
  
  .lq-title {
    color: black;
  }
  
  .lq-content {
    padding: 0;
  }
  
  .rich-content {
    color: black;
  }
  
  .rich-content h2,
  .rich-content h3 {
    color: black;
  }
}