/*
Theme Name: NFC Profile
Description: WordPress theme for NFC digital business cards with fixed layout and ACF integration.
Version: 1.0.0
Author: Your Name
*/

:root{
  --bg: #262335;
  --bg-light: #C7C2CE;
  --card: rgba(255,255,255,.08);
  --card2: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.55);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --shadow-neu-inset: inset 4px 4px 8px rgba(0,0,0,.3), inset -4px -4px 8px rgba(255,255,255,.05);
  --shadow-neu-outset: 8px 8px 16px rgba(0,0,0,.3), -4px -4px 8px rgba(255,255,255,.05);
  --radius: 18px;
  --radius2: 14px;
  --gap: 14px;
  --max: 720px;
}

*{ box-sizing: border-box; }

/* Ensure full viewport background coverage */
html {
  height: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #C7C2CE 0%, #262335 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

body{
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  color: var(--text);
  background: linear-gradient(180deg, #C7C2CE 0%, #262335 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Override WordPress default wrapper backgrounds */
#page,
.site,
.site-content,
.content-area,
.site-main,
.entry-content,
.wp-site-blocks {
  background: transparent !important;
}

.entry-content {
  padding: 10px !important;
  background: transparent !important;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: 110px; /* bottom padding for floating buttons */
}

/* New Banner - Neumorphic */
.banner{
  position: relative;
  overflow: visible;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow-neu-outset);
  height: 200px;
  margin-bottom: 100px;
}

.banner::after{
  content:"";
  position:absolute; inset:0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.1), transparent 50%);
  pointer-events: none;
  border-radius: 12px;
  overflow: hidden;
}

/* Profile Section on Banner (LinkedIn style) */
.profile-section{
  position: absolute;
  bottom: -60px;
  left: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  z-index: 10;
}

.profile-avatar{
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  background: rgba(255,255,255,.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-neu-outset);
  flex-shrink: 0;
}

.profile-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-info{
  width: 100%;
  min-width: 0;
}

.profile-name{
  font-size: 35px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px 0;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-role{
  font-size: 18px;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card{
  margin-top: 13px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow-neu-outset);
  overflow: hidden;
}

/* Statement */
.statement{
  padding: 20px 20px 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.divider{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  margin: 2px 0;
}

/* Contact rows */
.info{
  padding: 18px 16px;
  gap: 12px;
      width: 100%;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row{
    width:100%;
  display:flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow-neu-inset);
  transition: all 0.2s ease;
}
.row:hover{
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow-neu-outset);
}

.ico{
  width: 42px; height: 42px;
  border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-neu-inset);
  flex: 0 0 auto;
}

.text{
  display:flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.label{
  font-size: 13px;
  color: var(--muted2);
}

.value{
  font-size: 20px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
}

.hint{
  font-size: 14px;
  color: var(--muted2);
  padding: 0 20px 18px;
  line-height: 1.5;
}

/* Socials - Neumorphic Circular Icons */
.socials{
  padding: 0 16px 20px;
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.social-icon{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow-neu-outset);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.social-icon:hover{
  background: rgba(255,255,255,.1);
  box-shadow: var(--shadow-neu-inset);
  text-decoration: none;
  transform: scale(1.05);
}
.social-icon svg{
  width: 22px;
  height: 22px;
  opacity: .9;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
}
.pill:hover{
  background: rgba(255,255,255,.08);
  text-decoration: none;
}

/* Floating buttons */
.fabbar{
  position: fixed;
  left: 0; right: 0; bottom: 16px;
  display:flex;
  justify-content:center;
  padding: 0 14px;
  z-index: 999;
  pointer-events: none;
}

.fabwrap{
  max-width: var(--max);
  width: 100%;
  display:flex;
  justify-content: space-between;
  gap: 12px;
  pointer-events: auto;
}
.fab svg {
    color: #fff  !important;
}
.fab path {
    stroke: #fff  !important;
}
.fab{
  flex: 1 1 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-neu-outset);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .2px;
  cursor: pointer;
  user-select: none;
  color: var(--text);
  transition: all 0.2s ease;
}
.fab:hover{ 
  background: rgba(255,255,255,.12);
  box-shadow: var(--shadow-neu-inset);
}

.fab.primary{
  background: #1eba4d;
  border-color: rgba(37, 211, 102, .35);
  box-shadow: 8px 8px 16px rgba(0,0,0,.3), -4px -4px 8px rgba(37, 211, 102, .2);
}
.fab.primary:hover{
  background: #1ea84d;
  box-shadow: inset 4px 4px 8px rgba(0,0,0,.2), inset -4px -4px 8px rgba(37, 211, 102, .3);
}

/* Mobile Responsive */
@media (max-width: 768px){
  .wrap{
    padding: 15px;
    padding-bottom: 110px;
  }

  .banner{
    height: 160px;
    margin-bottom: 85px;
    border-radius: 10px;
    overflow: visible;
  }

  .profile-section{
    left: 15px;
    right: 15px;
    bottom: -55px;
    gap: 10px;
  }

  .profile-avatar{
    width: 100px;
    height: 100px;
    border: 3px solid var(--bg);
  }

  .profile-name{
    font-size: 30px;
  }

  .profile-role{
    font-size: 16px;
  }

  .card{
    margin-top: 13px;
    border-radius: 18px;
  }

  .statement{
    padding: 18px 18px 16px;
    font-size: 15px;
  }

  .info{
    padding: 16px 14px;
    gap: 10px;
  }

  .row{
    padding: 12px 12px;
    gap: 12px;
  }

  .ico{
    width: 38px;
    height: 38px;
  }

  .label{
    font-size: 12px;
  }

  .value{
    font-size: 20px;
  }

  .pill{
    padding: 10px 14px;
    font-size: 14px;
  }
}

@media (max-width: 480px){
  .banner{
    height: 140px;
    margin-bottom: 75px;
    overflow: visible;
  }

  .profile-section{
    bottom: -50px;
    gap: 8px;
  }

  .profile-avatar{
    width: 90px;
    height: 90px;
    border: 3px solid var(--bg);
  }

  .profile-name{
    font-size: 30px;
  }

  .profile-role{
    font-size: 14px;
  }

  .statement{
    font-size: 14px;
    padding: 16px 16px 14px;
  }

  .value{
    font-size: 20px;
  }

  .fab{ 
    padding: 13px 12px; 
    font-size: 13px; 
  }
}

@media (max-width: 380px){
  .profile-avatar{
    width: 80px;
    height: 80px;
  }

  .profile-name{
    font-size: 30px;
  }

  .profile-role{
    font-size: 13px;
  }
}

/* Simple inline SVG sizing */
svg{ width: 18px; height: 18px; display:block; opacity: .95; }
.ico svg{ width: 18px; height: 18px; opacity: .9; }
.pill svg{ width: 16px; height: 16px; opacity: .9; }
.social-icon svg{ width: 22px; height: 22px; opacity: .9; }
main {
    margin-top: 0px !important;
}
