/* ==========================================================================
   Custom styles for GAS Website
   Sidebar, cards, and additional components
   ========================================================================== */

/* ==========================================================================
   Sidebar Component
   ========================================================================== */
.sidebar {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 100, 0, 0.1), 0 2px 4px -2px rgba(0, 100, 0, 0.1);
  overflow: hidden;
}

.sidebar-sticky {
  position: sticky;
  top: 6rem;
}

.sidebar-header {
  background: linear-gradient(135deg, #14532d 0%, #166534 100%);
  color: white;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
}

.sidebar-menu {
  padding: 0.75rem 0;
  margin: 0;
}

.sidebar-menu li {
  margin: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  color: #374151;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.sidebar-item:hover {
  background-color: #f0fdf4;
  color: #15803d;
  border-left-color: #22c55e;
  text-decoration: none;
}

.sidebar-item-active {
  background-color: #f0fdf4;
  color: #15803d;
  border-left-color: #16a34a;
  font-weight: 500;
}

.sidebar-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
  margin: 0.75rem 1.25rem;
}

/* ==========================================================================
   Card Components
   ========================================================================== */
.shadow-card {
  box-shadow: 0 4px 6px -1px rgba(0, 100, 0, 0.1), 0 2px 4px -2px rgba(0, 100, 0, 0.1);
}

/* ==========================================================================
   CKEditor Content Styles
   ========================================================================== */
.ck-content h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.ck-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.ck-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

.ck-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.ck-content ul, 
.ck-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.ck-content ul {
  list-style-type: disc;
}

.ck-content ol {
  list-style-type: decimal;
}

.ck-content li {
  margin-bottom: 0.375rem;
}

.ck-content a {
  color: #15803d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ck-content a:hover {
  color: #166534;
}

.ck-content blockquote {
  border-left: 4px solid #22c55e;
  padding-left: 1rem;
  font-style: italic;
  color: #4b5563;
  margin: 1.5rem 0;
}

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

.ck-content th,
.ck-content td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.ck-content th {
  background-color: #f0fdf4;
  font-weight: 600;
  color: #14532d;
}

.ck-content tr:nth-child(even) {
  background-color: #f9fafb;
}

/* ==========================================================================
   Gradient Backgrounds
   ========================================================================== */
.bg-gradient-hero {
  background: linear-gradient(135deg, #14532d 0%, #166534 50%, #15803d 100%);
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu-open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-content {
  padding: 1rem;
}

.mobile-menu-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #374151;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.mobile-menu-item:hover {
  background-color: #f0fdf4;
  color: #15803d;
}

/* ==========================================================================
   Line Clamp
   ========================================================================== */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.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;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

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

.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

/* ==========================================================================
   Button Components
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  box-shadow: 0 6px 8px -1px rgba(22, 163, 74, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: white;
  color: #15803d;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: 2px solid #16a34a;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f0fdf4;
  border-color: #15803d;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.125rem;
}

.btn-with-icon svg {
  transition: transform 0.2s;
}

.btn-with-icon:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Card Hover Effects
   ========================================================================== */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 100, 0, 0.15), 0 4px 6px -4px rgba(0, 100, 0, 0.1);
}

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

.card-hoverable:hover {
  border-color: #22c55e;
}
