/* ============================================
   BUTTON COMPONENTS
   Custom button styles for Sportrak

   Dependencies: variables.css (--slate-* colors)
   Used in: Global (loaded in layout.html and authenticated-layout.html)
   ============================================ */

/* Create Account/Action Button - Primary Dark Button */
.btn-create-account {
    background: var(--slate-900);
    color: white;
    border: 1px solid var(--slate-900);
    font-weight: 500;
    transition: all 0.15s ease;
}

.btn-create-account:hover {
    background: var(--slate-800);
    border-color: var(--slate-800);
    color: white;
}

.btn-create-account:disabled {
    background: var(--slate-200);
    border-color: var(--slate-200);
    color: var(--slate-500);
    cursor: not-allowed;
}

/* ============================================
   SHADCN BUTTON VARIANTS
   ============================================ */

/* Primary Button - Main Action */
.btn-primary {
    background: var(--slate-900);
    color: white;
    border: 1px solid var(--slate-900);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--slate-800);
    border-color: var(--slate-800);
    color: white;
}

.btn-primary:active {
    background: var(--slate-700);
    border-color: var(--slate-700);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.btn-primary:disabled {
    background: var(--slate-200);
    border-color: var(--slate-200);
    color: var(--slate-500);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Secondary Button - Subtle Action */
.btn-secondary {
    background: var(--slate-100);
    color: var(--slate-900);
    border: 1px solid var(--slate-200);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--slate-200);
    border-color: var(--slate-300);
    color: var(--slate-900);
}

.btn-secondary:active {
    background: var(--slate-300);
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.1);
}

.btn-secondary:disabled {
    background: var(--slate-50);
    color: var(--slate-400);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Destructive Button - Danger Action */
.btn-destructive {
    background: var(--red-600);
    color: white;
    border: 1px solid var(--red-600);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-destructive:hover {
    background: var(--red-700);
    border-color: var(--red-700);
    color: white;
}

.btn-destructive:active {
    background: var(--red-800);
    border-color: var(--red-800);
}

.btn-destructive:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.btn-destructive:disabled {
    background: var(--red-200);
    border-color: var(--red-200);
    color: var(--red-400);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Outline Destructive - Subtle Danger */
.btn-outline-destructive {
    background: transparent;
    color: var(--red-600);
    border: 1px solid var(--red-600);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-outline-destructive:hover {
    background: var(--red-50);
    border-color: var(--red-700);
    color: var(--red-700);
}

.btn-outline-destructive:active {
    background: var(--red-100);
}

.btn-outline-destructive:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Ghost Button - Very Subtle Action */
.btn-ghost {
    background: transparent;
    color: var(--slate-700);
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-ghost:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}

.btn-ghost:active {
    background: var(--slate-200);
}

.btn-ghost:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.1);
}

/* Icon Button - For icon-only actions */
.btn-icon {
    background: transparent;
    color: var(--slate-700);
    border: 1px solid transparent;
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.btn-icon:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}

.btn-icon:active {
    background: var(--slate-200);
}

.btn-icon:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.1);
}

/* Button Size Variants */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
}

/* Icon spacing in buttons */
.btn-primary i,
.btn-secondary i,
.btn-destructive i,
.btn-outline-destructive i,
.btn-ghost i {
    margin: 0;
}
