/* ═══════════════════════════════════════════════════════════════════
   GRAVÜR DÜNYASI - MOBILE RESPONSIVE STYLES
   Add this file after style.css: <link rel="stylesheet" href="mobile-responsive.css">
   ═══════════════════════════════════════════════════════════════════ */

/* ───── HEADER MOBILE FIXES ───────────────────────────────────────── */

/* Mobile Menu Toggle (add hamburger menu) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #423c32;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

@media (max-width: 992px) {
  /* Show hamburger menu */
  .mobile-menu-toggle {
    display: block;
  }
  
  /* Header adjustments */
  .header-main {
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    position: relative;
  }
  
  .logo-title {
    flex: 1;
  }
  
  .logo {
    width: 60px;
    height: 60px;
  }
  
  .main-title {
    font-size: 1.5rem;
  }
  
  .subtitle {
    font-size: 0.9rem;
  }
  
  /* Navigation - Mobile dropdown */
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 1rem 0;
    z-index: 1000;
    gap: 0;
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .main-nav a {
    padding: 1rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
  }
  
  .main-nav a:last-child {
    border-bottom: none;
  }
  
  /* Header links row */
  .header-links-row {
    padding: 0.8rem 1.5rem;
  }
  
  .header-links {
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
  }
  
  .lang-select {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .header-main {
    padding: 0.8rem 1rem;
  }
  
  .logo {
    width: 50px;
    height: 50px;
  }
  
  .main-title {
    font-size: 1.2rem;
  }
  
  .subtitle {
    font-size: 0.8rem;
  }
  
  .header-links-row {
    padding: 0.6rem 1rem;
  }
  
  .header-links {
    justify-content: center;
    gap: 0.8rem;
    font-size: 0.75rem;
  }
  
  .header-links a {
    padding: 4px 8px;
  }
}

/* ───── HERO SECTION MOBILE ───────────────────────────────────────── */

@media (max-width: 992px) {
  .header-image-container {
    flex-direction: column;
  }
  
  .header-image,
  .header-text {
    width: 100%;
  }
  
  .header-image img {
    height: 300px;
    object-position: center;
  }
  
  .header-text {
    padding: 2.5rem 2rem;
  }
  
  .header-text h1 {
    font-size: 1.8rem;
  }
  
  .header-text h2 {
    font-size: 2.2rem;
  }
  
  .header-text p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .header-image img {
    height: 220px;
  }
  
  .header-text {
    padding: 2rem 1.5rem;
  }
  
  .header-text h1 {
    font-size: 1.4rem;
    line-height: 1.4;
  }
  
  .header-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .header-text p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* ───── FILTER SECTION MOBILE ─────────────────────────────────────── */

@media (max-width: 992px) {
  .filter-section {
    padding: 1rem;
  }
  
  .filter-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .filter-group {
    width: 100%;
    min-width: unset;
  }
  
  .filter-group select {
    width: 100%;
  }
  
  .filter-actions {
    width: 100%;
  }
  
  .clear-filters {
    width: 100%;
  }
}

/* ───── SEARCH SECTION MOBILE ─────────────────────────────────────── */

@media (max-width: 768px) {
  .search-section {
    padding: 1rem;
  }
  
  .search-row {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .search-input {
    width: 100%;
  }
  
  .search-button,
  .clear-search-button {
    width: 100%;
    justify-content: center;
  }
}

/* ───── GRID CONTAINER MOBILE ─────────────────────────────────────── */

@media (max-width: 992px) {
  .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .grid-item {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1rem;
  }
  
  .grid-item {
    max-width: 100%;
  }
  
  .image-container {
    height: 220px;
    min-height: 200px;
    max-height: 280px;
  }
  
  .item-info {
    padding: 12px;
  }
  
  .item-title {
    font-size: 1rem;
  }
  
  .item-category,
  .item-date {
    font-size: 0.85rem;
  }
}

/* ───── PAGINATION MOBILE ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .pagination-container {
    flex-wrap: wrap;
    gap: 8px;
    padding: 1rem;
  }
  
  .pagination-controls {
    display: flex;
    gap: 8px;
  }
  
  .pagination-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .pagination-info,
  #page-info {
    width: 100%;
    text-align: center;
    order: -1;
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .pagination-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* ───── DETAIL PAGE MOBILE ────────────────────────────────────────── */

@media (max-width: 992px) {
  .print-detail-container,
  .detail-container {
    flex-direction: column !important;
    padding: 1.5rem !important;
    gap: 2rem !important;
    margin: 1rem !important;
  }
  
  .print-info,
  .detail-info-section,
  .print-image-wrapper,
  .detail-image-section {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .print-title,
  .detail-title {
    font-size: 1.8rem !important;
  }
  
  .print-meta-list,
  .detail-meta {
    font-size: 0.95rem !important;
  }
  
  .print-image {
    max-width: 100% !important;
    min-width: unset !important;
  }
  
  /* Magnifier - hide on mobile (touch doesn't work well) */
  .magnifier-glass {
    display: none !important;
  }
  
  .detail-image-container {
    cursor: pointer;
  }
}

@media (max-width: 576px) {
  .print-detail-container,
  .detail-container {
    padding: 1rem !important;
    margin: 0.5rem !important;
  }
  
  .print-title,
  .detail-title {
    font-size: 1.5rem !important;
  }
  
  .print-meta-list li,
  .meta-item {
    font-size: 0.9rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  .btn-back {
    width: 100%;
    text-align: center;
  }
  
  /* Fullscreen button */
  .fullscreen-btn {
    top: 8px;
    right: 8px;
    padding: 6px 10px;
    font-size: 16px;
  }
}

/* ───── ABOUT PAGE MOBILE ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .about-container {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .about-container h1 {
    font-size: 1.8rem;
  }
  
  .about-container h2 {
    font-size: 1.3rem;
    padding-left: 0.8rem;
  }
  
  .about-container h3 {
    font-size: 1.1rem;
  }
  
  .about-container p {
    text-align: left;
    font-size: 0.95rem;
  }
  
  .about-container ul {
    margin-left: 1rem;
  }
}

/* ───── CONTACT PAGE MOBILE ───────────────────────────────────────── */

@media (max-width: 768px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-icon {
    width: 70px;
    height: 70px;
    font-size: 1.6rem;
  }
  
  .contact-form-section {
    padding: 2rem 1.5rem;
  }
  
  .contact-form-section h2 {
    font-size: 1.6rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .submit-btn,
  .reset-btn {
    width: 100%;
    justify-content: center;
  }
  
  .social-links-contact {
    flex-direction: column;
    align-items: center;
  }
  
  .social-link {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* ───── FOOTER MOBILE ─────────────────────────────────────────────── */

@media (max-width: 768px) {
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-container {
    padding: 0 1rem;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
  }
  
  .contact-info li {
    font-size: 0.9rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    border-radius: 10px;
  }
  
  .newsletter-form input {
    border-radius: 10px 10px 0 0;
    text-align: center;
  }
  
  .newsletter-form button {
    border-radius: 0 0 10px 10px;
    padding: 14px;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .copyright {
    font-size: 0.85rem;
  }
}

/* ───── PAGE TITLE MOBILE ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .page-title {
    padding: 1.5rem 1rem;
  }
  
  .page-title h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .page-title h1 {
    font-size: 1.5rem;
  }
}

/* ───── REFERENCES PAGE MOBILE ────────────────────────────────────── */

@media (max-width: 768px) {
  .content-container {
    padding: 0 1rem;
    margin: 1.5rem auto;
  }
  
  .content-container section h2 {
    font-size: 1.5rem;
  }
  
  .content-container section h3 {
    font-size: 1.2rem;
  }
  
  .content-container ul {
    margin-left: 1rem;
  }
  
  .content-container li {
    font-size: 0.9rem;
  }
}

/* ───── CATEGORY MENU MOBILE ──────────────────────────────────────── */

@media (max-width: 768px) {
  .hierarchical-menu {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .main-category {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  
  .sub-category,
  .sub-sub-category {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .category-menu-section {
    padding: 2rem 1rem;
  }
  
  .menu-section-title {
    font-size: 1.5rem;
  }
}

/* ───── BILGI KÖŞESI MOBILE ───────────────────────────────────────── */

@media (max-width: 768px) {
  .bilgi-kosesi {
    padding: 0 1rem;
    margin: 1.5rem auto;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .info-cards {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .info-card {
    max-width: 100%;
  }
  
  .card-content h3 {
    font-size: 1rem;
  }
  
  .card-content p {
    font-size: 0.9rem;
  }
}

/* ───── FULLSCREEN OVERLAY MOBILE ─────────────────────────────────── */

@media (max-width: 768px) {
  .fullscreen-overlay .close-btn {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }
  
  .close-fullscreen {
    top: -50px !important;
    font-size: 28px !important;
  }
}

/* ───── RESULTS INFO MOBILE ───────────────────────────────────────── */

@media (max-width: 768px) {
  .results-info {
    padding: 0.8rem 1rem;
  }
  
  .results-count {
    font-size: 0.9rem;
  }
}

/* ───── LOADING STATES MOBILE ─────────────────────────────────────── */

@media (max-width: 768px) {
  .loading-container {
    padding: 3rem 1rem;
  }
  
  .no-results {
    padding: 3rem 1rem;
  }
  
  .no-results h3 {
    font-size: 1.3rem;
  }
  
  .no-results p {
    font-size: 0.95rem;
  }
}

/* ───── TOUCH IMPROVEMENTS ────────────────────────────────────────── */

@media (max-width: 992px) {
  /* Larger touch targets */
  button,
  .pagination-btn,
  .filter-select,
  select,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  a.social-link {
    min-height: 44px;
  }
  
  /* Prevent zoom on input focus (iOS) */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px;
  }
  
  /* Remove hover effects on touch devices */
  .grid-item:hover {
    transform: none;
  }
  
  .grid-item:active {
    transform: scale(0.98);
  }
}

/* ───── LANDSCAPE PHONE FIXES ─────────────────────────────────────── */

@media (max-width: 992px) and (orientation: landscape) {
  .header-image img {
    height: 200px;
  }
  
  .header-text {
    padding: 1.5rem;
  }
  
  .header-text h1 {
    font-size: 1.3rem;
  }
  
  .header-text h2 {
    font-size: 1.6rem;
  }
}

/* ───── SAFE AREA INSETS (iPhone X+) ──────────────────────────────── */

@supports (padding: max(0px)) {
  .footer {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
  
  header {
    padding-top: max(0px, env(safe-area-inset-top));
  }
}

/* ───── PRINT STYLES ──────────────────────────────────────────────── */

@media print {
  .main-nav,
  .header-links-row,
  .filter-section,
  .search-section,
  .pagination-section,
  .footer,
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .grid-container {
    display: block;
  }
  
  .grid-item {
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* ───── ACCESSIBILITY IMPROVEMENTS ────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 3px solid #bfa360;
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #bfa360;
  outline-offset: 2px;
}