/* talentcore.css — TG Theme (Header + Footer + Logo + Mobile Menu) */


/* Root Variables */
:root {
  --black: #0A0A0A;
  --gold: #E8BF5A;
  --light-gray: rgb(156 163 175); /* Tailwind gray-400 */
}

/* Base */
.talentcore-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  background: #fff;
  color: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.talentcore-body main { flex: 1; }

/* Header divider (dein header nutzt nav-border) */
.nav-border {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Header link underline (nur wenn du die Klasse im Twig auch setzt) */
.header-nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.header-nav-link:hover::after {
  width: 100%;
}

/* Footer divider (optional) */
.footer-border {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Footer link "→" animation (nur wenn du footer-link nutzt) */
.footer-link {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.3s ease;
}
.footer-link:hover {
  padding-left: 8px;
}
.footer-link::before {
  content: '→';
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: opacity 0.3s ease, left 0.3s ease;
}
.footer-link:hover::before {
  opacity: 1;
  left: -10px;
}

/* Logo Icon (CSS-Logo) */
.logo-icon,
.footer-logo-icon {
  width: 32px;
  height: 32px;
  position: relative;
}

/* 2 Rahmen-Elemente */
.logo-icon::before,
.logo-icon::after,
.footer-logo-icon::before,
.footer-logo-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid;
}

/* oben links */
.logo-icon::before,
.footer-logo-icon::before {
  top: 0;
  left: 0;
}

/* unten rechts (gedreht) */
.logo-icon::after,
.footer-logo-icon::after {
  bottom: 0;
  right: 0;
  transform: rotate(45deg);
}

/* Farben */
.logo-icon::before,
.logo-icon::after {
  border-color: var(--light-gray);
}
.footer-logo-icon::before,
.footer-logo-icon::after {
  border-color: var(--light-gray);
}



/* Mobile Swipe-Up Menu (deine IDs) */
#swipeTrigger,
#swipeOverlay,
#swipePanel {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
  will-change: transform;
}

#swipePanel {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#swipeOverlay {
  transition: opacity 0.3s ease-out;
}
#swipeTrigger {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar nur fürs Panel */
#panelContent {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
#panelContent::-webkit-scrollbar { width: 4px; }
#panelContent::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 2px; }
#panelContent::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 2px; }
#panelContent::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

/* Optional: wenn dein Body "menu-open" setzt */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   Dashboard / Sedcard
   ========================================================= */

.stats-card {
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.quick-action-btn {
  transition: all 0.3s ease;
}

.quick-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.photo-grid-item {
  transition: all 0.3s ease;
}

.photo-grid-item:hover {
  transform: scale(1.05);
}

.upload-zone {
  border: 3px dashed var(--gold);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.upload-zone.dz-drag-hover {
  border-color: #10B981;
  background-color: rgba(16, 185, 129, 0.05);
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Dropzone Override */
.dropzone {
  border: none !important;
  background: transparent !important;
  min-height: auto !important;
}

.dropzone .dz-message {
  margin: 0 !important;
}

/* Primary Badge */
.primary-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #10B981;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  z-index: 10;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Loading */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, .1);
  border-radius: 50%;
  border-top-color: var(--gold);
  animation: spin 1s ease-in-out infinite;
}

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.3s ease-out;
}

.toast-success {
  background-color: #10B981;
}

.toast-error {
  background-color: #EF4444;
}

.toast-info {
  background-color: #3B82F6;
}

/* Dashboard helper */
.photo-count {
  white-space: nowrap;
}

.dropzone-area {
  width: 100%;
}

#portfolioGrid .photo-grid-item img {
  display: block;
}

#uploadProgress.hidden,
.delete-spinner.hidden {
  display: none;
}

/* =========================================================
   Animations
   ========================================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* =========================================================
   Login Page
   ========================================================= */

.tg-login-form-wrap form {
  display: block;
}

.tg-login-form-wrap .form-item {
  margin-bottom: 1.5rem;
}

.tg-login-form-wrap label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.tg-login-form-wrap input[type="text"],
.tg-login-form-wrap input[type="email"],
.tg-login-form-wrap input[type="password"] {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #000;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  outline: none;
  transition: all 0.2s ease;
}

.tg-login-form-wrap input[type="text"]::placeholder,
.tg-login-form-wrap input[type="email"]::placeholder,
.tg-login-form-wrap input[type="password"]::placeholder {
  color: #6b7280;
}

.tg-login-form-wrap input[type="text"]:focus,
.tg-login-form-wrap input[type="email"]:focus,
.tg-login-form-wrap input[type="password"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tg-login-form-wrap .description,
.tg-login-form-wrap .form-item__description {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.tg-login-form-wrap .form-actions {
  margin-top: 1.5rem;
}

.tg-login-form-wrap .form-actions .button,
.tg-login-form-wrap .form-actions input[type="submit"] {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tg-login-form-wrap .form-actions .button:hover,
.tg-login-form-wrap .form-actions input[type="submit"]:hover {
  background: #1f2937;
}

.tg-login-form-wrap .form-actions .button:focus,
.tg-login-form-wrap .form-actions input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.15);
}

.tg-login-form-wrap .item-list,
.tg-login-form-wrap .links {
  margin-top: 1rem;
}

.tg-login-form-wrap .item-list ul,
.tg-login-form-wrap .links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.tg-login-form-wrap .item-list li,
.tg-login-form-wrap .links li {
  margin: 0.5rem 0;
}

.tg-login-form-wrap a {
  color: #E8BF5A;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tg-login-form-wrap a:hover {
  color: #d4af50;
}

.tg-login-form-wrap .messages,
.tg-login-form-wrap [role="alert"] {
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.tg-login-form-wrap .form-required::after {
  content: " *";
  color: #dc2626;
}

.page-user-login .tabs,
.page-user-login .page-title {
  display: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
}
