/* 
  styles-card.css
  Míriam Domínguez Martínez - Business Card
*/

/*
   RESET
*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* END RESET */


/* =================
   0. FONTS
   =================
*/

/* Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('font/Inter-Light.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('font/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('font/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('font/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('font/Inter-Bold.woff2') format('woff2');
}

/* Dancing Script */
@font-face {
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('font/DancingScript-Bold.woff2') format('woff2');
}

/* END FONTS */


/* =================
   1. CSS VARIABLES
   =================
*/
:root {
  --bg-outer:       #ffffff;
  --bg-card:        #ffffff;
  --bg-card-inner:  #f5f6f8;
  --bg-nav:         #1e2330;
  --text-primary:   #1a1f2e;
  --text-secondary: #6b7280;
  --text-muted:     #9ca3af;
  --border:         #e5e7eb;
  --transition:     0.3s ease;
}
/* END CSS VARIABLES */


/* =================
   2. BASE
   =================
*/
html {
  font-family: 'Inter', sans-serif;
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  display: none;
}

body {
  background-color: var(--bg-outer);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
/* END BASE */


/* =================
   3. CARD
   =================
*/
.card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--border);
  overflow: hidden;
}
/* END CARD */


/* =================
   4. CARD HEADER
   =================
*/
.card-header {
  background: var(--bg-nav);
  padding: 28px 32px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Avatar initials */
.avatar-initials {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2a3045;
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Dancing Script', cursive;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

/* If photo, swap .avatar-initials for an <img class="avatar"> */
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.header-text {
  flex: 1;
  min-width: 0;
}

.card-name {
  font-size: 18px;
  font-weight: 700;
  color: #e8eaf0;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.card-title {
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(200, 206, 220, 0.65);
  letter-spacing: 0.01em;
}

/* END CARD HEADER */


/* =================
   5. CARD BODY
   =================
*/
.card-body {
  padding: 24px 32px 28px;
}

/* Description, same look as .projects-intro */
.card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  padding: 16px 18px;
  background: var(--bg-card-inner);
  border-radius: 12px;
  margin-bottom: 20px;
}

/* Tags, same as .about-tag */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.card-tag {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card-inner);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}

/* Divider */
.card-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}
/* END CARD BODY */


/* =================
   6. CARD LINKS
   =================
*/
.card-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-card-inner);
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition),
              transform 0.15s, box-shadow 0.15s;
}

.card-link:hover {
  background: var(--border);
  transform: translateX(3px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* Icon box */
.link-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

/* img SVGs, same technique as .footer-icon-img in portfolio */
.link-icon-img {
  width: 16px;
  height: 16px;
  display: block;
  opacity: 0.55;
  transition: opacity var(--transition);
}

.card-link:hover .link-icon-img {
  opacity: 1;
}

/* Link text */
.link-info {
  flex: 1;
  min-width: 0;
}

.link-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.link-value {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Arrow */
.link-arrow {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition), transform 0.15s;
}

.card-link:hover .link-arrow {
  color: var(--text-secondary);
  transform: translateX(2px);
}
/* END CARD LINKS */


/* =================
   7. CARD FOOTER
   =================
*/
.card-footer {
  padding: 16px 32px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Signature, same font as .signature in portfolio footer */
.signature {
  font-family: 'Dancing Script', cursive;
  font-size: 18px;
  color: var(--text-muted);
}

.card-url {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.card-url:hover {
  color: var(--text-secondary);
}
/* END CARD FOOTER */


/* =================
   8. RESPONSIVE
   =================
*/

/*
   MOBILE
   The card fills the entire screen
*/

@media (max-width: 768px) {

  /* Body: no padding, card fills viewport */
  body {
    padding: 0;
    align-items: flex-start;
  }

  /* Card stretches to full screen */
  .card {
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
  }

  /* Header becomes a centred banner */
  .card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 24px 36px;
    gap: 16px;
  }

  .avatar-initials,
  .avatar {
    width: 80px;
    height: 80px;
    font-size: 28px;
  }

  .card-name {
    font-size: 20px;
  }

  .card-title {
    font-size: 13px;
  }

  /* Body: grows to fill remaining space */
  .card-body {
    flex: 1;
    padding: 28px 24px 24px;
  }

  .card-desc {
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 18px;
  }

  .card-tags {
    justify-content: center;
    margin-bottom: 20px;
  }

  .card-divider {
    margin-bottom: 20px;
  }

  /* Links: slightly taller tap targets */
  .card-links {
    gap: 10px;
  }

  .card-link {
    padding: 12px 16px;
  }

  .link-icon {
    width: 34px;
    height: 34px;
  }

  .link-icon-img {
    width: 17px;
    height: 17px;
  }

  .link-label {
    font-size: 13px;
  }

  .link-value {
    font-size: 11.5px;
  }

  /* Footer: pinned to bottom */
  .card-footer {
    padding: 16px 24px 28px;
  }
}

/* Very small phones, just tighten spacing slightly */
@media (max-width: 360px) {
  .card-header {
    padding: 36px 20px 28px;
  }

  .card-body {
    padding: 22px 20px 20px;
  }

  .card-footer {
    padding: 14px 20px 24px;
  }

  .card-name {
    font-size: 18px;
  }
}
/* END RESPONSIVE */
