/* shared.css - Common styles for Transio Secrets */

:root {
  --primary-color: #36454f; /* Sophisticated Charcoal Grey */
  --secondary-color: #206a5d; /* Calming Teal */
  --accent-color-white: #ffffff; /* Crisp White */
  --accent-color-light-grey: #ecf0f1; /* Light Grey */
  --surface-color: #ffffff; /* Pure White for card surfaces */
  --background-light: #f8fafc; /* Very Light Grey for subtle backgrounds */
  --text-color-dark: #36454f; /* Charcoal Grey for text on light backgrounds */
  --text-color-light: #ffffff; /* White for text on dark backgrounds */
  --text-color-subtle: #7f8c8d; /* A slightly lighter grey for less prominent text */
  --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* Font classes for view.html and err.html compatibility */
.font-heading {
  font-family:
    'Montserrat',
    system-ui,
    -apple-system,
    sans-serif;
}

.font-body {
  font-family:
    'Open Sans',
    system-ui,
    -apple-system,
    sans-serif;
}

/* Additional CSS variables for view.html and err.html compatibility */
:root {
  --accent-color: #ffffff; /* Clean White */
  --background-color: #ffffff;
  --text-primary: #36454f;
  --text-secondary: #5a6c7d;
  --text-light: #8e9ba8;
  --border-color: #e1e8ed;
  --shadow-heavy: 0 8px 24px rgba(54, 69, 79, 0.16);
}

body {
  background-color: var(--accent-color-white);
  color: var(--text-color-dark);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-color);
  font-family: var(--font-heading);
  margin-bottom: 0.75em;
  font-weight: 700; /* Adjusted for Montserrat */
}
h1 {
  font-size: 2.8em;
  font-weight: 900;
} /* Example size, heavier for main title */
h2 {
  font-size: 2.2em;
}
h3 {
  font-size: 1.6em;
}

/* Links */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #1a574a; /* Darker shade of Calming Teal */
  text-decoration: underline;
}

/* Buttons */
button,
.btn,
input[type='button'],
input[type='submit'] {
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  border: none;
  padding: 12px 24px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1em;
  font-family: var(--font-body); /* Or var(--font-heading) for a bolder button text */
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button:hover,
.btn:hover,
input[type='button']:hover,
input[type='submit']:hover {
  background-color: #1a574a; /* Darker shade of Calming Teal */
}

/* Tailwind Overrides / Augmentations */
.bg-primary {
  background-color: var(--primary-color);
}
.text-primary {
  color: var(--primary-color);
}
.bg-secondary {
  background-color: var(--secondary-color);
}
.text-secondary {
  color: var(--secondary-color);
}
.bg-accent-light-grey {
  background-color: var(--accent-color-light-grey);
}
.text-light {
  color: var(--text-color-light);
}
.text-dark {
  color: var(--text-color-dark);
}
.text-subtle {
  color: var(--text-color-subtle);
}

/* Header styling */
.header-custom {
  background-color: var(--primary-color); /* Was gradient, now solid primary */
  border-bottom: 2px solid var(--secondary-color); /* Accent border */
}
.header-custom h2,
.header-custom a {
  color: var(--text-color-light);
}
.header-custom a:hover {
  color: var(--accent-color-light-grey);
}
.profile-icon-custom {
  /* Placeholder for profile icon */
  border: 2px solid var(--secondary-color);
}

/* Modern button glow effects */
.btn-glow {
  box-shadow: 0 4px 14px 0 rgba(32, 106, 93, 0.3);
  transition: all 0.3s ease;
}
.btn-glow:hover {
  box-shadow: 0 6px 20px 0 rgba(32, 106, 93, 0.5);
  transform: translateY(-2px);
}
.btn-glow:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px 0 rgba(32, 106, 93, 0.4);
}

/* Copy button hover effects - applies to all copy buttons */
#copyLinkButton:hover:not(.copying),
.history-copy-button:hover:not(.copying) {
  background-color: var(--secondary-color);
}

/* Footer background consistency */
.footer-custom {
  background-color: var(--primary-color);
}

@keyframes gentle-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}
.floating-bounce {
  animation: gentle-bounce 0.8s ease-in-out;
}
