/*
Theme Name: Vires Software Organizations Backend
Author: Vires Software
Description: WordPress admin and REST API for Vires Software organizations.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vires-orgs
*/

/* Normalize (public theme shell only; wp-admin styles live in admin/admin.css) */
body {
  margin: 0;
  font-family: "Roboto", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Orbitron", sans-serif;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
  box-sizing: border-box;
}

/* WooCommerce Checkout */
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted, 
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
  background: white;
}

.wc-block-components-checkout-place-order-button {
  background-color: #0091ff;
  color: white;
  font-weight: bold;
  font-family: 'Orbitron';
  text-transform: uppercase;
  letter-spacing: 2pt;
  font-size: 20px;
}

.wp-block-woocommerce-checkout-order-summary-block {
  background: white;
}

/* WooCommerce Order Received (Thank You) — dark, vires-web branded.
   Body class added by vires_wc_order_received_body_class() in includes/woocommerce.php. */
body.vires-thankyou {
  background-color: #000;
  background-image:
    radial-gradient(125% 55% at 50% 0%, rgba(0, 145, 255, 0.12), transparent 60%),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='56'%20height='100'%3E%3Cpath%20d='M28%2066L0%2050L0%2016L28%200L56%2016L56%2050L28%2066L28%20100'%20fill='none'%20stroke='%230091ff'%20stroke-opacity='0.06'%20stroke-width='2'/%3E%3Cpath%20d='M28%200L28%2034L0%2050L0%2084L28%20100L56%2084L56%2050L28%2034'%20fill='none'%20stroke='%230091ff'%20stroke-opacity='0.06'%20stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-size: 100% 720px, 168px 300px;
  background-position: 50% 0, 0 0;
  color: #e4e4e7;
}

body.vires-thankyou .entry-header,
body.vires-thankyou .entry-title,
body.vires-thankyou .woocommerce-breadcrumb {
  display: none;
}

.vires-order-received {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 760px;
  margin: 2.5rem auto 4rem;
}

/* Brand lockup: steel-bear mark + Orbitron VIRES wordmark (matches vires-web header) */
.vires-order-received__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.vires-order-received__brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.vires-order-received__brand-name {
  font-family: "Orbitron", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

.vires-order-received__card {
  background: #0b0b0c;
  border: 1px solid #27272a;
  border-radius: 0.9rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 24px 48px -28px rgba(0, 0, 0, 0.9);
  padding: 2rem;
  box-sizing: border-box;
}

/* Lead card carries the accent ring, echoing vires-web's featured product cards */
.vires-order-received__card--hero {
  border-color: rgba(0, 145, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(0, 145, 255, 0.2), 0 0 44px -12px rgba(0, 145, 255, 0.35);
}

.vires-order-received__card--failed {
  border-color: rgba(248, 113, 113, 0.45);
  background: #170d0d;
  box-shadow: 0 0 44px -16px rgba(248, 113, 113, 0.35);
}

.vires-order-received__hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.vires-order-received__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0091ff);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(0, 145, 255, 0.12), 0 0 30px rgba(0, 145, 255, 0.45);
}

.vires-order-received__title {
  margin: 0 0 0.5rem;
  font-family: "Orbitron", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.vires-order-received__message.woocommerce-notice {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #a1a1aa;
}

.vires-order-overview {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid #1f1f22;
}

.vires-order-overview__item {
  flex: 1 1 33%;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  text-align: center;
}

.vires-order-overview__item + .vires-order-overview__item {
  border-left: 1px solid #1f1f22;
}

.vires-order-overview__label {
  font-family: "Orbitron", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #71717a;
}

.vires-order-overview__value {
  font-size: 0.98rem;
  font-weight: 600;
  color: #fafafa;
  word-break: break-word;
}

.vires-order-details-card .woocommerce-order-details__title,
.vires-order-customer-card .woocommerce-column__title,
.vires-order-received .woocommerce-column__title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

/*
 * Order-details & downloads tables. WooCommerce core renders these with its own
 * classes (.woocommerce-table--order-details / --order-downloads) inside the
 * card wrappers added by includes/woocommerce.php, so the theme styles those
 * selectors directly rather than expecting a custom class on the <table>.
 */
.vires-order-received .woocommerce-table,
.vires-order-table {
  width: 100%;
  border-collapse: collapse;
  color: #d4d4d8;
}

.vires-order-received .woocommerce-table thead th,
.vires-order-table thead th {
  text-align: left;
  padding: 0.6rem 0;
  border-bottom: 1px solid #27272a;
  font-family: "Orbitron", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #71717a;
}

.vires-order-received .woocommerce-table tbody td,
.vires-order-received .woocommerce-table tbody th,
.vires-order-table tbody td,
.vires-order-table tbody th {
  padding: 0.8rem 0;
  border-bottom: 1px solid #18181b;
  font-weight: 400;
  vertical-align: top;
}

.vires-order-received .woocommerce-table a,
.vires-order-table tbody a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
}

.vires-order-received .woocommerce-table a:hover,
.vires-order-table tbody a:hover {
  color: #0091ff;
  text-decoration: underline;
}

.vires-order-received .woocommerce-table tfoot th,
.vires-order-received .woocommerce-table tfoot td,
.vires-order-table tfoot th,
.vires-order-table tfoot td {
  padding: 0.5rem 0;
  border: none;
  border-bottom: 1px solid #18181b;
  font-size: 0.95rem;
  color: #d4d4d8;
}

.vires-order-received .woocommerce-table tfoot tr:last-child th,
.vires-order-received .woocommerce-table tfoot tr:last-child td,
.vires-order-table tfoot tr:last-child th,
.vires-order-table tfoot tr:last-child td {
  padding-top: 0.85rem;
  border-bottom: none;
  border-top: 1px solid #27272a;
  font-family: "Orbitron", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.vires-order-received .woocommerce-table .woocommerce-Price-amount,
.vires-order-received .woocommerce-table td.product-total,
.vires-order-table .product-total,
.vires-order-table td.product-total,
.vires-order-table tfoot td {
  color: inherit;
}

.vires-order-received .woocommerce-table .product-total,
.vires-order-received .woocommerce-table tfoot td,
.vires-order-table .product-total,
.vires-order-table td.product-total,
.vires-order-table tfoot td {
  text-align: right;
}

.vires-order-customer-card .woocommerce-columns--addresses {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.vires-order-customer-card .woocommerce-column {
  flex: 1 1 220px;
}

.vires-order-customer-card address {
  font-style: normal;
  color: #a1a1aa;
  line-height: 1.7;
  border: 0;
  padding: 0;
}

.vires-order-received mark {
  background: rgba(0, 145, 255, 0.18);
  color: #fff;
}

.vires-btn,
.vires-order-received .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 0.4rem;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.vires-btn--primary,
.vires-order-received .button:not(.vires-btn--secondary) {
  background-color: #0091ff;
  color: #fff;
  box-shadow: 0 0 20px -4px rgba(0, 145, 255, 0.6);
}

.vires-btn--primary:hover,
.vires-order-received .button:not(.vires-btn--secondary):hover {
  background-color: #0091ff;
  color: #fff;
  box-shadow: 0 0 26px 0 rgba(0, 145, 255, 0.8);
}

.vires-btn--secondary {
  background-color: transparent;
  color: #38bdf8;
  border-color: rgba(0, 145, 255, 0.5);
}

.vires-btn--secondary:hover {
  background-color: rgba(0, 145, 255, 0.12);
  color: #fff;
}

.vires-order-received .order-actions-button + .order-actions-button {
  margin-left: 0.5rem;
}

@media (max-width: 640px) {
  .vires-order-received {
    margin: 1.25rem auto 2.5rem;
    gap: 1rem;
  }

  .vires-order-received__card {
    padding: 1.35rem;
    border-radius: 0.6rem;
  }

  .vires-order-overview__item {
    flex: 1 1 50%;
  }

  .vires-order-overview__item:nth-child(odd) {
    border-left: 0;
  }

  .vires-order-table thead th,
  .vires-order-table tbody td,
  .vires-order-table tbody th {
    padding: 0.55rem 0;
  }
}

/* 404 */
.vires-404 {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  background-color: #0f172a;
  background-size: cover;
  background-position: center;
  color: #f8fafc;
  box-sizing: border-box;
}

.vires-404__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

.vires-404__content {
  position: relative;
  z-index: 1;
  max-width: 28rem;
}

.vires-404__logo {
  display: block;
  width: auto;
  height: 96px;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.vires-404__code {
  margin: 0 0 0.35rem;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  background: linear-gradient(90deg, #ff6b6b, #e11d2e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vires-404__title {
  margin: 0 0 0.75rem;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.vires-404__message {
  margin: 0 0 2rem;
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.6;
}

.vires-404__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, #ff6b6b, #e11d2e);
  color: #0f172a;
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.vires-404__cta:hover,
.vires-404__cta:focus {
  opacity: 0.9;
  color: #0f172a;
}

.vires-404__tagline {
  margin: 2rem 0 0;
  color: #64748b;
  font-size: 0.875rem;
}
