/**
 * Reusable component styles matching trux design system
 * Use with variables.css for CSS custom properties
 */

/* ============================================
   Button - Primary
   ============================================ */
.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-4x) var(--spacing-8x); /* 16px 32px - matches trux */
    background-color: var(--teal-40-color);
    color: var(--white-color);
    border: 2px solid var(--teal-40-color);
    border-radius: 32px;
    cursor: pointer;
    font-family: var(--body-font-family);
    font-weight: var(--bold-font-weight);
    font-size: var(--body-font-size); /* 16px */
    line-height: calc(var(--spacing-5x) - 1px); /* 19px - matches .button-title */
    transition: background-color 0.3s, border-color 0.3s;
}
.btn-primary:hover {
    background-color: var(--teal-40-hover-color);
    border-color: var(--teal-40-hover-color);
}
.btn-primary:active {
    background-color: var(--teal-40-pressed-color);
    border-color: var(--teal-40-pressed-color);
}

/* ============================================
   Input
   ============================================ */
.trux-input {
    border: 2px solid var(--charcoal-10-color);
    padding: var(--spacing-4x);
    outline: none;
    font-size: var(--body-font-size);
    line-height: var(--spacing-6x);
    border-radius: var(--spacing-2x);
    transition: 0.3s border;
}
.trux-input::placeholder {
    color: var(--charcoal-20-color);
}
.trux-input:focus {
    border-color: var(--teal-40-color);
    outline: 4px solid var(--teal-30-color);
}
.trux-input-error {
    border-color: var(--error-color) !important;
}

/* ============================================
   Modal Sections - matches trux Modal structure
   ============================================ */

/* Title section with bottom border */
.title-section {
    box-shadow: inset 0 -2px 0 var(--charcoal-1-color);
    padding: var(--spacing-2x);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

/* Content section */
.content-section {
    padding: var(--spacing-8x);
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

/* Footer section with top border */
.footer-section {
    border-top: 2px solid var(--charcoal-1-color);
    padding: var(--spacing-4x);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* ============================================
   Typography
   ============================================ */

/* Modal title - matches trux h4/ModalTitle */
.modal-title {
    font-family: var(--heading-font-family);
    font-weight: var(--bold-font-weight);
    font-size: 21px;
    line-height: 22px;
    letter-spacing: -0.02em;
    color: var(--black-color);
    text-align: center;
    margin: var(--spacing-2x) 0;
    padding: 0;
}

/* Form label - matches trux body text */
.trux-label {
    font-family: var(--body-font-family);
    font-size: var(--body-font-size);
    font-weight: 500;
    color: var(--charcoal-40-color);
    line-height: 22px;
}

/* ============================================
   Player Card - used in modal step 3 grid
   ============================================ */
.player-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    aspect-ratio: 3 / 4;
}
.player-card:hover {
    text-decoration: none;
    opacity: 0.9;
}
.player-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.player-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}
.player-card-jersey {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}
.player-card-team {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
}
.player-card-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

/* "I don't see my child" dashed card */
.player-card-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--teal-30-color);
    border-radius: 12px;
    aspect-ratio: 3 / 4;
    text-decoration: none;
    color: var(--teal-40-color);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    padding: 12px;
    transition: background-color 0.2s;
}
.player-card-empty:hover {
    background-color: rgba(124, 220, 209, 0.1);
    text-decoration: none;
}
