/*
Theme Name: nl-portfolio-theme
Theme URI: 
Author: Nicole Logan
Author URI: nicolelogan.dev 
Description: A custom WordPress theme for Nicole Logan's portfolio.
Version: 1.0
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 5.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nl-portfolio-theme
Tags: 
*/

/* Universal styling across all pages */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(
    132deg,
    rgba(122, 140, 221, 0.8),
    rgba(222, 174, 212, 0.8),
    rgba(255, 153, 70, 0.8)
  );
  background-size: 200% 200%;
  animation: BackgroundGradient 30s ease infinite;
}

@keyframes BackgroundGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Global column gap for Gutenberg columns */
.wp-block-columns {
  gap: 2.5rem;
  align-items: flex-start;
}

/* === Accessibility Improvements === */

/* Focus styles for interactive elements */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #36416a;
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body {
    animation: none !important;
  }
}

/* Navigation bar */

.custom-nav {
  margin: 0 1.25rem;
}

.custom-nav a:hover,
.custom-nav a:focus {
  text-decoration: underline;
  text-decoration-color: rgba(54, 65, 106, 0.35);
  text-decoration-style: wavy;
  text-decoration-thickness: 0.1rem;
}

.custom-nav #weather-widget {
  float: inline-end;
}

#weather-widget .weather-icon {
  width: 3rem;
  height: 3rem;
  margin-left: 0.3em;
  vertical-align: middle;
}

/* Footer Styling for Desktop & Mobile */

footer {
  margin: 0;
}

footer .is-style-default {
  margin: 0 1.25rem;
  opacity: 50%;
}

footer .copyright-privacy,
.headers {
  opacity: 80%;
}

footer a {
  text-decoration: none;
}

footer a:hover,
footer a:focus {
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: rgb(222, 174, 212, 0.8);
}

@media (max-width: 48rem) {
  footer {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
  }

  div.wp-block-group .connect-stack,
  div.wp-block-group .contact-stack,
  ul.wp-block-social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
  }

  ul.wp-block-social-link li {
    margin: 0 auto;
    padding: 0.5rem 0;
  }

  footer .copyright-privacy {
    justify-content: center;
    text-align: center;
    align-content: center;
    padding-top: 1rem;
  }
}

/* Mobile Navigation */
/* hide on all viewports by default */
#mobile-nav {
  display: none;
}

.mobile-top-nav {
  display: none;
}

#weather-widget-mobile {
  display: none;
}

/* show on mobile only */
@media (max-width: 28.125rem) {
  #mobile-nav {
    display: flex;
    flex-direction: row;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 96%;
    z-index: 1000;
    margin-left: 0.5rem;
    margin-bottom: 0.75rem;
    opacity: 80%;
  }

  /* Hiding top nav on mobile */
  .sticky-nav-bar {
    display: none;
  }

  .mobile-top-nav {
    display: block;
  }

  #weather-widget-mobile {
    display: block;
  }

  .mobile-nav-icon #weather-widget {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  #weather-widget-mobile .weather-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@media (min-width: 28.1875rem) {
  #mobile-nav {
    display: none;
  }
  .sticky-nav-bar {
    display: block;
  }
}
