/* ==========================================================================
   Base Theme Variables (Dark Mode Default for Premium Security Vibe)
   ========================================================================== */
:root {
  --bg-color: #0d1117;
  --surface-color: rgba(22, 27, 34, 0.7);
  --surface-border: rgba(255, 255, 255, 0.1);
  --primary-color: #58a6ff;
  --primary-hover: #79c0ff;
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --error-color: #f85149;
  --success-color: #3fb950;
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
  --transition: all 0.3s ease;
}

/* ==========================================================================
   Reset & Typography
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   Glassmorphism & Core Components
   ========================================================================== */
.glass-nav {
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #58a6ff, #bc8cd0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links a {
  margin-left: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.nav-links a:hover {
  color: #fff;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary {
  background: var(--primary-color);
  color: #0d1117;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-sm {
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
}

.glass-card,
.glass-pane {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Layouts
   ========================================================================== */
main {
  flex: 1;
  padding: 3rem 0;
}

.hero-section {
  text-align: center;
  padding: 5rem 0;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--surface-border);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.grid {
  display: grid;
  gap: 2rem;
}

.cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card-title {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   List Group & Content
   ========================================================================== */
.list-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
}

.item-title {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.private-badge {
  background: rgba(248, 81, 73, 0.2);
  color: var(--error-color);
  border: 1px solid rgba(248, 81, 73, 0.4);
}

.public-badge {
  background: rgba(63, 185, 80, 0.2);
  color: var(--success-color);
  border: 1px solid rgba(63, 185, 80, 0.4);
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   Auth & Forms
   ========================================================================== */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.auth-card {
  width: 100%;
  max-width: 450px;
  text-align: center;
}

.auth-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.glass-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  transition: var(--transition);
}

.glass-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(0, 0, 0, 0.4);
}

.alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-error {
  background: rgba(248, 81, 73, 0.2);
  color: #ff7b72;
  border: 1px solid rgba(248, 81, 73, 0.5);
}

/* ==========================================================================
   Video / Content Pages
   ========================================================================== */
.content-header {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.page-title {
  font-size: 2.5rem;
}

.page-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 800px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2rem;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.text-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
}

/* Skeleton Loaders */
@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

.skeleton {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.05) 8%,
    rgba(255, 255, 255, 0.1) 18%,
    rgba(255, 255, 255, 0.05) 33%
  );
  background-size: 800px 104px;
  animation: shimmer 1.5s linear infinite forwards;
  border-radius: 4px;
}

.skeleton-text {
  height: 1.2rem;
  margin-bottom: 0.5rem;
}
.skeleton-title {
  height: 2rem;
  margin-bottom: 1rem;
  width: 60%;
}
.skeleton-card {
  height: 150px;
}
