/*
Theme Name: wyodrew
Theme URI: https://wyodrew.com
Author: Drew Reutlinger
Author URI: https://wyodrew.com
Description: Custom block theme for Drew's portfolio. Built from scratch using WordPress 6.9 Full Site Editing.
Version: 1.0
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: wyodrew
*/

/* Tech Card Block Style */
.is-style-tech-card {
    background-color: #222222 !important;
    color: #ffffff !important;
    border: 1px solid #222222 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    transition: background-color 0.3s ease, border-color 0.3s ease !important;
}

.is-style-tech-card:hover {
    background-color: #2a2a2a !important;
    border-color: #333333 !important;
}

.is-style-tech-card * {
    color: #ffffff !important;
}

.is-style-tech-card p {
    color: #05df72 !important;
}

/* Button Hover Effects - All Buttons */
.wp-block-button .wp-block-button__link,
.wp-block-button .wp-element-button,
div.wp-block-button a {
    transition: all 0.3s ease !important;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-element-button:hover,
div.wp-block-button a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4) !important;
}

/* Outline Button Specific - matches is-style-outline--2 etc */
div[class*="is-style-outline"] .wp-block-button__link,
div[class*="is-style-outline"] .wp-element-button,
.is-style-outline--2 a {
    transition: all 0.3s ease !important;
}

div[class*="is-style-outline"] .wp-block-button__link:hover,
div[class*="is-style-outline"] .wp-element-button:hover,
.is-style-outline--2 a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3) !important;
}

/* Contact Form 7 Styling */
.wpcf7 {
    margin-top: 2rem;
}

.wpcf7-form p {
    margin-bottom: 1.5rem;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #111111;
    border: 1px solid #333333;
    border-radius: 0;
    color: #ffffff;
    font-size: 1rem;
    font-family: ui-sans-serif, system-ui, sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: #22C55E;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    background-color: #22C55E;
    color: #000000;
    border: none;
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #15803D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}

/* Validation and Response Messages */
.wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #ef4444;
}

.wpcf7-response-output {
    border: 1px solid #333333;
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 0;
    font-size: 0.875rem;
}

.wpcf7-validation-errors {
    background-color: #111111;
    border-color: #ef4444;
    color: #ef4444;
}

.wpcf7-mail-sent-ok {
    background-color: #111111;
    border-color: #22C55E;
    color: #22C55E;
}

.wpcf7-spam-blocked {
    background-color: #111111;
    border-color: #f59e0b;
    color: #f59e0b;
}

/* Spinner */
.wpcf7-form .ajax-loader {
    filter: invert(1);
}

/* Placeholder text */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #9ca3af;
}

/* Logo Base Styles */
.site-logo {
  position: relative;
}

.site-logo svg {
  height: 40px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

:root {
  --logo-text: #f1f3f5;
  --logo-accent: #7cff6b;
}


.hero {
  background: radial-gradient(
    circle at top left,
    rgba(124, 255, 107, 0.08),
    transparent 60%
  );
}

.hero h1 {

}

.hero p {
  max-width: 60ch;
  opacity: 0.85;
}

.hero-cta a {
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.hero-cta a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--logo-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.hero-cta a:hover::after {
  transform: scaleX(1);
}

.hero + .wp-block-group::before {
  content: "";
  display: block;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: var(--wp--preset--spacing--70);
}

.hero-logo svg {
  height: 40px; /* matches header logo */
  width: auto;
  margin-bottom: var(--wp--preset--spacing--40);
  display: block;
}

/* Initial animation state */
.hero-logo .logo-svg text:not(.cursor) {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-logo .logo-svg text {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
 .hero-logo text {
    opacity: 1 !important;
  }
  .cursor {
    display: none !important;
  }
  
}

.hero-logo .cursor.blink {
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}





/* Header and Navigation Responsive Styles */
header.wp-block-group {
  transition: padding 0.3s ease;
  align-items: center;
}

/* Ensure header container has proper padding and alignment */
.alignfull > header.wp-block-group {
  padding-left: var(--wp--preset--spacing--40);
  padding-right: var(--wp--preset--spacing--40);
}

/* Navigation alignment - visual balance tweaks */
.wp-block-navigation {
  align-items: center;
}

.wp-block-navigation .wp-block-navigation__container {
  gap: var(--wp--preset--spacing--50);
  align-items: center;
}

.wp-block-navigation .wp-block-navigation-item__content {
  padding: 0.25rem 0;
}

/* Mobile Navigation Fixes */
@media (max-width: 782px) {
  /* Fix mobile header spacing */
  .alignfull {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .alignfull > header.wp-block-group {
    padding-left: 0;
    padding-right: 0;
    gap: 1rem;
  }

  /* Mobile logo sizing - smaller to fit better */
  .site-logo svg {
    height: 32px;
    width: auto;
  }

  /* Mobile navigation adjustments */
  .wp-block-navigation__responsive-container.is-menu-open {
    padding-top: var(--wp--preset--spacing--50);
    padding-bottom: var(--wp--preset--spacing--50);
  }

  .wp-block-navigation__responsive-container-content {
    padding-left: var(--wp--preset--spacing--40);
    padding-right: var(--wp--preset--spacing--40);
  }

  .wp-block-navigation .wp-block-navigation-item {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  /* Fix hamburger menu alignment */
  .wp-block-navigation__responsive-container-open {
    align-self: center;
  }

  /* Ensure content doesn't overflow */
  .wp-block-group,
  .wp-block-cover {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Fix button wrapping on mobile */
  .wp-block-buttons {
    flex-wrap: wrap;
  }

  .wp-block-button {
    width: 100%;
  }

  /* Mobile contact form adjustments */
  .wpcf7-form input[type="submit"] {
    width: 100%;
  }
}

/* Tablet adjustments */
@media (min-width: 783px) and (max-width: 1024px) {
  .site-logo svg {
    height: 36px;
  }

  .alignfull > header.wp-block-group {
    padding-left: var(--wp--preset--spacing--50);
    padding-right: var(--wp--preset--spacing--50);
  }
}

/* Scrolled state - smaller header with smooth transitions */
body.scrolled .alignfull {
  transition: padding 0.3s ease;
}

body.scrolled header.wp-block-group {
  padding-top: var(--wp--preset--spacing--30);
  padding-bottom: var(--wp--preset--spacing--30);
  transition: padding 0.3s ease;
}

body.scrolled .site-logo svg {
  height: 30px;
}

/* Mobile scrolled state */
@media (max-width: 782px) {
  body.scrolled .site-logo svg {
    height: 28px;
  }

  body.scrolled header.wp-block-group {
    padding-top: var(--wp--preset--spacing--40);
    padding-bottom: var(--wp--preset--spacing--40);
  }
}

/* Tablet scrolled state */
@media (min-width: 783px) and (max-width: 1024px) {
  body.scrolled .site-logo svg {
    height: 28px;
  }
}

