/* Tiny Treazure - Style mobilne CSS */

/* Media queries dla różnych rozmiarów ekranów */

/* Tablets (768px and down) */
@media screen and (max-width: 768px) {
  
  /* Typography adjustments */
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.7rem;
  }
  
  h4 {
    font-size: 1.3rem;
  }
  
  p {
    font-size: 1rem;
  }
  
  /* Header mobile */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand img {
    max-height: 50px;
  }
  
  .navbar-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    border-radius: 0 0 20px 20px;
  }
  
  .navbar-item {
    padding: 1rem 1.5rem;
    border-radius: 0;
    margin: 0;
  }
  
  .navbar-item::after {
    display: none;
  }
  
  /* Hero mobile */
  .hero {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Buttons mobile */
  .button.is-primary {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Sections mobile */
  .section {
    padding: 3rem 0;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .contact-info {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .contact-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Product cards mobile */
  .product-card {
    margin-bottom: 1.5rem;
  }
  
  .product-content {
    padding: 1.5rem;
  }
  
  .product-image {
    height: 200px;
  }
  
  /* Footer mobile */
  .footer {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Page header mobile */
  .page-header {
    padding: 4rem 0 3rem;
  }
  
  .page-header h1 {
    font-size: 2.2rem;
  }
  
  .page-header p {
    font-size: 1rem;
  }
  
  /* Utility classes mobile */
  .is-hidden-mobile {
    display: none !important;
  }
  
  .is-hidden-desktop {
    display: block !important;
  }
  
  /* Scroll to top mobile */
  .scroll-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

/* Mobile phones (480px and down) */
@media screen and (max-width: 480px) {
  
  /* Typography for small mobile */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  h4 {
    font-size: 1.2rem;
  }
  
  p {
    font-size: 0.95rem;
  }
  
  /* Container adjustments */
  .container {
    padding: 0 1rem;
  }
  
  /* Hero mobile small */
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  /* Buttons small mobile */
  .button.is-primary {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* Sections small mobile */
  .section {
    padding: 2rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .section-title::after {
    width: 60px;
  }
  
  /* Contact form small mobile */
  .contact-form {
    padding: 1.5rem 1rem;
    margin: 0.5rem;
    border-radius: 15px;
  }
  
  .contact-info {
    padding: 1.5rem 1rem;
    margin: 0.5rem;
    border-radius: 15px;
  }
  
  .field {
    margin-bottom: 1.5rem;
  }
  
  .input,
  .textarea {
    padding: 0.8rem;
    font-size: 0.95rem;
  }
  
  /* Gallery small mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Product cards small mobile */
  .product-content {
    padding: 1.2rem;
  }
  
  .product-title {
    font-size: 1.2rem;
  }
  
  .product-description {
    font-size: 0.9rem;
  }
  
  .product-price {
    font-size: 1.3rem;
  }
  
  .product-image {
    height: 180px;
  }
  
  /* Page header small mobile */
  .page-header {
    padding: 3rem 0 2rem;
  }
  
  .page-header h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .page-header p {
    font-size: 0.95rem;
  }
  
  /* Footer small mobile */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    gap: 1.5rem;
  }
  
  .footer-section h4 {
    font-size: 1.1rem;
  }
  
  .footer-section p,
  .footer-section a {
    font-size: 0.9rem;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
}

/* Very small mobile phones (360px and down) */
@media screen and (max-width: 360px) {
  
  /* Ultra small typography */
  h1 {
    font-size: 1.7rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  p {
    font-size: 0.9rem;
  }
  
  /* Container ultra small */
  .container {
    padding: 0 0.8rem;
  }
  
  /* Hero ultra small */
  .hero {
    min-height: 60vh;
  }
  
  .hero-title {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  /* Contact form ultra small */
  .contact-form {
    padding: 1rem 0.8rem;
    margin: 0.3rem;
  }
  
  .contact-info {
    padding: 1rem 0.8rem;
    margin: 0.3rem;
  }
  
  .contact-item {
    padding: 1rem;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  /* Product cards ultra small */
  .product-content {
    padding: 1rem;
  }
  
  .product-image {
    height: 160px;
  }
  
  /* Page header ultra small */
  .page-header {
    padding: 2.5rem 0 1.5rem;
  }
  
  .page-header h1 {
    font-size: 1.6rem;
  }
  
  .page-header p {
    font-size: 0.9rem;
  }
}

/* Landscape orientation adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
  
  .hero {
    min-height: 90vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .page-header {
    padding: 3rem 0 2rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  
  /* Remove hover effects on touch devices */
  .product-card:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
  }
  
  .product-card:hover::before {
    transform: scaleX(0);
  }
  
  .product-card:hover .product-image img {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  .gallery-overlay {
    opacity: 1;
    background: rgba(255, 107, 157, 0.6);
  }
  
  .contact-item:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.1);
  }
  
  .navbar-item:hover {
    transform: none;
  }
  
  .button:hover {
    transform: none;
  }
  
  .scroll-top:hover {
    transform: none;
  }
  
  .social-icon:hover {
    transform: none;
  }
  
  /* Increase touch targets */
  .navbar-item {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  .button {
    min-height: 48px;
    min-width: 48px;
  }
  
  .social-icon {
    min-width: 48px;
    min-height: 48px;
  }
  
  .scroll-top {
    min-width: 48px;
    min-height: 48px;
  }
}

/* High DPI displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min--moz-device-pixel-ratio: 2),
       only screen and (-o-min-device-pixel-ratio: 2/1),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
  
  /* Sharper text rendering */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print styles */
@media print {
  
  .navbar,
  .footer,
  .scroll-top,
  .contact-form,
  .button {
    display: none !important;
  }
  
  .hero {
    background: none !important;
    color: var(--text-dark) !important;
    min-height: auto !important;
  }
  
  .page-header {
    background: none !important;
    color: var(--text-dark) !important;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .product-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  a {
    color: var(--text-dark) !important;
    text-decoration: underline !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1 { font-size: 24pt; }
  h2 { font-size: 20pt; }
  h3 { font-size: 16pt; }
  h4 { font-size: 14pt; }
}

/* Accessibility improvements for mobile */
@media screen and (max-width: 768px) {
  
  /* Focus states for keyboard navigation */
  .navbar-item:focus,
  .button:focus,
  .input:focus,
  .textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
  }
  
  /* Skip link for screen readers */
  .skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
  }
  
  .skip-link:focus {
    top: 6px;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero::before {
    animation: none;
  }
  
  .page-header::before {
    animation: none;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  /* Można dodać wsparcie dla ciemnego motywu jeśli wymagane */
}