/*
 * Responsive styles for Yali Katz's Portfolio
 * Editorial Dark Theme - Mobile-first responsive design
 */

/* Small devices - phones (up to 576px) */
/* Base styles are already mobile-first in main.css */

/* Medium devices - tablets (576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: var(--container-sm);
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 1.75rem;
  }
}

/* Large devices - laptops/desktops (768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }

  .grid-md-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-md-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .profile-section {
    gap: var(--spacing-xxl);
  }

  .profile-photo {
    width: 260px;
    height: 260px;
  }
}

/* Extra large devices - large desktops (992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: var(--container-lg);
  }

  .grid-lg-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .profile-photo {
    width: 280px;
    height: 280px;
  }
}

/* XXL devices (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .header-container {
    position: relative;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .nav-main {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: var(--spacing-md);
    background: var(--bg-darker);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
  }

  .nav-main a {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-fast);
  }

  .nav-main a:hover {
    background-color: var(--bg-elevated);
  }

  .nav-main a::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-main.collapsed {
    display: none;
  }

  .contact-fab {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 50px;
    height: 50px;
  }

  .contact-fab a i {
    font-size: 1.2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg);
  }

  .profile-section {
    flex-direction: column;
    text-align: center;
  }
}

/* Small phone devices */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .card {
    padding: var(--spacing-lg);
  }

  .profile-photo {
    width: 160px;
    height: 160px;
  }

  .btn {
    display: block;
    width: 100%;
    margin-bottom: var(--spacing-md);
  }

  .social-links {
    justify-content: center;
  }
}

/* Utility: Visually hidden for screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Text alignment utilities */
.text-center {
  text-align: center;
}
