/*
Theme Name: TGS Theme
Theme URI: https://thaiglaucoma.org
Author: Thai Glaucoma Society
Author URI: https://thaiglaucoma.org
Description: A modern WordPress block theme for the Thai Glaucoma Society. Supports style variations, custom templates, and page-level overrides.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tgs-theme
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, editor-style, wide-blocks, block-styles
*/


body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global Transitions */
a, button, .wp-block-button__link, .wp-block-navigation-item__label {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Card Hover Effects */
.wp-block-column, 
.wp-block-post {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-column:hover,
.wp-block-post:hover {
    transform: translateY(-8px);
}

/* Hero Polish - Subtle Gradient Overlay */
.wp-block-cover .wp-block-cover__background {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%) !important;
}

/* ─── Premium Language Switcher ────────────────────────────────────────────── */
.tgs-polylang-switcher ul,
.tgs-language-placeholder {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: flex !important;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.05) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tgs-polylang-switcher li,
.tgs-language-placeholder span {
  display: flex;
}

.tgs-polylang-switcher li a,
.tgs-language-placeholder span:not(.separator) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: #64748b !important; /* tgs-muted */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-transform: uppercase;
}

.tgs-polylang-switcher li a:hover,
.tgs-language-placeholder span:not(.separator):hover {
  color: #0ea5e9 !important; /* tgs-primary */
  background: rgba(14, 165, 233, 0.05);
}

.tgs-polylang-switcher li.current-lang a,
.tgs-language-placeholder span.active {
  color: #ffffff !important;
  background: #0ea5e9 !important; /* tgs-primary */
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.tgs-language-placeholder span.separator {
  color: rgba(15, 23, 42, 0.1);
  font-weight: 300;
  padding: 0 2px;
}

/* Navigation Underline Animation */
.wp-block-navigation-item__label {
    position: relative;
    padding-bottom: 2px;
}

.wp-block-navigation-item__label::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--wp--preset--color--tgs-primary-light);
    transition: width 0.3s ease;
}

.wp-block-navigation-item:hover .wp-block-navigation-item__label::after {
    width: 100%;
}

/* Glassmorphism Preset */
.has-glass-background {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
