/*
Theme Name: Aina Saga Child
Theme URI: https://example.com/aina-saga-child
Description: Child theme for Aina Saga — contains site-specific styles and PMPro template overrides.
Author: Aina Saga
Version: 1.0.0
Template: kadence
Text Domain: aina-saga-child
*/

/* -------------------------
   Aina Saga — PMPro & Account CSS (moved from Additional CSS)
   This file contains the full responsive styling for membership pages.
   ------------------------- */

:root{
  --aina-core-1: #9b3cff;     /* purple */
  --aina-core-2: #ff0099;     /* pink */
  --aina-dark:   #5a00b8;     /* dark purple for action bar */
  --aina-text-lav: #fff0f5;   /* light lav text */
  --lav-border: rgba(178,129,255,0.35);
  --lav-shadow: rgba(178,129,255,0.18);
  --input-border: #d9c7ff;
  --input-focus: rgba(155,60,255,0.25);
  --card-bg: #fff;
  --card-radius: 18px;
  --max-width: 1000px;
}

/* Global container / centering */
.pmpro_account,
.pmpro_member_profile_edit_wrap,
#pmpro_account,
#pmpro_account-profile,
#pmpro_account-membership,
.pmpro_form,
.pmpro_card,
.pmpro_box,
.pmpro_card_box {
  max-width: var(--max-width) !important;
  margin: 40px auto !important;
  padding: 0 20px !important;
  box-sizing: border-box;
}

/* Unified card look */
.pmpro_card,
.pmpro_box,
.pmpro_card_box,
.pmpro_account-membership .pmpro_box,
.pmpro_section .pmpro_box {
  background: var(--card-bg) !important;
  border: 2px solid var(--lav-border) !important;
  border-radius: var(--card-radius) !important;
  padding: 36px !important;
  box-shadow: 0 16px 36px var(--lav-shadow) !important;
  margin-bottom: 40px !important;
}

/* make profile card content flow correctly */
.pmpro_account-profile .pmpro_card { display: block !important; }

/* Section / Titles (centered) */
.pmpro_section_title,
.pmpro_section h2,
#pmpro_account-membership h2,
#pmpro_account-profile h2,
.pmpro_account h2,
.pmpro_box h2 {
  text-align: center !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  letter-spacing: 1px;
  margin: 30px 0 !important;
  color: #221a26 !important;
}

/* Titles inside cards (slightly smaller) */
.pmpro_card h3,
.pmpro_card h2 {
  text-align: left !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  color: var(--aina-core-1) !important;
  margin-bottom: 18px !important;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* Text + label styling */
.pmpro_account-profile strong,
.pmpro_account-profile b,
.pmpro_box strong,
.pmpro_box b {
  color: var(--aina-core-1) !important;
  font-weight: 700 !important;
}

.pmpro_form label,
.pmpro_member_profile_edit_wrap label {
  display: block !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  color: #333 !important;
  font-size: 15px;
}

/* Inputs — white inside, lav border */
.pmpro_form input[type="text"],
.pmpro_form input[type="email"],
.pmpro_form input[type="password"],
.pmpro_member_profile_edit_wrap input[type="text"],
.pmpro_member_profile_edit_wrap input[type="email"],
.pmpro_form select,
.pmpro_form textarea {
  width: 100% !important;
  padding: 12px 16px !important;
  background: #ffffff !important;
  border: 2px solid var(--input-border) !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  transition: border-color .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
}

/* Focus */
.pmpro_form input:focus,
.pmpro_member_profile_edit_wrap input:focus,
.pmpro_form textarea:focus,
.pmpro_form select:focus {
  border-color: var(--aina-core-1) !important;
  box-shadow: 0 0 0 6px var(--input-focus) !important;
  outline: none !important;
}

/* Buttons (primary / gradient) */
.pmpro_btn,
.pmpro_btn-submit,
.pmpro_submit input[type="submit"],
.pmpro_checkout .pmpro_btn-submit,
.pmpro_actions_nav a.pmpro_btn,
.pmpro_actions_nav a,
input[type="submit"].pmpro_btn,
input[type="button"].pmpro_btn,
button.pmpro_btn,
#loginform input[type="submit"],
.pmpro_form input[type="submit"],
.pmpro_form .pmpro_btn,
.pmpro_login_wrap input[type="submit"] {
    background: linear-gradient(90deg, #ff0099, #9b3cff) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 8px 20px rgba(155,60,255,0.25) !important;
    transition: 0.2s ease !important;
}

/* Hover effect */
.pmpro_btn:hover,
.pmpro_btn-submit:hover,
.pmpro_form input[type="submit"]:hover,
.pmpro_actions_nav a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(155,60,255,0.35) !important;
}

/* Cancel / secondary */
.pmpro_btn-cancel,
a.pmpro_btn-cancel,
.pmpro_actionlinks a.pmpro_link_lostpassword,
.pmpro_actionlinks a[href*="logout"] {
  background: #eee !important;
  color: #222 !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  font-weight: 600 !important;
}

.pmpro_btn-cancel:hover { background: #dedede !important; }

/* My Account action bar (Edit Profile / Change / Logout) */
.pmpro_account-profile .pmpro_actionlinks,
.pmpro_actionlinks {
  background: var(--aina-dark) !important;
  color: var(--aina-text-lav) !important;
  padding: 16px 18px !important;
  border-radius: 12px !important;
  margin-top: 22px !important;
  display: flex !important;
  gap: 18px !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  box-shadow: 0 8px 28px rgba(91,0,150,0.08) !important;
  border: 1px solid rgba(255,240,245,0.06) !important;
}

.pmpro_actionlinks a {
  color: var(--aina-text-lav) !important;
  font-size: 15px !important;
  text-decoration: none !important;
  padding: 6px 10px !important;
  display: inline-block !important;
}

/* show visual dividers between links if you want */
.pmpro_actionlinks a + a::before {
  content: "|" ;
  color: rgba(255,240,245,0.5);
  margin: 0 10px;
}

/* Tables (orders/subs) — subtle lav header */
.pmpro_table th {
  background: #fbf7ff !important;
  color: var(--aina-core-1) !important;
  font-weight: 700 !important;
  padding: 12px !important;
  text-align: left;
}

.pmpro_table td {
  padding: 12px !important;
  border-top: 1px solid #efe6ff !important;
}

.pmpro_table tr:nth-child(even) {
  background: #fffafc !important;
}

/* Section spacing / widths */
#pmpro_account-profile .pmpro_card,
#pmpro_account-membership .pmpro_box,
.pmpro_card,
.pmpro_box {
  max-width: calc(var(--max-width) - 120px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 34px !important;
}

/* Titles centered (bigger) */
.pmpro_section_title,
#pmpro_account-membership h2,
#pmpro_account-profile h2 {
  text-align: center !important;
  font-size: 40px !important;
  margin-bottom: 26px !important;
}

/* Minor UI / spacing polish */
.pmpro_form .pmpro_form_field,
.pmpro_member_profile_edit_wrap .pmpro_form_field {
  margin-bottom: 20px !important;
}

/* avatar/welcome row align */
.pmpro_account-profile .pmpro_card .avatar,
.pmpro_account-profile .pmpro_card .pmpro_info {
  vertical-align: middle;
}

/* ============================================
   Aina Saga — Password Toggle Eye Button
   ============================================ */

.aina-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.aina-password-toggle svg {
    width: 20px;
    height: 20px;
    fill: #9b3cff; /* Aina purple */
    opacity: 0.8;
}

.aina-password-toggle:hover svg {
    opacity: 1;
}

.pmpro_login_wrap .pmpro_input,
.pmpro_input {
    position: relative !important;
}



/* Responsive (mobile-first friendly) */
@media (max-width: 1024px) {
  :root{ --max-width: 920px; }
  .pmpro_section_title { font-size: 34px !important; }
}

@media (max-width: 768px) {

  :root{ --max-width: 760px; }

  .pmpro_card,
  .pmpro_box,
  #pmpro_account-profile .pmpro_card,
  #pmpro_account-membership .pmpro_box {
      padding: 20px !important;
      max-width: calc(100% - 40px) !important;
      margin: 18px auto !important;
  }

  .pmpro_section_title,
  .pmpro_card h2 {
      font-size: 26px !important;
      text-align: center !important;
  }

  .pmpro_form input[type="text"],
  .pmpro_form input[type="email"],
  .pmpro_form select,
  .pmpro_form textarea,
  .pmpro_btn,
  .pmpro_btn-cancel {
      width: 100% !important;
      display: block !important;
  }

  .pmpro_actionlinks {
      flex-direction: column !important;
      gap: 12px !important;
      padding: 14px !important;
  }

  .pmpro_actionlinks a + a::before { display: none; }

  /* make table scrollable on small screens */
  .pmpro_table { display: block; overflow-x: auto; width: 100%; }

}

/* extreme small phones */
@media (max-width: 420px) {
  .pmpro_section_title { font-size: 22px !important; }
  .pmpro_card h2 { font-size: 20px !important; }
