/* google-ui.css
   Add this AFTER style.css and mediaqueries.css:
   <link rel="stylesheet" href="<?= e(url_path('google-ui.css')) ?>" />
*/

/* ===== Theme tokens ===== */
:root{
  --g-bg: #f6f8fc;
  --g-surface: #ffffff;
  --g-surface-2: #f1f3f4;

  --g-text: #1f1f1f;
  --g-sub: #5f6368;

  --g-border: #e0e3e7;

  --g-blue: #1a73e8;
  --g-blue-2: #185abc;

  --g-shadow: 0 1px 2px rgba(60,64,67,.18), 0 1px 3px 1px rgba(60,64,67,.12);
  --g-shadow-hover: 0 6px 16px rgba(60,64,67,.22), 0 2px 6px 2px rgba(60,64,67,.12);

  --g-radius: 16px;
  --g-radius-lg: 22px;
}

/* ===== Page base ===== */
html{ scroll-behavior: smooth; }
body{
  background: var(--g-bg);
  color: var(--g-text);
}

/* Better default link behavior */
a{
  text-decoration: none;
  color: inherit;
}

/* ===== Hide old navs (you use the new app bar) ===== */
#desktop-nav,
#hamburger-nav{
  display: none !important;
}

/* ===== Section layout ===== */
section{
  height: auto;
  min-height: auto;
  margin: 0 auto;
  max-width: 1120px;
  padding: 56px 16px;
  box-sizing: border-box;
}

.title{
  font-size: 40px;
  letter-spacing: -0.6px;
  color: var(--g-text);
  margin: 8px 0 12px;
  text-align: left;
}

.section__text__p1{
  color: var(--g-sub);
  font-weight: 500;
  text-align: left;
}

p{ color: var(--g-sub); }

/* ===== App bar ===== */
.g-appbar{
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid var(--g-border);
  backdrop-filter: saturate(180%) blur(12px);
}

.g-appbar-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.g-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--g-text);
  text-decoration: none;
}

.g-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.g-dot.b{ background:#4285f4; }
.g-dot.r{ background:#ea4335; }
.g-dot.y{ background:#fbbc05; }
.g-dot.g{ background:#34a853; }

.g-nav{
  display:flex;
  gap: 6px;
  align-items:center;
  flex-wrap: wrap;
}

.g-nav a{
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--g-sub);
  transition: background 200ms ease, color 200ms ease;
}

.g-nav a:hover{
  background: rgba(26,115,232,.10);
  color: var(--g-blue);
}

.g-cta{
  display:inline-flex;
  align-items:center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--g-blue);
  color: #fff !important;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  transition: background 200ms ease, transform 200ms ease;
  white-space: nowrap;
}

.g-cta:hover{
  background: var(--g-blue-2);
  transform: translateY(-1px);
}

/* ===== Profile hero ===== */
#profile{
  max-width: 1200px;
  padding-top: 42px;
  padding-bottom: 32px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: center;
}

#profile .section__pic-container{
  width: 180px;
  height: 180px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  box-shadow: var(--g-shadow);
  display: grid;
  place-items: center;
  margin: 0;
}

#profile .section__pic-container img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#profile .section__text{
  text-align: left;
  max-width: 760px;
}

#profile .section__text__p2{
  color: var(--g-sub);
  font-size: 18px;
  margin: 6px 0 14px;
  font-weight: 500;
}

#profile .btn-container{
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Buttons (reuse your .btn classes but style them Google-ish) ===== */
.btn{
  border-radius: 999px;
  padding: 12px 16px;
  width: auto;
  min-width: 140px;
  font-weight: 600;
  border: 1px solid var(--g-border);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.btn-color-1{
  background: var(--g-blue);
  border-color: var(--g-blue);
  color: #fff;
}

.btn-color-1:hover{
  background: var(--g-blue-2);
  border-color: var(--g-blue-2);
  transform: translateY(-1px);
}

.btn-color-2{
  background: #fff;
  color: var(--g-blue);
  border-color: rgba(26,115,232,.35);
}

.btn-color-2:hover{
  background: rgba(26,115,232,.08);
  border-color: rgba(26,115,232,.55);
  transform: translateY(-1px);
}

/* Social row alignment */
#socials-container{
  justify-content: flex-start;
  margin-top: 12px;
  gap: 10px;
}

/* Scholar badge inherits, but nudge it to match */
.scholar-badge{
  box-shadow: var(--g-shadow);
  border-radius: 999px;
  padding: 10px 12px;
}

/* ===== Card surface alignment for existing components ===== */
.details-container,
.publication-item,
.activity-card,
.item-card,
.contact-info-upper-container{
  background: var(--g-surface);
  border: 1px solid var(--g-border) !important;
  box-shadow: var(--g-shadow);
}

.details-container{
  border-radius: var(--g-radius) !important;
  text-align: left;
}

.publication-item,
.item-card{
  border-radius: var(--g-radius) !important;
}

.activity-card{
  border-radius: var(--g-radius-lg) !important;
}

.publication-item:hover,
.activity-card:hover,
.item-card:hover{
  box-shadow: var(--g-shadow-hover);
  transform: translateY(-2px);
}

.publication-title,
.activity-title,
.item-title{
  color: var(--g-text);
}

/* ===== Chips (year, badges, cites) ===== */
.publication-year,
.badge,
.pub-cites{
  border-radius: 999px !important;
  background: rgba(26,115,232,.08) !important;
  border: 1px solid rgba(26,115,232,.18) !important;
  color: var(--g-blue) !important;
  font-weight: 600;
}

/* ===== Card action links inside publications/projects/news ===== */
.publication-links a,
#projects .publication-links a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  background: rgba(26,115,232,.10) !important;
  color: var(--g-blue) !important;
  border: 1px solid rgba(26,115,232,.25) !important;
  font-weight: 600;
  padding: 10px 12px !important;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.publication-links a:hover,
#projects .publication-links a:hover{
  background: rgba(26,115,232,.18) !important;
  color: var(--g-blue-2) !important;
  transform: translateY(-1px);
}

/* ===== Activities slider buttons ===== */
.activity-card .slider-btn{
  background: rgba(32,33,36,.55);
}

.activity-card .slider-btn:hover{
  background: rgba(32,33,36,.72);
}

/* ===== About image container to match surface ===== */
#about .section__pic-container{
  border: 1px solid var(--g-border);
  box-shadow: var(--g-shadow);
  background: var(--g-surface);
}

/* ===== Contact ===== */
#contact{
  padding-top: 44px;
}

.contact-info-upper-container{
  border-radius: var(--g-radius-lg);
  background: var(--g-surface);
}

/* ===== Footer ===== */
footer{
  height: auto;
  margin: 0;
  padding: 16px;
  background: transparent;
}

footer nav{ display:none; }

footer p{
  color: var(--g-sub);
  font-size: 13px;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 1024px){
  section{ padding: 44px 16px; }
  .title{ font-size: 34px; }
}

@media (max-width: 880px){
  .g-nav{ display:none; }

  #profile{
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
  }

  #profile .section__text{ text-align: center; }
  #profile .section__pic-container{ margin: 0 auto; }

  #profile .btn-container{ justify-content: center; }
  #socials-container{ justify-content: center; }
  .title, .section__text__p1{ text-align: center; }
}

@media (max-width: 480px){
  .title{ font-size: 28px; }
  #profile .section__pic-container{ width: 160px; height: 160px; }
  .btn{ min-width: 128px; padding: 11px 14px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto; }
}
/* ===== Intro + About polish ===== */

/* Reduce big blank space around hero */
#profile{
  padding-top: 28px !important;
  padding-bottom: 20px !important;
}

/* Tighten hero typography */
#profile .section__text__p1{
  font-size: 13px;
  letter-spacing: .2px;
  text-transform: none;
  margin: 0 0 6px;
  color: var(--g-sub);
}

#profile .title{
  margin: 0 0 6px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.9px;
}

#profile .section__text__p2{
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--g-sub);
  font-weight: 500;
}

/* Add a short intro paragraph if you use one */
.hero-intro{
  margin: 0 0 16px;
  color: var(--g-sub);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 64ch;
}

/* Make the hero actions feel like Google */
#profile .btn-container{
  gap: 10px;
  margin-top: 10px;
}

/* About: reduce oversized section gap */
#about{
  padding-top: 36px !important;
  padding-bottom: 28px !important;
}

#about .title{
  margin-top: 4px;
  margin-bottom: 14px;
}

/* About grid spacing */
#about .section-container{
  gap: 22px !important;
}

/* About cards tighter and consistent */
#about .details-container{
  padding: 16px !important;
  border-radius: var(--g-radius) !important;
  text-align: left;
}

#about .details-container h3{
  margin: 6px 0 4px;
  font-size: 15px;
  color: var(--g-text);
}

#about .details-container p{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--g-sub);
}

/* About paragraph spacing */
#about .text-container p{
  margin: 10px 0 0 !important;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--g-sub);
}

/* Make the About image look like a “card” */
#about .section__pic-container{
  border-radius: var(--g-radius-lg) !important;
}

/* Mobile adjustments */
@media (max-width: 880px){
  #profile{ padding-top: 18px !important; }
  #profile .title{ font-size: 34px; }
  .hero-intro{ margin-left: auto; margin-right: auto; }
  #about{ padding-top: 26px !important; }
}

/* --- Mobile Menu Styles --- */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background-color: var(--g-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Responsive Overrides */
@media (max-width: 900px) {
  /* Show Hamburger */
  .hamburger-menu {
    display: flex;
  }

  /* Style the mobile menu dropdown */
  .g-nav {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid var(--g-border);
    padding: 1rem 0;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .g-nav.open {
    display: flex; /* Show when 'open' class is added */
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    gap: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 15px;
    width: 100%;
  }
}
/* Mobile nav visibility */
#hamburger-nav { display: none; }
#desktop-nav { display: flex; }

@media (max-width: 900px) {
  #desktop-nav { display: none; }
  #hamburger-nav { display: flex; }
}

/* Hamburger menu layout */
#hamburger-nav {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: #fff;
  border-bottom: 1px solid #e0e3e7;
  padding: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.hamburger-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.hamburger-icon {
  width: 34px;
  height: 24px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger-icon span {
  height: 3px;
  width: 100%;
  background: #1f1f1f;
  border-radius: 999px;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* Slide-out links */
.menu-links {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(85vw, 320px);
  background: #fff;
  border: 1px solid #e0e3e7;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(60,64,67,.15);
  padding: 10px;
  display: none;
}

.menu-links li {
  list-style: none;
}

.menu-links a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #1f1f1f;
  font-weight: 600;
}

.menu-links a:hover {
  background: #f1f3f4;
}

/* Open state */
.menu-links.open { display: block; }

/* Icon animation */
.hamburger-icon.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}
.hamburger-icon.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}
