/*
Theme Name: Su Mon Thazin
Author: La Pyaye
Description: Minimalist academic theme with profile-centric design.
Version: 1.0
*/

:root {
  --color-primary: #000000;
  --color-bg: rgb(243 244 246);
  --color-text: #333333;
  --color-border: #e5e5e5;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Inter', sans-serif;
  --radius: 12px;
  --container: 1100px;
  --header-height: 70px;
  --footer-height: 200px;
  --color-hover: rgb(79 70 229);
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-hover);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Utilities */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.home main{
  min-height: calc(100vh - var(--footer-height));
  display: flex;
  align-items: center;
}


.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
}

.aligncenter figcaption{
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
}

details summary {
    cursor: pointer;
    outline: none;  
  }

details {
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 1em;
    margin-bottom: 20px;
}

.page details {
    background: #fff;
}

.wp-block-code {
  border-radius: 4px;
  padding: 20px;
}

.has-inline-color {
  font-family: 'Courier New', Courier, monospace;
  padding: 1px 3px;
  border-radius: 4px;
}

.wp-block-preformatted{
  margin: auto 0;
  display: grid;
  overflow-x: auto;
  word-break: break-all;
}

.wp-block-quote{
    margin: 1rem 0 1rem;
    padding: .625rem 1.25rem;
    border-left: .25rem solid var(--color-border);
}

.entry-content {
  word-wrap: break-word;
}


/* Header */
.site-header {
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform var(--transition);
}

body.header-hidden .site-header {
    transform: translateY(-100%);
} 

.page .site-header, .blog .site-header{
  background-color: #fff;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 0;
  outline: none;
}

/* Social Icon */
.front-nav-section .social-icons {
margin-bottom: 20px;;
}
.front-nav-section .social-icons a{
  color:#5d5d5d;
  font-size: 30px;
  margin-right: 15px;
}
.social-icons a{
  color:#5d5d5d;
  font-size: 20px;
}
.social-icons a:hover{
  color: var(--color-text);
  text-decoration: none;
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative
}

.desktop-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.desktop-nav ul li a{
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.desktop-nav ul li:hover a, .desktop-nav ul .current-menu-item a {
  color: var(--color-hover);
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
}

.search-form{
  position: absolute;
  width: 100%;
}

.search-field {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  outline: none;
}

/* Mobile Trigger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
}

/* Mobile Drawer & Backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 40px;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.mobile-drawer.is-active {
  right: 0;
}

.drawer-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer ul {
  list-style: none;
  padding: 0;
}
.mobile-drawer ul li {
  margin-bottom: 16px;
}
.mobile-drawer ul li a {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Responsive Header Logic */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

@media (min-width: 769px) {
  .mobile-drawer, .drawer-backdrop, .mobile-toggle {
    display: none !important;
  }
}

/* Front Page */
.front-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 80px 0 20px;
  align-items: center;
}

.front-nav-section {
  padding: 20px 0 80px;
}

@media (min-width: 768px) {
  .front-profile {
    grid-template-columns: 300px 1fr;
  }
}

.profile-avatar img {
  border-radius: 100%;
  border:5px solid #fff;
  width: 17rem;
  height: 17rem;
   --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.profile-text h1 {
  margin-top: 0;
  font-size: 2.5rem;
}

.profile-text .bio {
  font-size: 1.125rem;
  margin-bottom: 30px;
}

.front-nav-grid ul {
  list-style: none;
  padding: 0;
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); */
  gap: 16px;
  display: flex;
  flex-wrap: wrap;
}

.front-nav-grid a {
  display: block;
  padding: 13px 20px;
  background: #fff;
  border-radius: var(--radius);
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1rem;
  letter-spacing: 0.15em;
  transition: background 0.2s;
      --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
        --tw-border-opacity: 1;
    border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
    border-width: 1px;
}

.front-nav-grid a:hover {
  background: #000000;
  text-decoration: none;
  color: #fff;
}

/* Archive / Search / Single */
.single-post .site-main{
  background-color: #fff;
}

.content-area {
  padding: 60px 20px;
  max-width: 820px;
}

.post-entry {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.post-entry h2 {
  margin: 0 0 10px 0;
}

.post-entry:hover h2 a{
  color: var(--color-hover);
}

.post-meta {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 12px;
}

.post-link, .post-meta  {
  text-transform: uppercase;
  font-weight:600;
  letter-spacing: 0.1rem;
  display: inline-block;
}

.post-link {
  font-size: 0.8rem;
  border-bottom: 2px solid var(--color-text);
}

.post-link:hover {
  border-color: var(--color-hover);
}

.post-excerpt {
  font-size: 1rem;
}

.entry-tags {
    max-width: 800px;
    margin: 2rem auto;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.entry-tags a {
    background: var(--color-bg);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}


/* Comments */
.comments-area {
  max-width: 800px;
  margin: 3rem auto;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-body {
  padding: 1.5rem;
  border: 1px solid #eee;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.comment-form textarea, .comment-form input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  margin-bottom: 1rem;
}

.form-submit .submit {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}
.comment-form-cookies-consent input{
  width: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 60px 0;
  margin-top: auto;
  background: #fafafa;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  margin-top: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}