/* Consolidated styles moved from templates
   Location: /app/web/view/components/main_layout.html and /app/web/view/index.html
   Edit this file to update global styles. */

:root{
  --font-sans: 'Inter', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  --font-plus: 'Plus Jakarta Sans', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  --bg:#0f1724; --bg-soft:#071127; --muted:#9aa4b2; --accent:#ff6fa3; --glass-bg: rgba(255,255,255,0.02);
  --card-border: rgba(255,255,255,0.03);
}

/* Local font-face (optional local hosting) */
@font-face {
  font-family: 'PlusJakartaLocal';
  src: url('/assets/fonts/PlusJakartaSans-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NotoSansSCLocal';
  src: url('/assets/fonts/NotoSansSC-Regular.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

body{
  font-family: var(--font-sans);
  color: #e6eef6;
  background: linear-gradient(180deg,var(--bg),var(--bg-soft));
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Helper classes for font switching */
.font-inter { --font-sans: 'Inter', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; }
.font-plusjakarta { --font-sans: var(--font-plus); }
.font-local.fonts-loaded { --font-sans: 'PlusJakartaLocal', 'NotoSansSCLocal', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; }

/* Header styles */
.site-header .navbar{ background: rgba(255,255,255,0.02); backdrop-filter: blur(6px); border-radius:10px; padding:6px 0; min-height:64px; }
.site-header .navbar-brand{ color: #fff; text-decoration:none; }
.site-header .navbar-brand img{ height:34px; }
.site-header .nav-link{ color: rgba(255,255,255,0.85); padding:6px 10px; }
.site-header .nav-link:hover{ color:#fff; }
.site-header .search-form.w-75{ max-width:680px; }
.site-header .search-form .form-control{ background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.04); color:#fff; border-radius:8px; padding:8px 12px; }
.site-header .search-form .btn-primary{ background: var(--accent); border: none; }
.site-header .search-form.mobile-show{ display:flex; gap:8px; padding:8px 0; }
@media (max-width:767px){
  .site-header .search-form.w-75{ display:none; }
}

/* Tool card styles */
.tool-card {
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    transition: all 0.28s ease;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
    overflow: hidden;
    color: inherit;
}
.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(2,6,23,0.6);
}

.tool-links a.hover-move {
    transition: transform 0.18s ease, color 0.18s ease;
}
.tool-links a.hover-move:hover { transform: translateX(8px); color: #fff; }

.icon-wrapper { width: 56px; height: 56px; background: rgba(255,255,255,0.06); border-radius: 12px; display:flex; align-items:center; justify-content:center; }

/* Layout helpers */
@media (max-width: 768px) { .tool-card { margin: 0 0.75rem; } }

/* Hero + search */
.home-hero{ background:linear-gradient(180deg,var(--bg),#071127); padding:48px 0; border-radius:8px; color:#fff; margin-bottom:24px; }
.hero-inner{ max-width:980px; margin: 0 auto; padding: 0 12px;}
.hero-title{ font-size:2.2rem; font-weight:700; margin-bottom:6px; }
.hero-sub{ color: var(--muted); margin-bottom:12px; }
.search-form{ display:flex; gap:8px; max-width:740px; }
.search-form input{ flex:1; padding:12px 16px; border-radius:10px; border:1px solid rgba(255,255,255,0.06); background:transparent; color:#fff; }
.search-form input::placeholder{ color:rgba(255,255,255,0.45); }
.search-form button{ background:var(--accent); border:none; color:#fff; padding:10px 16px; border-radius:10px; }
.quick-link{ color:rgba(255,255,255,0.85); text-decoration:none; }
@media (max-width:576px){ .hero-title{ font-size:1.6rem } .search-form{ flex-direction:column } .search-form button{ width:100% } }

/* Category cards */
.cat-card{ background:linear-gradient(180deg, rgba(255,255,255,0.02), transparent); border-radius:12px; border:1px solid rgba(255,255,255,0.03); color:#e6eef6; }
.cat-head .cat-icon{ width:44px; height:44px; border-radius:10px; background:linear-gradient(135deg,var(--accent),#7b61ff); }
.cat-links a{ display:block; color:var(--muted); padding:6px 0; text-decoration:none; transition:all .18s; }
.cat-links a:hover{ color:#fff; transform:translateX(6px); }
.cat-more{ color:var(--accent); text-decoration:none; }

/* Full height layout */
html, body { height: 100%; }
body { display:flex; flex-direction:column; min-height:100vh; }
.site-main { flex:1 0 auto; padding-top:72px; }
.site-footer { margin-top:auto; padding:20px 0; }

/* Footer */
.site-footer { background: transparent; }
.site-footer a { color: rgba(255,255,255,0.9); text-decoration:none; }

/* Developer font switcher (dev only) */
#font-switcher select{ padding:8px; border-radius:8px; background:rgba(0,0,0,0.35); color:#fff; border:1px solid rgba(255,255,255,0.06); }

/* Layout wrapper and sidebar/content/aside styles */
.layout-wrapper{ max-width:1200px; margin:0 auto; }
.sidebar{ background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); border-radius:10px; padding:12px; color:#e6eef6; height:100%; min-height:160px; box-shadow: 0 8px 24px rgba(2,6,23,0.4); }
.sidebar .brand img{ height:28px }
.sidebar .search-mini .form-control{ background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.04); color:#fff}
.sidebar .nav-link{ color:var(--muted); padding:6px 8px; border-radius:8px }
.sidebar .nav-link:hover{ color:#fff; background: rgba(255,255,255,0.02); }

.content{ min-height:60vh; }
.page-hero{ background: transparent; padding:6px 0 12px 0; }

.aside-right{ }
.aside-widgets .card{ background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent); border-radius:10px; border:1px solid rgba(255,255,255,0.03); color:#e6eef6 }
.aside-widgets a{ color:var(--muted) }
.aside-widgets a:hover{ color:#fff }

@media (max-width:767px){
  .layout-wrapper .row > aside:first-child{ display:none; }
  .aside-right{ display:none; }
}

/* Each layout improvements */
.each-layout{ max-width:1200px; margin:0 auto }
.layout-header{ border-bottom:1px solid rgba(255,255,255,0.03); padding-bottom:12px }
.sidebar-wrapper{ padding:0 }
#sidebar{ transition: transform .22s ease, opacity .18s ease; }
#sidebar.open{ position:fixed; top:64px; left:12px; right:12px; z-index:1050; transform:translateY(0); background:linear-gradient(180deg, rgba(255,255,255,0.02), transparent); border-radius:10px; box-shadow:0 18px 40px rgba(2,6,23,0.6); }

.content-card{ background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius:12px; border:1px solid rgba(255,255,255,0.03); }
.main-content-area{ min-height:40vh }

/* Breadcrumb tweaks */
.breadcrumb a{ color:var(--muted) }

/* Sidebar toggle */
.sidebar-toggle{ border-color: rgba(255,255,255,0.06); }

/* Resources page styles */
.resources-hero { padding: 16px 0; }
.resources-hero .chip{ display:inline-block; padding:6px 10px; border-radius:999px; background:rgba(255,255,255,0.02); color:var(--muted); font-size:0.85rem; margin-right:8px; text-decoration:none; }
.resources-hero .chip.active{ background:linear-gradient(90deg,var(--accent),#7b61ff); color:#fff; }

.resources-list-box{ display:grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap:1.25rem; }
.resource-item{ background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius:10px; padding:10px 12px; border:1px solid rgba(255,255,255,0.03); transition: transform .14s ease, box-shadow .14s ease; }
.resource-item:hover{ transform: translateY(-4px); box-shadow: 0 10px 24px rgba(2,6,23,0.55); }
.resource-title a{ color:#fff; text-decoration:none; font-weight:600; font-size:1rem; }
.resource-tag{ color:var(--muted); font-size:0.82rem; }
.resource-link .btn{ padding:6px 10px; }
/* removed long description display to keep list simple (details in detail page) */

.pagination-list .btn{ padding:6px 10px; }

@media (max-width: 768px){
  .resources-list-box{ grid-template-columns: 1fr; }
  .resources-hero .search-form{ width:100%; }
}


/* Creative category icons */
.cat-icon{ width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:#fff; flex-shrink:0; box-shadow: 0 6px 18px rgba(2,6,23,0.45); transition: transform .18s ease, box-shadow .18s ease; }
.cat-icon svg{ width:22px; height:22px; }
.cat-card:hover .cat-icon{ transform: translateY(-6px); box-shadow: 0 12px 30px rgba(2,6,23,0.6); }

.cat-icon--image{ background: linear-gradient(135deg,#ff9aa2,#ff6fa3); }
.cat-icon--docs{ background: linear-gradient(135deg,#8ad2ff,#6fc4ff); }
.cat-icon--code{ background: linear-gradient(135deg,#a29bff,#7b61ff); }
.cat-icon--ai{ background: linear-gradient(135deg,#6fffd3,#7bf0ff); }

/* Slightly larger icons on larger screens */
@media(min-width:992px){ .cat-icon{ width:56px;height:56px } .cat-icon svg{ width:26px;height:26px } }

