/*
Theme Name: Eirini Portfolio
Theme URI: https://eirini.fusedev.gr/
Author: Fuse / Eirini
Author URI: https://eirini.fusedev.gr/
Description: A minimalist graphic designer portfolio theme with fixed left sidebar navigation, pure image masonry grid, and electric cobalt accents.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: eirini-portfolio
*/

@import url('https://fonts.googleapis.com/css2?family=Geologica:wght,CRSV@100..900,0&display=swap');

:root {
  --font-main: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-body: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-subtle: #f8f8fa;
  --text-main: #111111;
  --text-muted: #71717a;
  --text-light: #a1a1aa;
  --cobalt: rgb(0, 12, 255);
  --cobalt-soft: rgba(0, 12, 255, 0.08);
  --cobalt-border: rgba(0, 12, 255, 0.25);
  --border: #ececf0;
  --border-light: #f4f4f7;
  --sidebar-width: 320px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--cobalt);
  color: #ffffff;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Main Two-Column Layout */
.site-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Left Sidebar */
.site-sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: sticky;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 2.25rem 2.5rem;
  border-right: 1px solid var(--border);
  background: var(--bg-sidebar);
  flex-shrink: 0;
  z-index: 90;
}

/* Sidebar Brand */
.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cobalt);
  display: inline-block;
  flex-shrink: 0;
}

.brand-subtitle {
  font-size: 0.775rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Sidebar Navigation */
.sidebar-nav {
  margin-top: 0.5rem;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sidebar-menu li {
  position: relative;
}

.sidebar-menu li a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
  line-height: 1.35;
  transition: var(--transition);
}

.sidebar-menu li a:hover {
  color: var(--cobalt);
  transform: translateX(3px);
}

.sidebar-menu li.current-menu-item > a,
.sidebar-menu li.active > a {
  color: var(--text-main);
  font-weight: 700;
}

.sidebar-menu li.current-menu-item > a::before,
.sidebar-menu li.active > a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
  display: inline-block;
  flex-shrink: 0;
}

/* Styling specifically for the Contact link in the sidebar menu */
.sidebar-menu li a[href*="contact"] {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  font-weight: 600;
  color: var(--text-main);
}

.sidebar-menu li a[href*="contact"]:hover {
  color: var(--cobalt);
}

/* Sidebar Footer */
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.sidebar-status {
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
  display: inline-block;
}

.sidebar-social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.sidebar-social-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.sidebar-social-links a:hover {
  color: var(--cobalt);
}

.sidebar-copy {
  font-size: 0.725rem;
  color: var(--text-light);
}

/* Mobile Header */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition);
}

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Main Content Area */
.site-main-content {
  flex: 1;
  min-width: 0;
  padding: 3rem clamp(1.5rem, 3.5vw, 4rem);
}

/* ==========================================================================
   Homepage: PURE Masonry Grid of Images ONLY
   ========================================================================== */
.portfolio-pure-masonry {
  column-count: 3;
  column-gap: 24px;
  width: 100%;
}

@media (max-width: 1400px) {
  .portfolio-pure-masonry {
    column-count: 2;
    column-gap: 20px;
  }
}

@media (max-width: 720px) {
  .portfolio-pure-masonry {
    column-count: 1;
    column-gap: 0;
  }
}

.masonry-card {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 24px;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  position: relative;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.masonry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 12, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.masonry-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.masonry-card:hover img {
  transform: scale(1.025);
  opacity: 0.96;
}

/* Empty State */
.portfolio-empty {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* ==========================================================================
   Single Portfolio Page
   ========================================================================== */
.single-project-container {
  max-width: 900px;
  margin: 0 auto;
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  transition: var(--transition);
}

.project-back-link:hover {
  color: var(--cobalt);
  border-color: var(--cobalt-border);
  transform: translateX(-3px);
}

.project-header-block {
  margin-bottom: 2.5rem;
}

.project-page-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.project-page-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Meta Data Row */
.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.25rem 0;
  margin: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-col-label {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.meta-col-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.meta-col-val a:hover {
  color: var(--cobalt);
}

/* Project Hero Image */
.project-hero-frame {
  margin: 2rem 0 3rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.project-hero-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Project Text / Prose */
.project-content-prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #26262a;
}

.project-content-prose p {
  margin-bottom: 1.6rem;
}

.project-content-prose h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  color: var(--text-main);
}

.project-content-prose blockquote {
  border-left: 3px solid var(--cobalt);
  padding: 1rem 0 1rem 1.75rem;
  margin: 2.25rem 0;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text-main);
  background: var(--cobalt-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Navigation between projects */
.project-adjacent-nav {
  margin-top: 4.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.adj-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 45%;
}

.adj-nav-item.next {
  text-align: right;
  margin-left: auto;
}

.adj-nav-label {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.adj-nav-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.adj-nav-item:hover .adj-nav-title {
  color: var(--cobalt);
}

/* ==========================================================================
   Contact Page & Contact Form 7 Styling
   ========================================================================== */
.contact-page-container {
  max-width: 680px;
}

.contact-page-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.contact-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.75rem;
  line-height: 1.6;
}

/* CF7 Modern Clean Form */
.wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.wpcf7 label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  font-family: var(--font-main);
  font-size: 0.95rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-main);
  transition: var(--transition);
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(0, 12, 255, 0.12);
}

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

.wpcf7 input[type="submit"] {
  font-family: var(--font-main);
  align-self: flex-start;
  padding: 0.9rem 2.25rem;
  background: var(--text-main);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
}

.wpcf7 input[type="submit"]:hover {
  background: var(--cobalt);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 12, 255, 0.28);
}

.wpcf7-response-output {
  margin-top: 1.5rem !important;
  padding: 0.9rem 1.25rem !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.875rem !important;
}

.wpcf7-not-valid-tip {
  color: var(--cobalt) !important;
  font-size: 0.8rem !important;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .site-layout {
    flex-direction: column;
  }

  .mobile-header {
    display: flex;
  }

  .site-sidebar {
    position: fixed;
    top: 65px;
    left: -100%;
    width: 290px;
    height: calc(100vh - 65px);
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
  }

  .site-sidebar.is-open {
    left: 0;
  }

  .site-main-content {
    padding: 2rem 1.25rem;
  }

  .sidebar-top {
    gap: 1.75rem;
  }
}

/* ==========================================================================
   Portfolio Lightbox
   ========================================================================== */
.portfolio-lightbox-link {
  display: block;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}

.portfolio-lightbox-link img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-lightbox-link:hover img {
  transform: scale(1.015);
}

.lightbox-hint {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: var(--transition);
  pointer-events: none;
}

.portfolio-lightbox-link:hover .lightbox-hint {
  opacity: 1;
  transform: scale(1);
}

.project-content-prose img {
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-content-prose img:hover {
  opacity: 0.95;
}

/* Lightbox Modal Overlay */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(8, 8, 10, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.lightbox-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-dialog {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-current-img {
  max-width: 90vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.lightbox-btn {
  position: fixed;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1000000;
  border-radius: 50%;
}

.lightbox-btn:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  transform: scale(1.08);
}

.lightbox-btn-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
}

.lightbox-btn-prev {
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
}

.lightbox-btn-prev:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-btn-next {
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
}

.lightbox-btn-next:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-counter-badge {
  position: fixed;
  top: 28px;
  left: 28px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 1000000;
}

@media (max-width: 720px) {
  .lightbox-btn-prev {
    left: 12px;
    width: 42px;
    height: 42px;
  }
  .lightbox-btn-next {
    right: 12px;
    width: 42px;
    height: 42px;
  }
  .lightbox-btn-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  .lightbox-counter-badge {
    top: 20px;
    left: 16px;
    font-size: 0.75rem;
  }
}
