/*
Theme Name: Miko
Theme URI: https://wordpress.com/themes/miko/
Description: Miko is a personal theme designed to showcase your resume and writing.
Version: 1.2
Author: Automattic
Author URI: https://automattic.com/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: miko
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1.0px !important;
	text-underline-offset: 2px;
}

/*
 * Form field styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
::placeholder {
	color: var(--wp--preset--color--contrast);
	opacity: 1; /* Firefox */
}

/*
 * Button Block
 * Control the hover stylings of outline block style.
 * Unnecessary once block styles are configurable via theme.json
 * https://github.com/WordPress/gutenberg/issues/42794
 */
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

/*
 * Pull quote Block
 * Reset the browser default margins for blockquote element
 * https://github.com/WordPress/gutenberg/issues/44129
 */
.wp-block-pullquote blockquote,
.wp-block-pullquote p {
	margin: 0;
}

/*
 * Navigation Block
 * Reset the padding from List block
 * https://github.com/WordPress/gutenberg/issues/50486
 */
.wp-block-navigation ul {
	padding: unset;
}

/* ===== Navigation styling improvements ===== */
.wp-block-navigation {
  display: flex;
  flex-direction: column; /* vertical menu */
  gap: 1rem; /* spacing between items */
}

.wp-block-navigation__container {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-block-navigation-item__content {
  display: block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: #ffffff; /* default text color */
}

/* Hover / focus */
.wp-block-navigation-item__content:hover,
.wp-block-navigation-item__content:focus {
  background-color: rgba(255, 255, 255, 0.1); /* subtle overlay on hover */
  color: #ffd700; /* accent color */
}

/* Current menu item */
.wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffd700; /* accent color for active page */
}



/* Optional: smaller font on mobile */
@media (max-width: 480px) {
  .wp-block-navigation-item__content {
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
  }
}


/* ===== Mobile overlay using existing WordPress block classes ===== */
@media (max-width: 768px) {
  .wp-block-cover__image-background{
	object-fit:inherit !important;
  }
  /* Columns wrapper */
  .wp-block-columns {
    position: relative;
  }

  /* Image column (second column) */
  .wp-block-columns > .wp-block-column:nth-child(2) {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .wp-block-columns .wp-block-cover {
    min-height: 70vh;
  }

  /* Menu + content column (first column) */
  .wp-block-columns > .wp-block-column:nth-child(1) {
    position: relative;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.8); /* 80% opacity */
    padding: 2rem 1.5rem;
  }

  /* Improve menu readability */
  .wp-block-navigation a {
    color: #000;
  }

}
