/* ===========================
   BASSTILAR
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; */
    background: #f9f9fb;
    color: #1d1d1f;
    line-height: 1.6;
}

/* ===========================
   NAVIGATION
=========================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.6);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.brand {
  font-weight: 700;
  color: #111;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 6px;
}

.nav-links a:hover {
  background: rgba(0,0,0,0.04);
}

/* Mobile toggle */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  width: 36px;
  height: 24px;
  cursor: pointer;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: #111;
  height: 2px;
  border-radius: 2px;
  position: relative;
}
.nav-toggle-label span { top: 10px; }
.nav-toggle-label span::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; }
.nav-toggle-label span::after { content: ''; position: absolute; top: 8px; left: 0; right: 0; }

@media (max-width: 700px) {
  .nav-toggle-label { display: block; }
  .nav-links { position: absolute; right: 20px; top: 60px; flex-direction: column; background: rgba(255,255,255,0.95); padding: 10px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); display: none; }
  .nav-links a { padding: 10px 14px; }
  .nav-toggle:checked + .nav-toggle-label + .nav-links { display: flex; }
}

/* ===========================
   HERO-SEKTION
=========================== */
.personal-hero {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.hero-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.hero-text h1 {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
}

.hero-text p {
    max-width: 600px;
    font-size: 1.1rem;
    color: #444;
}

/* ===========================
   SEKTIONER
=========================== */
.personal-section {
    max-width: 1100px;
    margin: 3.5rem auto;
    padding: 0 1.5rem;
}

.personal-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* ===========================
   GRID KORT
=========================== */
.personal-grid {
    display: grid;
    gap: 1.8rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.personal-card {
    background: #fff;
    padding: 1.3rem;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.personal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.personal-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1rem;
}

.personal-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}


/* ===========================
   FAVORITER-LISTA
=========================== */
.favorites-list {
    list-style: none;
    background: #fff;
    padding: 1.8rem;
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    font-size: 1.1rem;
}

.favorites-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
}

.favorites-list li:last-child {
    border-bottom: none;
}

/* ===========================
   MÅLKORT
=========================== */
.goals {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.goal {
    background: #fff;
    padding: 1.6rem;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.25s ease;
}

.goal:hover {
    transform: translateY(-4px);
}

.goal h3 {
    margin-bottom: 0.6rem;
}

/* ===========================
   KONTAKT-BUBBLA
=========================== */
/* Contact bubble (fixed bottom-right) */
.contact-bubble {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  z-index: 60;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.contact-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.contact-bubble:hover,
.contact-bubble:focus {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
}

@media (max-width: 420px) {
  .contact-bubble { width: 48px; height: 48px; right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-bubble { transition: none; }
}

/* Tooltip bubble */
.contact-tooltip {
    position: fixed;
    right: 90px;               /* Justering från kontakt-knappen */
    bottom: 30px;
    background: white;
    padding: 10px 15px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    border: 1px solid #e5e5e5;
}

/* Small triangle */
.contact-tooltip::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: 12px;
    width: 0;
    height: 0;
    border-left: 8px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* Show tooltip when hovering over the bubble (OR JS toggle) */
.contact-bubble + #contact-tooltip {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===========================
   KONTAKTMODAL
=========================== */
.contact-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.contact-modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.contact-modal-panel {
    background: #fff;
    width: 90%;
    max-width: 380px;
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    transform: scale(0.92);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
}

.contact-modal[aria-hidden="false"] .contact-modal-panel {
    transform: scale(1);
    opacity: 1;
}

.contact-close {
    float: right;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    margin-top: -10px;
}

.contact-content h3 {
    margin-bottom: 1rem;
}

.contact-content p {
    margin-bottom: 0.6rem;
}

.small {
    font-size: 0.85rem;
    color: #666;
}

/* ===========================
   MOBILANPASSNING
=========================== */
@media (max-width: 750px) {
    .personal-hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        width: 220px;
        height: 220px;
    }
}