/*
Theme Name: Rioucy
Theme URI: 
Author: Lynpx
Author URI: 
Description: Project theme
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.0
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rioucy
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/* Custom Language Switcher */

.lang-switcher-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  background-color: transparent;
  color: #ffffff /* Update this to match the navigation menu color */
  border: none;
}

.custom-lang-switcher {
  position: relative;
  display: inline-block;
  font-family: inherit; /* Uses the theme's font */
}

.lang-switcher-toggle .globe-icon {
  margin-right: 0.5rem;
}

.lang-switcher-toggle .arrow-icon {
  margin-left: 0.5rem;
  transition: transform 0.6s ease;
}

.custom-lang-switcher.open .arrow-icon {
  transform: rotate(180deg);
}

/* Language Switcher Dropdown */
.lang-switcher-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #F2F4F9;
  min-width: 100px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 0;
  margin: 0;
  list-style-type: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.custom-lang-switcher.open .lang-switcher-dropdown {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.lang-switcher-dropdown li {
  padding: 0.3rem;
}

.lang-switcher-dropdown li:hover {
  background-color: #3F9FFF;
}

.lang-switcher-dropdown li a {
  color: #0059B3; /* Update this to match the navigation menu color */
  text-decoration: none;
  font-size: 1rem;
}

.lang-switcher-dropdown li a:hover {
  color: #ffffff; /* Update this to match the hover color of the navigation menu */
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .lang-switcher-toggle {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .lang-switcher-dropdown {
    width: 100%;
    top: auto;
    left: 0;
    box-shadow: none;
  }
}

/* Logo hover effect */
.wp-block-site-logo:hover {
  transition: filter 1.5s ease-in-out;
  filter: brightness(1.2);
}

/* Menu items hover effect */
.wp-block-navigation-item__content:hover {
  color: #0059B3!important;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

/* Base content container with improved readability metrics */
.content-container {
  max-width: min(1200px, 95%);  /* Using min() for better fluid scaling */
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem); /* Fluid padding */
  width: 100%;
  box-sizing: border-box;
  
  /* Optimal line-length for reading */
  --optimal-line-length: 70ch;
  --content-min-margin: 2rem;
}

/* Content width optimization for different screen sizes */
@media (max-width: 1400px) {
  .content-container {
    max-width: min(1000px, 95%);
  }
}

@media (max-width: 1024px) {
  .content-container {
    max-width: min(800px, 95%);
  }
}

/* Tablet optimization */
@media (max-width: 768px) {
  .content-container {
    max-width: min(620px, 95%);
    padding: 0 clamp(1rem, 4vw, 1.5rem);
  }
}

/* Mobile optimization */
@media (max-width: 480px) {
  .content-container {
    max-width: 100%;
    padding: 0 1rem;
  }
}

/* Typography optimization for different screens */
.content-container {
  font-size: clamp(1rem, 1rem + 0.5vw, 1.125rem);
  line-height: clamp(1.5, 1.5 + 0.5vw, 1.7);
}

/* Reading optimization for article content */
.content-container article {
  max-width: min(var(--optimal-line-length), 100%);
  margin: 0 auto;
}