/*!
Theme Name: tenaanet.com
Theme URI: http://underscores.me/
Author: astab
Author URI: http://astab.nl
Description: wordpress theme for my lovely friend anet
Version: 1.0.1
Tested up to: 5.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: tenaanet
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

tenaanet.com is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   1. GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "ABC Diatype Variable", "Diatype Variable", -apple-system, sans-serif;
  background-color: #e5e5e5;
  color: #111;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

h3 {
  font-family: "Sixtyfour", sans-serif;
  font-size: 1.1rem;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #111111;
}

a {
  font-family: "Silkscreen", sans-serif;
  font-weight: 200;
  font-size: 0.3rem;
  color: #111111;
  text-decoration: none;
  text-transform: uppercase;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
.main-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 40px; background-color: #e5e5e5; }
.logo h1 { font-family: "ABC Diatype Variable", "Diatype Variable", sans-serif; font-size: 1.2rem; letter-spacing: 2px; text-transform: uppercase; display: flex; flex-direction: column; align-items: flex-start; line-height: 0.65; margin-bottom: 10px; padding: 0; }
.logo h1 .flipped { display: inline-block; transform: scaleY(-1); transform-origin: bottom center; margin: 0; padding: 0; }
.logo h1 .normal { display: inline-block; margin-top: 18px; margin-left: 54px; }
.nav-links a { color: #111; text-decoration: none; font-weight: bold; margin-left: 20px; margin-top: 24.5px; font-size: 0.87rem; }

/* ==========================================================================
   3. CORE SPLIT WORKFRAME (HOME PAGE)
   ========================================================================== */
.main-container { display: flex; flex: 1; height: calc(100vh - 160px); }

.selected-work { width: 60%; height: 100%; overflow-y: auto; background-color: #7a7a7a; color: #fff; padding: 0 0 40px 0; }
.weekly-updates { width: 40%; height: 100%; overflow-y: auto; overflow-x: hidden; background-color: #bdb5ce; color: #111111; padding: 0; border-left: 1px solid #999; }

.panel-header { position: sticky; top: 0; background-color: inherit; padding: 15px 20px; font-weight: bold; font-size: 0.85rem; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.2); z-index: 1000; }
.weekly-updates .panel-header { border-bottom: 1px solid rgba(255,255,255,0.3); color: #ffffff; }

.project-card-link { display: block; text-decoration: none; color: inherit; }
.project-card { display: flex; padding: 30px 20px; border-bottom: 1px solid #8a8a8a; gap: 20px; }
.interactive-preview { width: 45%; aspect-ratio: 16 / 10; background-color: #b5b5b5; border: 1px dashed #fff; position: relative; overflow: hidden; }
.interactive-preview video, .interactive-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-info { width: 55%; }
.project-info h3 { font-size: 1.1rem; margin-bottom: 10px; letter-spacing: 1px; }
.project-info p { font-size: 0.75rem; line-height: 1.4; color: #ddd; margin-bottom: 15px; }
.read-more { color: #fff; font-size: 0.8rem; text-decoration: underline; }
.empty-state-message { font-size: 0.85rem; font-style: italic; padding: 30px 20px; color: #ddd; }

/* ==========================================================================
   4. WEEKLY UPDATES FEED (DIGITAL SKETCHBOOK)
   ========================================================================== */
.update-content { position: relative; min-height: 750px; background: #bdb5ce !important; overflow: hidden; padding: 0 !important; box-sizing: border-box; }
.manifesto { font-size: 0.85rem; line-height: 1.5; letter-spacing: 1px; }
.sketch-box-video { position: relative; margin-bottom: 30px; padding: 0; background: transparent !important; border: none !important; color: #111111; width: 100% !important; z-index: 1; }
.sketch-box-video video { width: 100% !important; max-width: 100% !important; height: auto !important; display: block; border: none !important; }
.sketch-date { font-family: "Silkscreen", sans-serif; font-size: 0.7rem; color: #555555; margin-bottom: 6px; }

#live-process-feed { position: relative; width: 100%; height: 100%; }
#live-process-feed .sketch-box-image { position: absolute; width: 25vw; max-width: 220px; min-width: 120px; background: transparent !important; border: none !important; padding: 0 !important; box-shadow: none !important; cursor: move; z-index: 5; user-select: none; touch-action: none; }
#live-process-feed .sketch-box-image img { width: 100%; height: auto; display: block; border: none !important; margin: 0; padding: 0; background: transparent !important; filter: none !important; pointer-events: none; }
#live-process-feed .sketch-box-image p { font-family: 'Silkscreen', sans-serif; font-size: 0.75rem; margin-top: 8px; line-height: 1.3; color: #aaa; }
#live-process-feed .sketch-box-image:active,
#live-process-feed .sketch-box-audio:active { cursor: grabbing; z-index: 999 !important; }

#live-process-feed .sketch-box-audio {
  position: absolute;
  width: 20vw;
  max-width: 130px;
  min-width: 95px;
  background: #111;
  border: 1px solid #fff;
  padding: 15px 10px;
  text-align: center;
  cursor: move;
  z-index: 5;
  user-select: none;
  touch-action: none;
  box-shadow: 5px 5px 0px rgba(255, 255, 255, 0.05);
}
.audio-icon-wrapper { font-size: 2.5rem; margin-bottom: 8px; user-select: none; pointer-events: none; }
#live-process-feed .sketch-box-audio p { font-family: 'Silkscreen', sans-serif; font-size: 0.7rem; color: #fff; line-height: 1.2; word-wrap: break-word; }
.audio-hint { font-size: 0.55rem !important; color: #888 !important; margin-top: 4px; text-transform: uppercase; }

/* --- AUDIO STACK ATOP FOOTER (SEMI-TRANSPARENT BLACK) --- */
#audio-playback-dock {
  position: fixed;
  bottom: 60px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  z-index: 99999;
  pointer-events: none;
}
.global-audio-line {
  pointer-events: auto;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(3px);
  border-top: 1px solid #333;
  padding: 8px 20px;
  color: #fff;
  gap: 20px;
  box-sizing: border-box;
  animation: slideUp 0.15s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.audio-line-btn { background: #fff; color: #000; border: none; font-family: 'Silkscreen', sans-serif; font-size: 0.7rem; padding: 3px 8px; cursor: pointer; min-width: 60px; }
.audio-line-title { font-family: 'Silkscreen', sans-serif; font-size: 0.75rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; max-width: 250px; }
.audio-line-native { flex: 1; height: 15px; accent-color: #fff; }
.audio-line-close { background: none; border: none; font-size: 1rem; cursor: pointer; color: #888; padding: 0 5px; }
.audio-line-close:hover { color: #fff; }

/* ==========================================================================
   5. PROJECT DETAIL PAGE
   ========================================================================== */
#project-bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

.project-detail-scroll-wrapper { flex: 1; height: calc(100vh - 160px); overflow-y: auto; background-color: transparent !important; }
.project-detail-container { padding: 40px; max-width: 900px; margin: 0 auto; box-sizing: border-box; background: rgba(0, 0, 0, 0.75) !important; color: #ffffff !important; border-radius: 6px; border: 1px solid #333; backdrop-filter: blur(5px); }
.back-link { margin-bottom: 30px; }
.back-link a { font-family: "Silkscreen", sans-serif; font-weight: 400; font-size: 0.85rem; text-decoration: none; color: #ffffff !important; }
.back-link a:hover { text-decoration: underline; }
.detail-title { font-family: "Sixtyfour", sans-serif; font-size: 1.8rem; margin-bottom: 30px; color: #ffffff !important; }
.project-metadata { border-top: 1px solid #ffffff !important; border-bottom: 1px solid #ffffff !important; padding: 15px 0; margin-bottom: 40px; display: flex; flex-direction: column; gap: 10px; }
.meta-block { font-size: 0.95rem; }
.meta-label { font-family: "Silkscreen", sans-serif; font-weight: 400; font-size: 0.8rem; color: #aaaaaa !important; margin-right: 10px; }
.meta-value { color: #ffffff !important; }
.project-long-description p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 20px; color: #ffffff !important; }
.project-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.gallery-item { border: 1px solid #111; padding: 10px; background: #fff; }
.gallery-item p { font-family: "Silkscreen", sans-serif; font-size: 0.75rem; margin-top: 8px; color: #aaa; line-height: 1.3; }

.gallery-preview-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    border: 1px solid #111;
    cursor: pointer;
}
.gallery-preview-wrapper img,
.gallery-preview-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- LIGHTBOX (PROJECT GALLERY) --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.lightbox.active { display: flex; }
.lightbox-content { max-width: 80%; max-height: 80vh; object-fit: contain; box-shadow: 0 0 30px rgba(0,0,0,0.5); display: block; margin: 0 auto; }
.lightbox-caption { position: absolute; bottom: 20px; color: #fff; font-family: "Silkscreen", sans-serif; font-size: 0.85rem; text-align: center; width: 100%; padding: 0 40px; box-sizing: border-box; }
.lightbox-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(17, 17, 17, 0.7); color: #fff; border: 1px solid #333; font-family: "Silkscreen", sans-serif; font-size: 1.5rem; padding: 15px 20px; cursor: pointer; user-select: none; z-index: 10000; transition: background 0.2s, color 0.2s; }
.lightbox-btn:hover { background: #fff; color: #111; }
.lightbox-btn.prev { left: 20px; }
.lightbox-btn.next { right: 20px; }
.lightbox-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; z-index: 10000; }

/* --- SKETCH ZOOM OVERLAY (HOMEPAGE IMAGE LIGHTBOX) --- */
.sketch-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.9); z-index: 99999; display: none; justify-content: center; align-items: center; }
.sketch-overlay.active { display: flex !important; }
.zoom-content { position: relative; max-width: 90vw; max-height: 90vh; }
.zoom-content img { max-width: 100%; max-height: 90vh; object-fit: contain; display: block; margin: 0 auto; border: 1px solid #fff; }

/* ==========================================================================
   6. WHOAMI POPUP
   ========================================================================== */
.whoami-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.whoami-popup-overlay.active { display: flex; }
.whoami-popup-content {
    background: #000;
    border: 1px solid #fff;
    padding: 40px;
    max-width: 550px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 0 30px rgba(255,255,255,0.1);
}
.whoami-popup-content h2 { font-family: 'Sixtyfour', sans-serif; font-size: 1.4rem; margin-bottom: 5px; color: #fff; }
.whoami-popup-content .subtitle { font-family: 'Silkscreen', sans-serif; font-size: 0.8rem; color: #888; margin-bottom: 20px; text-transform: uppercase; }
.whoami-popup-content p { font-family: 'Silkscreen', sans-serif; font-size: 0.85rem; line-height: 1.6; color: #ccc; margin-bottom: 15px; }
.whoami-popup-content .close-btn { position: absolute; top: 15px; right: 15px; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.whoami-popup-content .whoami-linkedin { margin-top: 25px; border-top: 1px dashed #333; padding-top: 15px; }
.whoami-popup-content .whoami-linkedin a { font-family: 'Silkscreen', sans-serif; font-size: 0.85rem; color: #fff; text-decoration: none; display: inline-block; }

/* ==========================================================================
   7. EMAIL POPUP & CONTACT FORM
   ========================================================================== */
.email-popup-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.85); z-index: 10000; justify-content: center; align-items: center; backdrop-filter: blur(3px); }
.email-popup-overlay.active { display: flex; }
.email-popup-content { background: #e5e5e5; color: #111; padding: 40px; width: 100%; max-width: 500px; position: relative; border: 1px solid #111; }
.close-popup-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #111; }
.copy-email-zone { display: flex; align-items: center; background: #bdb5ce; padding: 10px 15px; margin-bottom: 25px; border: 1px solid #111; }
.target-email-label { font-family: "Silkscreen", sans-serif; font-size: 0.75rem; margin-right: 10px; }
.target-email-address { font-family: "ABC Diatype Variable", sans-serif; font-weight: bold; font-size: 0.9rem; flex: 1; }
.copy-btn { font-family: "Silkscreen", sans-serif; font-size: 0.75rem; background: #111; color: #fff; border: none; padding: 5px 10px; cursor: pointer; }
.copy-btn:hover { background: #7a7a7a; }
.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #111; background: #fff; font-family: "ABC Diatype Variable", sans-serif; font-size: 0.9rem; color: #111; outline: none; }
.form-group input::placeholder, .form-group textarea::placeholder { font-family: "Silkscreen", sans-serif; font-size: 0.75rem; color: #888; }
.submit-form-btn { font-family: "Silkscreen", sans-serif; font-size: 0.85rem; background: #111; color: #fff; border: none; padding: 12px 20px; width: 100%; cursor: pointer; text-align: left; }
.submit-form-btn:hover { background: #7a7a7a; }

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.main-footer { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; background-color: #e5e5e5; width: 100%; box-sizing: border-box; }
.footer-email { font-family: "Silkscreen", sans-serif; font-size: 0.9rem; font-weight: bold; margin-bottom: 10px; cursor: pointer; }
.footer-tag { display: flex; align-items: center; }
.footer-sig-img { height: 35px; width: auto; display: block; }

/* ==========================================================================
   9. RESPONSIVE (MOBILE)
   ========================================================================== */
.main-container { display: flex; flex-direction: row; }
.selected-work { width: 60%; }
.weekly-updates { width: 40%; }
.mobile-nav-footer { display: none; }
.hidden { display: none !important; }

@media screen and (max-width: 768px) {
    .main-container { flex-direction: column; }
    .selected-work, .weekly-updates { width: 100% !important; }

    .main-footer { display: none !important; }

    .logo h1 .normal {
        margin-top: 15px !important;
        margin-left: 44.5px !important;
    }

    .nav-links {
        display: flex !important;
        gap: 5px !important;
    }
}

@media screen and (max-width: 768px) {
  #live-process-feed .sketch-box-audio {
    width: 28vw !important;
    max-width: 110px !important;
  }
  #audio-playback-dock {
    position: fixed;
    bottom: 60px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 99999;
    pointer-events: none;
  }

  .global-audio-line {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    border: 1px solid #333;
    padding: 8px 20px;
    color: #fff;
    gap: 20px;
    box-sizing: border-box;
    animation: slideUp 0.15s ease-out;
    width: 100%;
    max-width: 900px;
    margin: auto;
  }
}
