/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  /* Colors */
  --color-primary: #c17c3d;
  --color-background: #000;
  --color-background-dark: #111;
  --color-background-overlay: rgba(1, 2, 2, 0.85);
  --color-text-white: #fff;
  --color-text-light: #d1d5db;
  --color-text-muted: #9ca3af;
  --color-text-footer: rgba(255, 255, 255, 0.7);
  --color-border: #374151;

  /* Typography */
  --font-family: "Poppins", sans-serif;
  --font-size-base: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 3.75rem;
  --font-size-sm: 0.625rem;

  /* Spacing */
  --spacing-xs: 10px;
  --spacing-sm: 15px;
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 40px;
  --spacing-2xl: 60px;

  /* Border radius */
  --border-radius: 8px;
  --border-radius-sm: 4px;

  /* Transitions */
  --transition-fast: 0.3s ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-family);
}

/* Remove default list styles */
ul {
  list-style: none;
}

/* ========================================
   MAIN LAYOUT COMPONENTS
   ======================================== */

/* Hero section with background */
.hero-section {
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-background);
  color: var(--color-text-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url("./images/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Main content wrapper */
.content-wrapper {
  width: 90%;
  max-width: 971px;
  padding: 50px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-background-overlay);
  border-radius: var(--border-radius);
  gap: var(--spacing-xs);
  margin: var(--spacing-2xl) auto;
}

/* ========================================
   HEADER & BRANDING COMPONENTS
   ======================================== */

/* Brand logo */
.brand-logo {
  margin-bottom: var(--spacing-lg);
}

/* Main page title */
.page-title {
  color: var(--color-text-white);
  text-align: center;
  font-size: var(--font-size-3xl);
  font-weight: 400;
  line-height: 60px;
  margin-bottom: var(--spacing-md);
}

/* Page description */
.page-description {
  color: var(--color-text-light);
  text-align: center;
  font-size: var(--font-size-lg);
  font-style: normal;
  font-weight: 600;
  line-height: 28px;
}

/* ========================================
   PORTAL SELECTION COMPONENTS
   ======================================== */

/* Portal selection container */
.portal-selection {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--spacing-xl);
  margin: var(--spacing-md) 0;
}

/* Individual portal card */
.portal-card {
  width: 50%;
  padding: var(--spacing-md) var(--spacing-xl);
  background-color: var(--color-background-dark);
  border: 2px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  min-height: 256px;
  transition: border-color var(--transition-fast);
  flex: 1;
}

/* Portal card title */
.portal-card__title {
  color: var(--color-text-white);
  text-align: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  line-height: normal;
  margin-bottom: var(--spacing-sm);
}

/* Portal card description */
.portal-card__description {
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
  line-height: 25px;
  font-weight: 400;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

/* Portal card image */
.portal-card__image {
  width: 30px;
  object-fit: cover;
  object-position: center;
  margin: 20px auto;
}

/* Portal card button */
.portal-card__button {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: var(--spacing-sm) var(--spacing-xl);
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: 600;
  transition: all var(--transition-fast);
  align-self: center;
  text-decoration: none;
  width: 100%;
}

/* Account information text */
.account-info {
  color: var(--color-text-white);
  text-align: center;
  font-size: var(--font-size-base);
  line-height: 24px;
}

/* ========================================
   FOOTER COMPONENTS
   ======================================== */

/* Main footer container */
.footer {
  background: var(--color-background-dark);
  padding: var(--spacing-2xl);
  width: 100%;
  display: flex;
  justify-content: space-between;
}

/* Footer logo */
.footer-logo {
  height: 60px;
}

/* Footer content section */
.footer-content {
  display: flex;
  gap: var(--spacing-2xl);
}

/* Footer navigation links */

.footer-links a {
  display: block;
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: normal;
  color: var(--color-text-footer);
}

/* Footer info section */
.footer-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  justify-content: space-between;
}

/* Social media links */
.footer-info__links {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  align-items: center;
}

.footer-info__links ul {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  align-items: center;
  list-style: none;
}

.footer-info__links a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
}

.footer-info__links a img {
  object-fit: contain;
  object-position: center;
}

/* Footer copyright text */
.footer-info__text {
  color: var(--color-text-footer);
  font-size: var(--font-size-sm);
  font-weight: 400;
  line-height: normal;
  text-align: center;
}

/* Additional footer information */
.footer-additional-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: flex-end;
}

/* Payment methods image */
.footer-additional-info__payments {
  width: 200px;
}

/* PARP logo */
.footer-additional-info__parp {
  width: 100px;
}

/* Additional footer text */
.footer-additional-info__text {
  color: var(--color-text-footer);
  font-size: var(--font-size-sm);
  line-height: normal;
  width: 350px;
  text-align: end;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet and smaller screens */
@media (max-width: 900px) {
  .page-title {
    font-size: var(--font-size-2xl);
    line-height: 40px;
  }

  .page-description {
    font-size: var(--font-size-base);
    line-height: 24px;
  }

  .content-wrapper {
    padding: var(--spacing-xl);
    width: 95%;
  }

  .portal-selection {
    flex-direction: column;
  }

  .portal-card {
    width: 100%;
    gap: var(--spacing-md);
    min-height: auto;
  }

  .footer {
    padding: var(--spacing-md);
    width: 100%;
    background: var(--color-background-dark);
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .footer-additional-info {
    align-items: center;
  }

  .footer-content {
    display: flex;
  }

  .footer-info {
    order: 1;
  }

  .footer-info__text {
    order: 2;
  }

  .footer-additional-info__text {
    text-align: center;
  }
}

/* Mobile screens */
@media (max-width: 480px) {
  .content-wrapper {
    padding: var(--spacing-md);
  }

  .portal-card {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .page-title {
    font-size: 1.75rem;
    line-height: 36px;
  }
}
