/* ============================================
   Components — Buttons, Cards, Forms
   ============================================ */

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: var(--text-body);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-secondary);
    color: var(--color-white);
    border: 2px solid var(--color-secondary);
}

.btn-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-white);
    border: 2px solid transparent;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: 1.125rem 3rem;
    font-size: 1.125rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 140, 160, 0.2);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 56px;
    height: 56px;
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
    transition: transform var(--transition-fast);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: var(--text-h3);
    font-weight: var(--weight-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.card-text {
    font-size: var(--text-body);
    color: var(--color-neutral);
    line-height: 1.6;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: var(--text-small);
    font-weight: var(--weight-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-body);
    font-family: var(--font-family);
    color: var(--color-dark);
    background: var(--color-white);
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(0, 140, 160, 0.1);
}

.form-input::placeholder {
    color: var(--color-neutral);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   BADGES / TAGS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: var(--text-tiny);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.badge-primary {
    background: rgba(0, 80, 120, 0.1);
    color: var(--color-primary);
}

.badge-secondary {
    background: rgba(0, 140, 160, 0.1);
    color: var(--color-secondary);
}

/* ============================================
   DIVIDERS
   ============================================ */
.divider {
    height: 1px;
    background: var(--color-light-gray);
    margin: var(--space-lg) 0;
}

.divider-gradient {
    height: 1px;
    background: var(--gradient-hero);
    margin: var(--space-lg) 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.visually-hidden {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
