/*
 * Hajsiki.pl - Emerald Cyber-Glance Premium Shortener Stylesheet
 * Fully isolated premium stylesheet for a luxurious, high-tech experience.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Sora:wght@400;600;700;800&display=swap');

:root {
  /* Fonts */
  --font-base: 'Plus Jakarta Sans', sans-serif;
  --font-title: 'Sora', sans-serif;

  /* Color Palette - Cyber Obsidian & Electric Mint */
  --bg-space: #07090d;
  --bg-card: rgba(13, 17, 24, 0.65);
  --bg-card-hover: rgba(17, 23, 32, 0.75);
  
  /* Cyber Electric Gradients */
  --glow-mint: rgba(0, 245, 155, 0.2);
  --glow-mint-hover: rgba(0, 245, 155, 0.45);
  --glow-mint-focus: rgba(0, 245, 155, 0.6);
  
  --gradient-primary: linear-gradient(135deg, #00f59b 0%, #00b8ff 100%);
  --gradient-primary-hover: linear-gradient(135deg, #00ffaa 0%, #00c8ff 100%);
  --gradient-dark: linear-gradient(135deg, #0d121c 0%, #080b11 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 10%, #00f59b 80%, #00b8ff 100%);

  /* Status Colors */
  --color-success: #00ffaa;
  --color-success-bg: rgba(0, 255, 170, 0.08);
  --color-success-border: rgba(0, 255, 170, 0.25);
  --color-success-text: #8cffd6;
  
  --color-error: #ff5e62;
  --color-error-bg: rgba(255, 94, 98, 0.08);
  --color-error-border: rgba(255, 94, 98, 0.25);
  --color-error-text: #ffb3b5;

  /* Text Colors */
  --text-primary: #f0f4f8;
  --text-secondary: #a0aec0;
  --text-muted: #64748b;
  --text-light: #ffffff;

  /* Border Radii */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

/* Global Reset & Base styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-space);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Immersive background aura orbs */
body::before {
  content: '';
  position: fixed;
  top: -15%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(0, 245, 155, 0.07) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(120px);
  animation: floatOrb 25s infinite alternate ease-in-out;
}

body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  left: -15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 184, 255, 0.06) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(140px);
  animation: floatOrb 30s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(50px) scale(1.1); }
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-space);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-primary);
}

::selection {
  background-color: rgba(0, 245, 155, 0.25);
  color: var(--text-light);
}

/* Main Layout Wrapper */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 140px 20px 80px 20px;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Header Redesign */
.header {
  background-color: rgba(7, 9, 13, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  height: 85px;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  z-index: 1000;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header.active {
  background-color: rgba(7, 9, 13, 0.98);
}

.logo {
  height: 42px;
  width: auto;
  cursor: pointer;
  transition: var(--transition-spring);
  filter: drop-shadow(0 0 8px rgba(0, 245, 155, 0.15));
}

.logo:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 16px rgba(0, 245, 155, 0.45));
}

/* Desktop Navigation */
.desktopNav {
  gap: 36px;
  display: flex;
  align-items: center;
}

.desktopNav a,
.header nav a {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: 8px 0;
  transition: var(--transition-fast);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.desktopNav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
}

.desktopNav a:hover {
  color: var(--text-light);
  text-shadow: 0 0 10px rgba(0, 245, 155, 0.4);
}

.desktopNav a:hover::after {
  width: 100%;
}

/* Mobile Burger Menu Icon */
.burger {
  display: none;
  cursor: pointer;
  height: 24px;
  width: auto;
  transition: var(--transition-smooth);
  filter: invert(100%) sepia(0%) saturate(0%) brightness(100%);
  opacity: 0.8;
}

.burger:hover {
  opacity: 1;
  transform: scale(1.08);
}

/* Mobile Menu Slide-out Panel */
.mobile-menu {
  position: fixed;
  top: 85px;
  left: 0;
  width: 100%;
  height: calc(100vh - 85px);
  background-color: rgba(7, 9, 13, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding-top: 60px;
  z-index: 999;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s;
}

.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 40px;
  border-radius: var(--radius-md);
  width: 80%;
  text-align: center;
}

.mobile-menu a:hover {
  color: var(--color-success);
  background: rgba(255, 255, 255, 0.03);
  text-shadow: 0 0 15px rgba(0, 245, 155, 0.3);
}

body.no-scroll {
  overflow: hidden;
}

/* Hero Section */
h1 {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  letter-spacing: -1px;
  text-align: center;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 650px;
  text-align: center;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.2px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  opacity: 0;
}

/* Interactive glow element beneath card */
.glow-effect-wrapper {
  position: relative;
  width: 100%;
  max-width: 620px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
}

.glow-effect-wrapper::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 5%;
  background: var(--gradient-primary);
  filter: blur(50px);
  opacity: 0.15;
  z-index: -1;
  border-radius: var(--radius-lg);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.glow-effect-wrapper:hover::before {
  opacity: 0.25;
  filter: blur(60px);
}

/* Main Tile Redesign */
.tile {
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 50px 48px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
  width: 100%;
}

.tile:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 245, 155, 0.2);
  box-shadow: 
    0 45px 110px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 40px rgba(0, 245, 155, 0.04);
}

/* Premium Badge Redesign */
.premium-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c0caf5;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.premium-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-success);
  animation: pulseDot 2s infinite alternate;
}

@keyframes pulseDot {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; }
}

.premium-badge:hover {
  border-color: rgba(0, 245, 155, 0.3);
  color: var(--text-light);
  background: rgba(0, 245, 155, 0.05);
}

/* Custom Form layout styling */
#shortenerForm {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 22px;
  margin-block-end: 0 !important;
}

#shortenerForm br {
  display: none !important;
}

/* Custom visual input wrapping */
.input-field-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  text-align: left;
}

.input-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-left: 4px;
  transition: var(--transition-fast);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 20px;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-fast);
}

/* High-tech custom input styling */
input[type="text"].text,
input[type="text"] {
  background-color: rgba(4, 5, 8, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  width: 100%;
  color: var(--text-light);
  padding: 16px 20px 16px 52px;
  height: 60px;
  transition: var(--transition-smooth);
  box-sizing: border-box;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
  margin-inline: 0 !important;
}

input[type="text"].text::placeholder,
input[type="text"]::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Input state focus triggers wrapper style changes */
.input-wrapper:focus-within .input-icon {
  color: var(--color-success);
  filter: drop-shadow(0 0 6px rgba(0, 245, 155, 0.4));
}

.input-field-container:focus-within .input-label {
  color: var(--text-light);
}

input[type="text"].text:focus,
input[type="text"]:focus {
  outline: none;
  border-color: rgba(0, 245, 155, 0.5);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.9), 
    0 0 25px rgba(0, 245, 155, 0.15);
  background-color: rgba(4, 5, 8, 0.95);
  transform: translateY(-1px);
}

/* Submit Button Redesign */
.dark-button,
#shortenButton,
#copyButton {
  font-family: var(--font-title);
  background: var(--gradient-primary);
  color: #07090d;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  cursor: pointer;
  padding: 16px 36px;
  height: 60px;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 30px rgba(0, 245, 155, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: var(--transition-spring);
  text-transform: uppercase;
  width: 100%;
  margin-inline: 0 !important;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.dark-button:hover,
#shortenButton:hover,
#copyButton:hover {
  transform: translateY(-3px);
  background: var(--gradient-primary-hover);
  box-shadow: 0 8px 35px rgba(0, 245, 155, 0.45), 0 0 20px rgba(0, 245, 155, 0.2);
}

.dark-button:active,
#shortenButton:active,
#copyButton:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 245, 155, 0.3);
}

#shortenButton:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
  cursor: not-allowed;
  transform: none !important;
}

/* Legal PDF links footer text */
.last {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 32px;
  margin-bottom: 0px !important;
  line-height: 1.6;
  text-align: center;
  max-width: 90%;
}

.last a {
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  transition: var(--transition-fast);
}

.last a:hover {
  color: var(--color-success);
  border-bottom: 1px solid var(--color-success);
  text-shadow: 0 0 10px rgba(0, 245, 155, 0.3);
}

/* Status / Alert Messages Redesign */
#shortenerMessage {
  width: 100%;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: center;
  margin-top: 28px;
  box-sizing: border-box;
  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  line-height: 1.5;
}

#shortenerMessage.is-error {
  background-color: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  color: var(--color-error-text);
  box-shadow: 0 10px 30px rgba(255, 94, 98, 0.1);
}

#shortenerMessage.is-success {
  background-color: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: var(--color-success-text);
  box-shadow: 0 10px 30px rgba(0, 255, 170, 0.1);
}

/* Loading/pending status message */
#shortenerMessage:not(.is-error):not(.is-success) {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Result Container Dashboard Layout */
#shortenerResult {
  width: 100%;
  margin-top: 36px;
  padding: 30px;
  border-radius: var(--radius-md);
  background: var(--gradient-dark);
  border: 1px solid rgba(0, 245, 155, 0.2);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scaleInSpring 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards;
}

#shortenerResult p {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 245, 155, 0.2);
}

/* Short URL output */
a#shortUrl {
  font-family: var(--font-title);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-light) !important;
  text-decoration: none !important;
  word-break: break-all;
  display: inline-block;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, #8cffd6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

a#shortUrl:hover {
  letter-spacing: 0.2px;
  filter: drop-shadow(0 0 12px rgba(0, 245, 155, 0.5));
}

#shortenerResult br {
  display: none !important;
}

/* Premium styled secondary Copy Button inside result container */
#shortenerResult #copyButton {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition-spring);
}

#shortenerResult #copyButton:hover {
  background: var(--gradient-primary);
  color: #07090d;
  box-shadow: 0 8px 30px rgba(0, 245, 155, 0.35);
  border-color: transparent;
}

.copy-btn-icon {
  width: 18px;
  height: 18px;
  margin-right: 4px;
}

/* Footer Redesign */
footer {
  background-color: rgba(7, 9, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 32px 20px;
  text-align: center;
  width: 100%;
  letter-spacing: 0.8px;
  margin-top: auto;
  z-index: 10;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scaleInSpring {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .header {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 24px;
    height: 75px;
  }
  
  .burger {
    display: block;
  }
  
  .desktopNav {
    display: none;
  }
  
  .mobile-menu {
    top: 75px;
    height: calc(100vh - 75px);
  }
  
  main {
    padding: 120px 16px 60px 16px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
  }
  
  .tile {
    padding: 36px 24px;
    border-radius: var(--radius-md);
  }
  
  input[type="text"].text,
  input[type="text"],
  .dark-button,
  #shortenButton {
    height: 56px;
    font-size: 1rem;
    padding: 14px 16px 14px 44px;
  }
  
  .input-icon {
    left: 16px;
  }
  
  a#shortUrl {
    font-size: 1.35rem;
  }
}
