/* ===================================================
   main.css – Grundläggande stilar för ljhwebb.com
   Version 1.0 – 2025-10-25
   ---------------------------------------------------
   Innehåller:
   - Basinställningar för typsnitt och layout
   - Bakgrundsfärger och avstånd
   - Sektioners standardutseende
   =================================================== */

/* -----------------------
   1. Grundinställningar
-------------------------- */

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: #1f2937;
    background-color: #f8fbff; /* ny ljusblå ton – nästan vit */
    scroll-behavior: smooth;
}


/* Ge hela sidan en mjuk fade-in när man laddar */
body {
    opacity: 0;
    animation: fadeIn 0.6s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* -----------------------
   2. Sektioner
-------------------------- */

section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}


/*------------------------
    Ett litet komplement
------------------------ */

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: #1f2937;
    background-color: #f8fbff; /* ny ljusblå ton – nästan vit */
    scroll-behavior: smooth;
}



/* -----------------------
   3. Rubriker
-------------------------- */

h1, h2, h3, h4 {
    font-weight: 700;
    color: #111827; /* mörkgrå för rubriker */
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.4rem;
}

/* -----------------------
   4. Länkar och knappar
-------------------------- */

a {
    color: #2563eb; /* blå */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #1d4ed8; /* mörkare blå */
}

/* Bootstrap-knappar override (matcha Tailwind-blå) */
.btn-primary {
    background-color: #2563eb;
    border: none;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

/* -----------------------
   5. Hero-section
-------------------------- */

.hero {
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    text-align: center;
    padding: 6rem 1rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero .btn {
    background-color: #ffffff;
    color: #1e3a8a;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
}

.hero .btn:hover {
    background-color: #f3f4f6;
}


/* --- Version badge --- */

/* --- Version badge (visas i toppmenyn) --- */
.version-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.version-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(30,58,138,0.15);
}

.version-badge .version-main {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.version-badge .version-name {
  font-size: 0.75rem;
  color: #1e40af;
  font-weight: 500;
  margin-top: 0.15rem;
}




/* -----------------------
   6. Footer
-------------------------- */

footer {
    background-color: #111827;
    color: #f9fafb;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.95rem;
}

footer p {
    margin: 0;
}

/* ===============================
   Justering – Tjänster-sektionen
   =============================== */
#tjanster .container {
  margin-left: 4%;
  margin-right: auto;
  text-align: left; /* lätt vänsterjustering */
}

#tjanster h2 {
  text-align: left;
  margin-left: 1rem;
}

#tjanster .grid {
  justify-content: flex-start;
  gap: 2rem;
  padding-left: 1rem;
}

#tjanster .p-6 {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#tjanster .p-6:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.1);
}

/* Lite space mellan flikar i admin_site.php -->
#versions .card {
  margin-bottom: 1.5rem;
}

#versions h5 {
  color: #2563eb;
  font-weight: 600;
}

#versions textarea {
  font-size: 0.9rem;
}

/* ===============================
   Layout – Tjänster + Versionsruta
   =============================== */
#tjanster {
  background: #ffffff;
}

#tjanster .services-wrapper {
  text-align: left;
}

#tjanster .version-box-container {
  margin-top: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f9fafc 0%, #ffffff 100%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 1rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#tjanster .version-box-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Gör sektionen luftigare på små skärmar */
@media (max-width: 992px) {
  #tjanster .version-box-container {
    position: static;
    margin-top: 3rem;
  }
}

.aqua-btn {
    background: linear-gradient(#8ecaff, #4da3f7);
    border: 1px solid #2e89e6;
    color: white;
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: 0.2s;
}

.aqua-btn:hover {
    background: linear-gradient(#a4d6ff, #5cb2ff);
}

/* ===========================================================
   Aqua-statuspanel – macOS-inspirerad
   Version 1.0
=========================================================== */

.aqua-status-panel {
    background: linear-gradient(#f7faff, #e4ecf8);
    border: 1px solid #d1dae6;
    border-radius: 16px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.10);
}

.aqua-status-bubble {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.6),
                inset 0 -1px 2px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Aqua-färgtema (ljusa, rena färger) */
.aqua-green {
    background: linear-gradient(#baf3ce, #8ddfb1);
    color: #0b3b22;
}

.aqua-blue {
    background: linear-gradient(#cfe7ff, #a9cfff);
    color: #06315c;
}

.aqua-yellow {
    background: linear-gradient(#fff4c7, #ffe594);
    color: #5c4700;
}

.aqua-gray {
    background: linear-gradient(#eceff2, #dcdfe3);
    color: #333;
}




