/* ==========================================================================
   SSB Tools Hub - Styling System
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --bg-primary: #07080e;
  --bg-secondary: #0f111e;
  --bg-card: rgba(22, 24, 43, 0.4);
  --bg-card-hover: rgba(26, 29, 54, 0.65);
  --bg-glass: rgba(13, 16, 28, 0.65);
  
  --border-color: rgba(255, 255, 255, 0.07);
  --border-color-hover: rgba(0, 242, 254, 0.4);
  --border-glass: rgba(255, 255, 255, 0.09);
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Brand Accent Colors */
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --grad-highlight: linear-gradient(135deg, #4facfe 0%, #8b5cf6 100%);
  --grad-dark: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  --grad-active: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-upcoming: linear-gradient(135deg, #475569 0%, #334155 100%);
  
  /* Shadows & Glows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  
  --glow-cyan: 0 0 20px rgba(0, 242, 254, 0.15);
  --glow-cyan-strong: 0 0 25px rgba(0, 242, 254, 0.35);
  
  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
  mix-blend-mode: screen;
}

.glow-1 {
  top: -10%;
  left: -5%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0.05) 70%, transparent 100%);
  animation: floatSlow 25s infinite alternate;
}

.glow-2 {
  top: 40%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(79, 172, 254, 0.04) 60%, transparent 100%);
  animation: floatSlow 30s infinite alternate-reverse;
}

.glow-3 {
  bottom: -15%;
  left: 20%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, rgba(245, 158, 11, 0.03) 60%, transparent 100%);
}

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

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.3);
}

/* App Container Layout */
.app-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  gap: 32px;
}

/* Glassmorphism Class */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  border-radius: 18px;
}

/* Header Area */
.main-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
  animation: fadeInDown var(--transition-slow);
}

.header-logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-logo {
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.25));
  animation: gliderGlide 6s ease-in-out infinite alternate;
}

.header-titles h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 70%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2px;
}

.header-titles .subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Weather Dashboard Widget */
.weather-dashboard {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
}

.dashboard-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-metric .metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-metric .metric-label i {
  width: 13px;
  height: 13px;
  stroke-width: 2px;
}

.dashboard-metric .metric-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dashboard-metric .status-good {
  color: var(--accent-cyan);
}

.dashboard-divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-color);
}

/* Search and Filter Section */
.controls-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  animation: fadeInUp var(--transition-normal);
}

.search-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

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

.search-box input {
  width: 100%;
  padding: 16px 20px 16px 54px;
  background: rgba(10, 11, 20, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 400;
  transition: all var(--transition-normal);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px rgba(0, 242, 254, 0.2), var(--glow-cyan);
  background: rgba(10, 11, 20, 0.85);
}

.clear-btn {
  position: absolute;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.clear-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.clear-btn i {
  width: 16px;
  height: 16px;
}

/* Filter categories */
.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: var(--grad-primary);
  color: #07080e;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
}

/* Grid & Section headers */
.grid-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInUp var(--transition-normal) 0.15s backwards;
}

.grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tools-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

/* Tools Responsive Grid Layout */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  transition: opacity var(--transition-normal);
}

/* Card Styling */
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              border-color var(--transition-normal), 
              box-shadow var(--transition-normal), 
              background-color var(--transition-normal);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: background var(--transition-normal);
}

/* Hover effects */
.tool-card:hover {
  transform: translateY(-8px);
  background-color: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-glass), var(--glow-cyan);
  cursor: pointer;
}

/* Highlighted (Active / Prominent) Card */
.tool-card.card-highlight {
  border-color: rgba(0, 242, 254, 0.15);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.04);
}

.tool-card.card-highlight::before {
  background: var(--grad-primary);
}

.tool-card.card-highlight:hover {
  box-shadow: var(--shadow-glass), var(--glow-cyan-strong);
  border-color: var(--accent-cyan);
}

/* Card Header elements */
.card-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-icon-container {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.tool-card:hover .card-icon-container {
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border-color: var(--border-color-hover);
  transform: scale(1.05) rotate(3deg);
}

.tool-card.card-highlight .card-icon-container {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
  border-color: rgba(0, 242, 254, 0.2);
}

.tool-card.card-highlight:hover .card-icon-container {
  background: var(--grad-primary);
  color: #07080e;
  border-color: transparent;
}

/* Badges */
.status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  color: #ffffff;
}

.status-badge.active {
  background: var(--grad-active);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.status-badge.upcoming {
  background: var(--grad-upcoming);
  color: var(--text-secondary);
}

.status-badge.beta {
  background: var(--accent-amber);
  color: #07080e;
}

/* Card titles & text */
.tool-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-top: 4px;
}

.tool-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tags container */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
}

.tool-card:hover .tag {
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Card Action / Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.action-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.action-link i {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.tool-card:hover .action-link {
  color: var(--accent-cyan);
}

.tool-card:hover .action-link i {
  transform: translateX(4px);
}

.action-link.disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

.tool-card:hover .action-link.disabled i {
  transform: none;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* No Results Section */
.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
  gap: 16px;
}

.no-results-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
}

.no-results h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.no-results p {
  color: var(--text-secondary);
  max-width: 320px;
  margin-bottom: 8px;
}

.action-btn {
  background: var(--grad-primary);
  color: #07080e;
  border: none;
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
  transition: all var(--transition-normal);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35);
}

.action-btn i {
  width: 16px;
  height: 16px;
}

/* Footer Section */
.main-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 24px 0 0 0;
  animation: fadeInUp var(--transition-slow) 0.3s backwards;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast) color;
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-link i {
  width: 14px;
  height: 14px;
}

.footer-divider {
  color: var(--border-color);
}

.footer-copyright {
  color: var(--text-muted);
}

/* Modal Window styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 10, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 540px;
  padding: 36px;
  background: rgba(17, 20, 38, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.modal-close-btn i {
  width: 18px;
  height: 18px;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.modal-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 242, 254, 0.07);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon-badge i {
  width: 26px;
  height: 26px;
}

.modal-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  display: inline-block;
}

.upcoming-badge {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.features-list-section {
  margin-bottom: 24px;
}

.features-list-section h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.features-list {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.features-list li {
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.features-list li::before {
  content: "✦";
  color: var(--accent-cyan);
  font-size: 0.8rem;
}

.tech-specs {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  margin-bottom: 24px;
}

.tech-specs .spec-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.modal-action-btn {
  width: 100%;
  justify-content: center;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(16, 185, 129, 0.1);
  animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-icon {
  color: var(--accent-emerald);
}

.toast-message {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes floatSlow {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(3deg);
  }
  100% {
    transform: translateY(10px) rotate(-3deg);
  }
}

@keyframes gliderGlide {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(2deg);
  }
  100% {
    transform: translateY(2px) rotate(-1deg);
  }
}

@keyframes animateZoom {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-zoom {
  animation: animateZoom 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .main-header {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  
  .header-logo-section {
    justify-content: center;
  }
  
  .weather-dashboard {
    justify-content: space-around;
  }
}

@media (max-width: 600px) {
  .app-container {
    padding: 24px 16px;
    gap: 24px;
  }
  
  .header-logo-section {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .header-titles h1 {
    font-size: 1.85rem;
  }
  
  .weather-dashboard {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }
  
  .dashboard-divider {
    width: 100%;
    height: 1px;
  }
  
  .controls-section {
    padding: 16px;
  }
  
  .search-box input {
    padding: 14px 16px 14px 44px;
    font-size: 0.95rem;
  }
  
  .search-icon {
    left: 16px;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .tool-card {
    padding: 20px;
    min-height: auto;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .footer-right {
    flex-direction: column;
    gap: 6px;
  }
  
  .footer-divider {
    display: none;
  }
  
  .modal-content {
    padding: 24px;
  }
  
  .toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .resources-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   External Resources Section Styles
   ========================================================================== */
.external-resources-section {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeInUp var(--transition-normal) 0.25s backwards;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: -8px;
  margin-bottom: 8px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.resource-card:hover {
  transform: translateY(-4px);
  background-color: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-glass), 0 0 15px rgba(0, 242, 254, 0.08);
}

.resource-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.resource-icon-container {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.resource-card:hover .resource-icon-container {
  background: rgba(0, 242, 254, 0.07);
  color: var(--accent-cyan);
  border-color: var(--border-color-hover);
}

.external-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.resource-card:hover .external-arrow {
  color: var(--accent-cyan);
  transform: translate(2px, -2px);
}

.resource-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.resource-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
