@import url('https://fonts.googleapis.com/css2?family=Baskervville&display=swap');

:root {
  --font-base: 1rem;
  --font-large: 3rem;
  --grey: #999;
  --grey-dark: #666;
}

body {
  margin: 0;
  font-family: 'Baskervville', serif;
  background: #fdfdfd;
  color: var(--grey-dark);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  width: 100%;
  padding: 40px 20px;
}

h1 {
  font-size: var(--font-large);
  letter-spacing: 2px;
  color: var(--grey-dark);
  text-transform: uppercase;
}


h2 {
  flex-grow: 1;
  text-align: center;
  margin: 0 0 20px 0;
  font-size: 30px;
  color: var(--grey-dark);
}

.tagline {
  font-size: calc(var(--font-base) + 0.2rem);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.actions {
  margin-top: 2rem;
}

.btn {
  padding: 12px 24px;
  margin: 10px 5px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: var(--grey);
  color: white;
}

.btn-secondary {
  background-color: white;
  color: #222;
  border: 1px solid #ccc;
}

.btn:hover {
  background-color: #eee;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"] {
  padding: 12px 14px;
  margin: 10px 0;
  width: 100%;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.input-group {
  position: relative;
  margin-bottom: 16px;
}

.remove-btn {
  position: absolute;
  right: -12px;
  top: -12px;
  background: white;
  border: 2px solid #999;
  color: #999;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 16px;
  cursor: pointer;
}

.container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.left, .right {
  padding: 60px 40px;
  position: relative;
}

.left {
  width: 40%;
  background: rgba(245, 245, 247, 0.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px 40px 60px 40px;
  margin: 0;
  box-sizing: border-box;
}

.right {
  width: 60%;
}

.title {
  font-size: 35px;
  text-align: center;
   margin-top: 20px;
  margin-bottom: 20px;
}

.section-wrapper {
  width: 100%;
}

.section-header {
  text-align: center;
  margin-top: 25px;
  margin-left: -40px;   /* cancel left padding from .left */
  margin-right: -40px;  /* cancel right padding from .left */
  padding-left: 40px;   /* keep text aligned */
  padding-right: 40px;  /* keep spacing before border ends */
  box-sizing: border-box;
  border-bottom: none;
}

.routine-row {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding: 10px 0;
}

.routine-row::-webkit-scrollbar {
  display: none;
}

.product {
  width: 200px; /* was 160px */
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}


.community-title {
  font-size: 20px;
  margin-top: 48px;
  margin-bottom: 12px;
  font-weight: normal;
}

.action-btn {
  display: block;
  text-decoration: none;
  border: 1px solid var(--grey);
  background-color: white;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 16px;
  margin: 20px auto 10px;
  color: var(--grey);
  text-align: center;
  width: fit-content;
}


.logout-btn {
  font-size: 14px;
  padding: 6px 16px;
  border: 1px solid var(--grey);
  border-radius: 999px;
  background: white;
  color: var(--grey);
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 40px;
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
    align-items: stretch;
  }
  .container {
    flex-direction: column;
  }
  .left, .right {
    width: 100%;
    padding: 30px;
  }
  .title {
    font-size: 48px;
  }
  h1 {
    font-size: 25rem;
  }
}


.title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.save-btn {
  background: white;
  color: var(--grey-dark);
  border: 1px solid var(--grey);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.save-btn:hover {
  background: #f0f0f0;
}

.skinshare-title {
  font-size: 55px;
  font-weight: bold;
  letter-spacing: 1px;
}

.back-link {
  background: none;
  border: none;
  color: var(--grey-dark);
  cursor: pointer;
  font-family: 'Baskervville', serif;
  font-size: 16px;
}
.back-link:hover {
  text-decoration: underline;
}

a.back-link,
a.back-link:visited,
a.back-link:hover,
a.back-link:active {
  color: #999 !important;
  text-decoration: none !important;
}

a.btn {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.btn.back-btn,
.btn.signup-btn {
  background-color: #fff;
  color: #666 !important;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
  display: inline-block;
  text-align: center;
}

.btn.back-btn:hover,
.btn.signup-btn:hover {
  background-color: #f0f0f0;
  border-color: #bbb;
  color: #666 !important;
}


/* SkinShare username link (right-hand feed) */
.account-card .name-link {
  text-decoration: none;   /* remove underline */
  color: inherit;          /* keep same text color */
}
.account-card .name-link:hover,
.account-card .name-link:focus,
.account-card .name-link:active,
.account-card .name-link:visited {
  text-decoration: none;   /* stay off on hover/focus/visited */
  color: inherit;
}


.name-link { text-decoration: none; color: inherit; }
.name-link:hover { text-decoration: underline; }

/* Mobile: stack columns and shrink tiles slightly */
@media (max-width: 900px) {
  .container { display: grid; grid-template-columns: 1fr; gap: 24px; }
  .left { order: 1; }
  .right { order: 2; }
  .top-bar { position: static; padding: 0 16px; }
}

@media (max-width: 640px) {
  .title, .skinshare-title { font-size: 28px; }
  .action-btn, .logout-btn, .ghost-btn { padding: 8px 12px; font-size: 14px; }
  .routine-thumb,
  .account-card .thumb { width: 100px; height: 100px; }
  .account-card .name { font-size: 110%; }
  .left, .right { padding: 0 12px; }
}
