/*
Theme Name: Mit Custom Theme
Theme URI: https://eksempel.dk
Author: Dit Navn
Author URI: https://ditwebsted.dk
Description: Et simpelt parent theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mit-tema
*/

/* ============================================ */
/* CSS Variables - Colors */
/* ============================================ */

:root {
  /* Primary Colors */
  --color-primary: #3b82f6;
  --color-primary-dark: #2563eb;
  --color-primary-light: #60a5fa;
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  
  /* Background Colors */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f9fafb;
  --color-bg-dark: #111827;
  
  /* Text Colors */
  --color-text-primary: #111827;
  --color-text-secondary: #6b7280;
  --color-text-light: #9ca3af;
  --color-text-inverse: #ffffff;
  
  /* Border Colors */
  --color-border-light: #e5e7eb;
  --color-border-medium: #d1d5db;
  --color-border-dark: #9ca3af;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Font Families */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Grid Layout */
  --grid-columns: 3;
  --grid-gap: var(--spacing-xl);

  /* Hamburger-Menu */
  --MenuIconSize: 45px;
  --MenuIconBarHeight: calc(var(--MenuIconSize) * 0.15);
}

/* ============================================ */
/* Global Styles */
/* ============================================ */

* {
  box-sizing: border-box;
}
html {   scroll-padding-top: 200px; /* height of your header */ }
 
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  margin: 0;
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  line-height: 1.6;
  padding: 0;
}

.logged-in {
  min-height: calc(100vh - 32px);
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  align-items: center;
  display: flex;
  
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}
/* ============================================ */
/* Header Styles */
/* ============================================ */

header,
footer {
  font-size: 18px;
  color: #fff;
  padding: 1rem;
}

header h1 {
  margin: 0;
}

header a {
  color: inherit;
  font-size: 18px;
  text-decoration: none;
}

.site-header {
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--spacing-lg) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-xl);
}

/* Site Branding */
.site-branding {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.site-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  font-family: var(--font-heading);
}

.site-title a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--transition-base);

}

.site-title a:hover {
  color: var(--color-primary);
  
}

.site-description {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 400;
}

/* Custom Logo Support */
.custom-logo-link {
  display: inline-block;
  line-height: 0;
  transition: opacity var(--transition-base);
}

.custom-logo-link:hover {
  opacity: 0.8;
}

.custom-logo {
  max-height: 60px;
  width: auto;
  display: block;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: var(--spacing-sm) 0;
  transition: color var(--transition-base);
  display: inline-block;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: var(--color-primary);
}

/* Dropdown Menu Support */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) 0;
  min-width: 200px;
  list-style: none;
  margin: var(--spacing-sm) 0 0 0;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
}

.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li {
  display: block;
}

.nav-menu .sub-menu a {
  padding: 0.75rem var(--spacing-lg);
  display: block;
  white-space: nowrap;
}

.nav-menu .sub-menu a:hover {
  background: var(--color-bg-secondary);
}

/* ============================================ */
/* Hamburger Menu Button */
/* ============================================ */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--spacing-sm);
  cursor: pointer;
  color: var(--color-text-primary);
  transition: color var(--transition-base);
  z-index: 1001;
}

.menu-toggle:hover {
  color: var(--color-primary);
}

.menu-toggle:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: var(--MenuIconSize);
  height: var(--MenuIconSize);
  position: relative;
  z-index:10;
}

.hamburger-line {
  /* display: block;
  width: 100%;
  height: 3px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all 0.5s ease;
  transform-origin: center; */
  width: var(--MenuIconSize);
  height: var(--MenuIconBarHeight);

  background-color: var(--color-text-primary);
  border-radius: 80px;
  transition-duration: .5s;
}

/* Hamburger Animation when Active */
.menu-toggle.is-active .hamburger-line:nth-child(1) {
  /* transform: translateY(8.5px) rotate(45deg); */
  opacity: 0;
}

.menu-toggle.is-active .hamburger-line:nth-child(2) {
  /* opacity: 0;
  transform: translateX(-20px); */
  transform-origin: center left;
  transform: translate(15%,-238%) rotate(45deg);
}

.menu-toggle.is-active .hamburger-line:nth-child(3) {
  /* transform: translateY(-8.5px) rotate(-45deg); */
  transform-origin: center right;
  transform: translate(-15%,-460%) rotate(-45deg);
}

/* ============================================ */
/* Main Content */
/* ============================================ */

main {
  padding: 1rem;
}

.item-card {
  list-style: none;
}

/* ============================================ */
/* Project Card Styles */
/* ============================================ */

/* Projects Grid Container */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gap);
  margin: var(--spacing-xl) 0;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Thumbnail Section */
.project-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
} 

.project-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}

.project-thumbnail figure {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--color-border-medium);
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.project-thumbnail:hover img {
  transform: scale(1.05);
}

/* Project Info Section */
.project-info {
  padding: 24px;
}

/* Project Title */
.project-title {
  margin: 0 0 16px 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.project-title a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-title a:hover {
  color: #007bff;
}

/* ============================================ */
/* 404 Page */
/* ============================================ */

.wrapper-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  min-height: 100%;
}

.wrapper-404 ~ .site-footer{
  margin-top:0;
}

/* ============================================ */
/* Footer Styles */
/* ============================================ */

footer h1 {
  margin: 0;
}

footer a {
  color: inherit;
  font-size: 18px;
  text-decoration: none;
}

.site-footer {
  background: var(--color-bg-primary);
  color: var(--color-text-inverse);
  padding: var(--spacing-2xl) 0;
  margin-top: var(--spacing-2xl);
  border-top: 1px solid var(--color-gray-800);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.footer-info {
  flex: 1;
}

.footer-info p {
  margin: 0;
  color: var(--color-gray-400);
  font-size: 0.875rem;
}

/* Footer Navigation */
.footer-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.footer-menu {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-menu a {
  color: var(--color-gray-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-base);
}

.footer-menu a:hover {
  color: var(--color-primary-light);
}

/* Footer Social Links */
.footer-social {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.social-link {
  color: var(--color-gray-400);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-base);
  padding: var(--spacing-sm);
}

.social-link:hover {
  color: var(--color-primary-light);
}

/* ============================================ */
/* Responsive Styles */
/* ============================================ */

/* Tablet - iPad */
@media (max-width: 1024px) {
  :root {
    --grid-columns: 2;
    --grid-gap: var(--spacing-lg);
  }
  
  .container {
    padding: 0 var(--spacing-lg);
  }
}

/* Mobile & Tablet */
@media (max-width: 768px) {
  :root {
    --grid-columns: 2;
    --grid-gap: var(--spacing-lg);
  }

  .site-header {
    padding: var(--spacing-md) 0;
    transition: top 0.3s;
    position: sticky;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .header-content {
    flex-wrap: wrap;
    position: relative;
  }

  .menu-toggle {
    display: flex;
    order: 3;
  }

  .site-branding {
    flex: 1;
  }

  .main-navigation {
    flex-basis: 100%;
    order: 4;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .main-navigation.is-active {
    display: block;
    max-height: 500px;
    opacity: 1;
    padding: var(--spacing-md) 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 0 var(--spacing-md);
  }

  .nav-menu li {
    border-bottom: 1px solid var(--color-border-light);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    display: block;
    padding: var(--spacing-md) 0;
  }

  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding-left: var(--spacing-md);
    margin: 0;
    background: var(--color-bg-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-menu li:hover > .sub-menu,
  .nav-menu li:focus-within > .sub-menu {
    max-height: 500px;
  }

  .nav-menu .sub-menu a {
    padding: 0.75rem var(--spacing-md);
  }

  /* Project Card Responsive */
  .project-info {
    padding: 20px;
  }
  
  .project-title {
    font-size: 20px;
  }

  /* Footer Responsive */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg);
  }

  .footer-navigation {
    justify-content: center;
  }

  .footer-menu {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Mobile Only */
@media (max-width: 480px) {
  :root {
    --grid-columns: 1;
    --grid-gap: var(--spacing-md);
  }

  .site-title {
    font-size: 1.5rem;
  }

  .site-description {
    font-size: 0.8125rem;
  }

  .project-info {
    padding: 16px;
  }
  
  .project-title {
    font-size: 18px;
  }

  .footer-menu {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }

  .footer-social {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}