@charset "utf-8";

/**
 * ============================================================================
 * File: media.css
 * Author: hack.code
 * Version: 1.0.0
 * Last Modified: 2025-10
 * ============================================================================
 */

/* Tablet and Below (768px) */
@media (max-width: 768px) {
  
  /* Global Adjustments */
  
  /* Display Toggle */
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }
  
  /* Mobile Padding Adjustment - Header Height Compensation */
  .mobile-padding-fix {
    padding-top: 120px !important;
  }
  .mobile-padding-adjust {
    padding-top: 140px !important;
  }
  
  /* Breadcrumb Adjustment */
  .breadcrumb {
    margin-bottom: 16px;
    padding: 10px 12px;
    font-size: 11px;
    gap: 4px;
  }
  
  /* Footer Adjustment */
  .footer-menu-section {
    padding: 24px 0;
  }
  .footer-menu-nav {
    gap: 16px;
    flex-direction: column;
  }
  .footer-menu-item {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }
  
  /* Ranking Page */
  
  /* Category Tabs */
  .category-tabs {
    padding: 12px;
    gap: 8px;
    flex-direction: column;
  }
  .category-tab {
    padding: 10px 16px;
    width: 100%;
    font-size: 13px;
    text-align: center;
  }
  
  /* Control Section */
  .controls-section {
    flex-direction: column;
    align-items: stretch;
  }
  .control-group {
    width: 100%;
    justify-content: space-between;
  }
  
  /* History Button Centering */
  .control-group:last-child {
    justify-content: center;
  }
  .control-group:last-child .search-btn-modern {
    padding: 8px 24px;
    width: auto;
  }
  
  /* History Page */
  
  /* Button Center Alignment */
  .button-container {
    justify-content: center;
  }
  .content-card {
    padding: 16px;
  }
  .product-header-simple {
    text-align: center;
    gap: 12px;
    flex-direction: column;
  }
  .product-image-small {
    margin: 0 auto;
  }
  .product-title {
    font-size: 16px;
  }
  .history-table {
    font-size: 12px;
  }
  .history-table th,
  .history-table td {
    padding: 8px 6px;
  }
  .rank-badge {
    min-width: 28px;
    height: 24px;
    font-size: 12px;
  }
  
  /* Search Results Page */
  .search-query {
    font-size: 18px;
  }
  .result-card {
    gap: 12px;
    flex-direction: column;
  }
  .result-image {
    margin: 0 auto;
    width: 100%;
    max-width: 300px;
    height: 200px;
  }
  .result-title {
    font-size: 16px;
  }
  .result-stats {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .result-meta {
    flex-direction: column;
  }

  /* Product Detail Page */
  .product-header {
    gap: 16px;
    flex-direction: column;
  }
  .product-image-main {
    margin: 0 auto;
    width: 100%;
    max-width: 300px;
    height: auto;
  }
  .product-title {
    font-size: 18px;
  }
  .info-row {
    gap: 4px;
    flex-direction: column;
  }
  .info-label {
    width: 100%;
    font-weight: 600;
  }
  .rank-display {
    gap: 4px;
  }
  .current-rank {
    justify-content: center;
  }
  .rank-chart {
    min-width: 100%;
  }
  .price-table {
    font-size: 12px;
  }
  .price-table th,
  .price-table td {
    padding: 8px 6px;
  }
}

/* Mobile (640px and Below) */
@media (max-width: 640px) {
  
  /* Category Card Adjustment */
  .category-card {
    padding: 10px;
  }
  .category-icon-wrapper {
    margin-right: 8px;
    width: 32px;
    height: 32px;
  }
  .category-icon {
    width: 18px;
    height: 18px;
  }
  .category-label {
    font-size: 12px;
  }
}

/* Desktop (769px and Above) */
@media (min-width: 769px) {
  
  /* Display Toggle */
  .mobile-only {
    display: none;
  }
  .desktop-only {
    display: block;
  }
  
  /* Footer Adjustment */
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-logo-section {
    margin-bottom: 0;
  }
}