/* LibreOffice Website - Responsive Styles */

/* ==========================================================================
   Language Selector Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .language-selector {
    margin-left: 0;
    margin-top: 10px;
  }
  
  .language-btn {
    width: 100%;
    justify-content: center;
  }
  
  .language-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .language-btn span {
    display: none;
  }
  
  .language-btn {
    padding: 8px 12px;
    min-width: 50px;
    justify-content: center;
  }
}

/* ==========================================================================
   Tablet Styles (768px - 991px)
   ========================================================================== */
@media (max-width: 991px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .carousel-caption h1 {
    font-size: 2.5rem;
  }

  .carousel-caption p {
    font-size: 1.1rem;
  }

  .carousel-item {
    height: 500px;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }

  .section {
    padding: 60px 0;
  }

  .download-section {
    padding: 80px 0;
  }

  .navbar-nav .nav-link {
    padding: 15px 12px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Mobile Styles (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .carousel-item {
    height: 400px;
  }

  .carousel-caption {
    padding: 20px;
  }

  .carousel-caption h1 {
    font-size: 1.75rem;
    margin-bottom: 15px;
  }

  .carousel-caption p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .carousel-control-prev {
    left: 10px;
  }

  .carousel-control-next {
    right: 10px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .download-section {
    padding: 60px 0;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-download {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .navbar-brand img {
    height: 40px;
  }

  .container {
    padding: 0 15px;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.85rem;
  }

  .btn-large {
    padding: 15px 30px;
    font-size: 1rem;
  }
}

/* ==========================================================================
   Small Mobile Styles (< 480px)
   ========================================================================== */
@media (max-width: 479px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .carousel-item {
    height: 350px;
  }

  .carousel-caption h1 {
    font-size: 1.5rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .feature-icon {
    font-size: 3rem;
  }

  .section {
    padding: 30px 0;
  }

  .download-section {
    padding: 50px 0;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  .navbar,
  .footer,
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-indicators {
    display: none;
  }

  .section {
    page-break-inside: avoid;
  }
}

