/* BLKWEB - Custom Styles */
/* Dark mode design with gold accents */

/* CSS Custom Properties */
:root {
  --primary-black: #0a0a0a;
  --gold: #d4af37;
  --gold-hover: #f0c74a;
  --white: #ffffff;
  --gray-light: #e5e7eb;
  --gray-medium: #9ca3af;
  --gray-dark: #1f2937;
  --gray-darker: #111827;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--primary-black);
  color: var(--white);
  line-height: 1.6;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: var(--gold);
  color: var(--primary-black);
}

::-moz-selection {
  background-color: var(--gold);
  color: var(--primary-black);
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Gold accent glow effect */
.gold-glow {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--gold) !important;
}

/* Button styles */
.btn-primary {
  background-color: var(--gold);
  color: var(--primary-black);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Gradient gold button with shine effect */
.btn-gradient {
  background: linear-gradient(135deg, #d4af37 0%, #f0c74a 50%, #d4af37 100%);
  background-size: 200% 200%;
  color: var(--primary-black);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn-gradient:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

.btn-gradient:hover::before {
  left: 100%;
}

/* Secondary button with border and simple hover effect */
.btn-secondary-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--gray-dark);
  transition: all 0.3s ease;
}

.btn-secondary-outline:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 2px solid var(--gold);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--gold);
  color: var(--primary-black);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--primary-black);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-dark);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-medium);
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Loading spinner */
.spinner {
  border: 3px solid var(--gray-dark);
  border-top-color: var(--gold);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

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

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, var(--white) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Blog post content styling */
.post-content {
  color: var(--white);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--white);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content h1 {
  font-size: 2.5rem;
}

.post-content h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--gray-dark);
  padding-bottom: 0.5rem;
}

.post-content h3 {
  font-size: 1.5rem;
}

.post-content p {
  margin-bottom: 1.5rem;
  color: var(--gray-light);
  line-height: 1.8;
}

.post-content a {
  color: var(--gold);
  text-decoration: underline;
}

.post-content a:hover {
  color: var(--gold-hover);
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: var(--gray-light);
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content img {
  border-radius: 0.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.post-content blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--gray-medium);
}

.post-content code {
  background-color: var(--gray-darker);
  color: var(--gold);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.post-content pre {
  background-color: var(--gray-darker);
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--gray-dark);
}

.post-content pre code {
  background-color: transparent;
  padding: 0;
  color: var(--gray-light);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.post-content th,
.post-content td {
  border: 1px solid var(--gray-dark);
  padding: 0.75rem;
  text-align: left;
}

.post-content th {
  background-color: var(--gray-dark);
  color: var(--white);
  font-weight: 600;
}

.post-content td {
  color: var(--gray-light);
}

/* Form styles */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
  background-color: var(--gray-dark);
  border: 1px solid var(--gray-medium);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  width: 100%;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--gray-medium);
}

/* Badge styles */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-gold {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

/* Alert styles */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgb(239, 68, 68);
  color: rgb(252, 165, 165);
}

.alert-success {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgb(34, 197, 94);
  color: rgb(134, 239, 172);
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgb(59, 130, 246);
  color: rgb(147, 197, 253);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .post-content h1 {
    font-size: 2rem;
  }

  .post-content h2 {
    font-size: 1.75rem;
  }

  .post-content h3 {
    font-size: 1.25rem;
  }
}

/* Print styles */
@media print {
  body {
    background-color: white;
    color: black;
  }

  nav,
  footer,
  .no-print {
    display: none;
  }
}
