/*****************************************************************************************************************************************************************************/
/*                                                                                                                                                                           */
/*                                                                  Styles for the Project Parking Fee System                                                                */
/*                                                                                                                                                                           */
/*****************************************************************************************************************************************************************************/
/*                                                                                                                                                                           */
/* Author: Magallanes López Carlos Gabriel                                                                                                                                   */
/* Version: 1.0                                                                                                                                                              */
/* Email: cgmagallanes23@gmail.com                                                                                                                                           */
/* Last Modified: 09/05/2026                                                                                                                                                 */
/*                                                                                                                                                                           */
/*****************************************************************************************************************************************************************************/
 

/* Root custom properties defining the color scheme and typography system */
:root {
    --bg: #1e2127;
    --surface: #252930;
    --surface2: #2c313a;
    --border: #181a1f;
    --border2: #3e4451;
    --blue: #61afef;
    --green: #98c379;
    --orange: #e5c07b;
    --red: #e06c75;
    --purple: #c678dd;
    --cyan: #56b6c2;
    --text: #abb2bf;
    --text-hi: #dcdfe4;
    --text-lo: #5c6370;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Inter', sans-serif;
}

/* Global reset: removes default margins, padding, and applies border-box sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* HTML root element - enables smooth scrolling behavior */
html {scroll-behavior: smooth;}

/* Body element - applies base typography and background styling */
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Webkit scrollbar styling - hides the default and applies custom appearance */
::-webkit-scrollbar {width: 6px;}

/* Webkit scrollbar track - sets the background of the scrollbar track */
::-webkit-scrollbar-track {background: var(--bg);}

/* Webkit scrollbar thumb - customizes the draggable scrollbar handle */
::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 3px;
}

/* Main navigation bar - sticky header with glass morphism effect */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(30, 33, 39, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Navigation brand/logo - displays the site identity */
.nav-brand {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text-hi);
    font-weight: 600;
    flex-shrink: 0;
}

/* Navigation brand accent - highlights a portion of the brand */
.nav-brand span {color: var(--blue);}

/* Navigation links list - horizontal menu items container */
.nav-links {
    display: flex;
    gap: 24px;
    flex: 1;
    list-style: none;
}

/* Navigation link styling - individual menu items with hover effect */
.nav-links a {
    font-size: 13px;
    color: var(--text-lo);
    text-decoration: none;
    transition: color 0.15s;
}

/* Navigation link hover state - highlights link on mouseover */
.nav-links a:hover {color: var(--text-hi);}

/* Language toggle container - button group for language selection */
.lang-toggle {
    display: flex;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

/* Language button - individual language toggle button */
.lang-btn {
    padding: 5px 14px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-lo);
    transition: background 0.15s, color 0.15s;
}

/* Language button active state - shows which language is currently selected */
.lang-btn.active {
    background: var(--blue);
    color: #000;
}

/* Hero section - main landing area with title and description */
.hero {
    padding: 80px 32px 64px;
    max-width: 860px;
    margin: 0 auto;
}

/* Hero eyebrow - small uppercase label above the main title */
.hero-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 18px;
}

/* Hero main heading - large prominent title */
.hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    color: var(--text-hi);
    line-height: 1.15;
    margin-bottom: 20px;
}

/* Hero heading emphasis - italicized text within the title */
.hero h1 em {
    font-style: normal;
    color: var(--green);
}

/* Hero description - descriptive text below the title */
.hero-desc {
    font-size: 16px;
    color: var(--text);
    max-width: 580px;
    margin-bottom: 32px;
    line-height: 1.8;
}

/* Hero badges container - holds the badge elements */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Badge element - generic styled badge component */
.badge {
    font-family: var(--mono);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid;
}

/* Badge blue variant - blue colored badge */
.b-blue {
    color: var(--blue);
    background: rgba(97, 175, 239, 0.12);
    border-color: rgba(97, 175, 239, 0.25);
}

/* Badge green variant - green colored badge */
.b-green {
    color: var(--green);
    background: rgba(152, 195, 121, 0.12);
    border-color: rgba(152, 195, 121, 0.25);
}

/* Badge orange variant - orange colored badge */
.b-orange {
    color: var(--orange);
    background: rgba(229, 192, 123, 0.12);
    border-color: rgba(229, 192, 123, 0.25);
}

/* Badge purple variant - purple colored badge */
.b-purple {
    color: var(--purple);
    background: rgba(198, 120, 221, 0.12);
    border-color: rgba(198, 120, 221, 0.25);
}

/* Badge cyan variant - cyan colored badge */
.b-cyan {
    color: var(--cyan);
    background: rgba(86, 182, 194, 0.12);
    border-color: rgba(86, 182, 194, 0.25);
}

/* Badge red variant - red colored badge */
.b-red {
    color: var(--red);
    background: rgba(224, 108, 117, 0.12);
    border-color: rgba(224, 108, 117, 0.25);
}

/* Horizontal divider line - separates major content sections */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 32px;
}

/* Section container - wraps content with animation and spacing */
.section {
    max-width: 860px;
    margin: 0 auto;
    padding: 64px 32px;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);  /* Cubic Bezier: Is a mathematical function that controls the pacing of an animation */
}

/* Section visible state - animates section into view */
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section label - small uppercase identifier for each section */
.section-label {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-lo);
    margin-bottom: 8px;
}

/* Section heading - main title for each section */
.section h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-hi);
    margin-bottom: 28px;
}

/* Table wrapper - enables horizontal scrolling on mobile */
.table-wrap {overflow-x: auto;}

/* Table element - main data table container */
table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 13px;
}

/* Table header cells - styling for column headers */
thead th {
    text-align: left;
    padding: 8px 16px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-lo);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

/* Table data cells - styling for data rows */
tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text);
    transition: background 0.1s;
}

/* Table row hover state - highlights row on mouseover */
tbody tr:hover td {background: var(--surface2);}

/* Table hour cell - highlights hours column */
.t-hour {color: var(--orange);}

/* Table price cell - highlights price values */
.t-price {
    color: var(--green);
    font-weight: 600;
}

/* Table maximum row - styling for the maximum tariff row */
.t-max td {
    color: var(--red);
    font-weight: 600;
}

/* Rules grid container - responsive grid layout for rule cards */
.rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

/* Rule card - individual rule card with animation */
.rule-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px 18px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.2s;
}

/* Rule card visible state - animates card into view */
.rule-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Rule card hover state - highlights card on mouseover */
.rule-card:hover {border-color: var(--border2);}

/* Rule card label - small uppercase identifier */
.rule-card-label {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-lo);
    margin-bottom: 8px;
}

/* Rule card value - main content/description */
.rule-card-value {
    font-size: 14px;
    color: var(--text-hi);
    line-height: 1.6;
}

/* Flow diagram container - vertical layout for flow nodes */
.flow {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 480px;
}

/* Flow node - individual step/element in the flow diagram */
.flow-node {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Flow node visible state - animates node into view */
.flow-node.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Flow node start state - styling for start node */
.flow-node.node-start {
    border-color: var(--green);
    color: var(--green);
}

/* Flow node end state - styling for end node */
.flow-node.node-end {
    border-color: var(--red);
    color: var(--red);
}

/* Flow node condition state - styling for conditional nodes */
.flow-node.node-cond {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(229, 192, 123, 0.05);
}

/* Flow dot - colored indicator dot for node type */
.flow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* Flow arrow - visual connector between flow nodes */
.flow-arrow {
    font-size: 16px;
    color: var(--text-lo);
    padding-left: 18px;
    line-height: 1;
    display: block;
}

/* Concepts grid container - responsive grid layout for concept cards */
.concepts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

/* Concept card - individual programming concept card */
.concept {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 18px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.2s;
}

/* Concept card visible state - animates card into view */
.concept.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Concept card hover state - highlights card on mouseover */
.concept:hover {border-color: var(--border2);}

/* Concept icon - emoji or symbol representing the concept */
.concept-icon {
    font-family: var(--mono);
    font-size: 18px;
    color: var(--purple);
    margin-bottom: 10px;
}

/* Concept name - title of the programming concept */
.concept-name {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--blue);
    margin-bottom: 6px;
}

/* Concept description - detailed explanation of the concept */
.concept-desc {
  font-size: 13px;
  color: var(--text-lo);
  line-height: 1.65;
}

/* Validations grid container - responsive grid for validation cards */
.validations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));                                             /* Creates a responsive grid with columns that are at least 200px wide and expand to fill available space */
    gap: 12px;
}

/* Validation card - individual data validation rule card */
.val-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Validation card visible state - animates card into view */
.val-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Validation field name - identifies the field being validated */
.val-field {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--red);
    margin-bottom: 6px;
}

/* Validation rule - code block showing validation logic */
.val-rule {
    font-family: var(--mono);
    font-size: 11px;
    background: var(--surface2);
    border-radius: 4px;
    padding: 7px 10px;
    margin-bottom: 8px;
    color: var(--text);
    border-left: 2px solid var(--cyan);
    line-height: 1.7;
}

/* Validation description - explains the validation rule */
.val-desc {
    font-size: 12px;
    color: var(--text-lo);
    line-height: 1.6;
}

/* Validation status badge - shows validation result status */
.val-status {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 3px;
    margin-bottom: 8px;
}

/* Validation status OK - indicates passed validation */
.vs-ok {
    background: rgba(152, 195, 121, 0.15);
    color: var(--green);
}

/* Validation status warning - indicates warning status */
.vs-warn {
    background: rgba(229, 192, 123, 0.15);
    color: var(--orange);
}

/* Validation status error - indicates failed validation */
.vs-err {
    background: rgba(224, 108, 117, 0.15);
    color: var(--red);
}

/* Simulator wrapper - two-column layout for form and results */
.sim-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Simulator form - left column with input fields */
.sim-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px;
}

/* Simulator field group - groups related inputs */
.sim-group {margin-bottom: 20px;}

/* Simulator group label - label for grouped inputs */
.sim-group-label {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-lo);
    margin-bottom: 10px;
}

/* Simulator row - horizontal layout for inputs */
.sim-row {
    display: flex;
    gap: 10px;
}

/* Simulator input field - individual input container */
.sim-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

/* Simulator field label - label for input field */
.sim-field label {
    font-size: 11px;
    color: var(--text-lo);
    font-family: var(--mono);
}

/* Simulator input element - text input styling */
.sim-input {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-hi);
    font-family: var(--mono);
    font-size: 13px;
    padding: 7px 10px;
    outline: none;
    width: 100%;
    transition: border-color 0.15s;
}

/* Simulator input focus state - highlights on focus */
.sim-input:focus {border-color: var(--blue);}

/* Simulator input error state - highlights on error */
.sim-input.err {
    border-color: var(--red);
    animation: shake 0.3s ease;
}

/* Shake animation - wiggle effect for error inputs */
@keyframes shake {
  0%, 100% {transform: translateX(0);}
  30% {transform: translateX(-4px);}
  70% {transform: translateX(4px);}
}

/* Simulator button - primary action button */
.sim-btn {
  width: 100%;
  padding: 10px;
  background: var(--blue);
  color: #000;
  border: none;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

/* Simulator button hover state - reduces opacity on hover */
.sim-btn:hover {opacity: 0.85;}

/* Simulator button active state - scales down on click */
.sim-btn:active {transform: scale(0.98);}

/* Simulator result area - right column showing results */
.sim-result {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
}

/* Simulator placeholder - message shown before calculation */
.sim-placeholder {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-lo);
    text-align: center;
}

/* Result row - individual result line */
.result-row {margin-bottom: 16px;}

/* Result label - description of the result value */
.result-lbl {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-lo);
    margin-bottom: 4px;
}

/* Result value - calculated result value */
.result-val {
    font-family: var(--mono);
    font-size: 15px;
    color: var(--text-hi);
    font-weight: 600;
}

/* Result value large - emphasizes important values */
.result-val.big {
    font-size: 32px;
    line-height: 1;
}

/* Result rule note - explains which tariff rule was applied */
.result-rule {
    font-family: var(--mono);
    font-size: 11px;
    background: var(--surface2);
    border-radius: 4px;
    padding: 8px 12px;
    color: var(--text-lo);
    border-left: 2px solid var(--purple);
    margin-top: 4px;
    line-height: 1.7;
}

/* Result error message - displays validation errors */
.result-err {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Steps container - vertical list of instruction steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 520px;
}

/* Step item - individual instruction step */
.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* Step number - numbered indicator for step */
.step-num {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Step body - instruction text content */
.step-body {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
}

/* Step body strong text - highlights important terms */
.step-body strong {color: var(--text-hi);}

/* Step body code - inline code snippet */
.step-body code {
    font-family: var(--mono);
    font-size: 12px;
    background: var(--surface2);
    padding: 1px 7px;
    border-radius: 3px;
    color: var(--green);
}

/* Keyboard key badge - shows keyboard shortcut */
kbd {
    font-family: var(--mono);
    font-size: 11px;
    background: var(--surface2);
    color: var(--text-hi);
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid var(--border2);
}

/* About card - developer information card */
.about-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px;
    max-width: 520px;
}

/* Avatar circle - profile picture container */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

/* About name - developer's name */
.about-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-hi);
    margin-bottom: 3px;
}

/* About email - developer's email address */
.about-email {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--blue);
    margin-bottom: 8px;
}

/* About file - file path or reference */
.about-file {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-lo);
}

/* About file highlight - highlights filename */
.about-file span {color: var(--green);}

/* Footer section - page bottom with copyright and links */
footer {
    border-top: 1px solid var(--border);
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-lo);
    flex-wrap: wrap;
    gap: 12px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Footer visible state - animates footer into view */
footer.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer link - styled link in footer */
footer a {
  color: var(--blue);
    text-decoration: none;
}

/* Mobile breakpoint - styles for screens 700px and below */
@media (max-width: 700px) {
  
    /* Navigation on mobile - compact spacing */
    nav {
        padding: 0 20px;
        gap: 16px;
    }

    /* Navigation links on mobile - hidden on small screens */
    .nav-links {display: none;}

    /* Hero and sections on mobile - reduced padding */
    .hero, .section {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Divider on mobile - reduced margins */
    .divider {margin: 0 20px;}

    /* Simulator on mobile - single column layout */
    .sim-wrap {grid-template-columns: 1fr;}

    /* Simulator row on mobile - allow wrapping */
    .sim-row {flex-wrap: wrap;}

    /* Footer on mobile - reduced padding */
    footer {padding: 24px 20px;}

}

/*****************************************************************************************************************************************************************************/