/* AdminDash css 03: Button system (primary/secondary/brand/ghost, sizes, icons) + typography & gradient text */

/* ============================================
   Buttons - Deepgram Style (1:1 Clone)
   ============================================ */

a.btn,
a.btn:link,
a.btn:visited,
a.btn:hover,
a.btn:active,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s;
    overflow: hidden;
}

/* Ensure button content stays above ::before */
.btn > * {
    position: relative;
    z-index: 1;
}

/* Primary Button - White bg with gradient sweep on hover */
.btn-primary,
a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: white;
    color: #000 !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099);
    background-size: 300% 100%;
    background-position: 0% 0%;
    opacity: 0;
    transition: all 0.3s;
    z-index: -1;
}

.btn-primary:hover,
a.btn-primary:hover {
    color: #000 !important;
    background: white;
    box-shadow: 0 1px 2px rgba(var(--overlay-inv), 0.05);
}

.btn-primary:hover::before {
    opacity: 1;
    background-position: 100% 0%;
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 2px #687EF7;
}

.btn-primary:disabled {
    background: #1f2937;
    color: #9ca3af;
    border-color: #1f2937;
}

.btn-primary:disabled::before {
    opacity: 0;
}

/* Hero primary button glow */
.hero-ctas .btn-primary {
    box-shadow:
        0 0 20px rgba(0, 240, 153, 0.25),
        0 0 40px rgba(0, 143, 193, 0.15);
}

.hero-ctas .btn-primary:hover {
    box-shadow:
        0 0 25px rgba(0, 240, 153, 0.35),
        0 0 50px rgba(0, 143, 193, 0.2);
}

/* Secondary Button - Gradient border with fill on hover */
.btn-secondary,
a.btn-secondary,
a.btn-secondary:link,
a.btn-secondary:visited {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff !important;
    background:
        linear-gradient(#000, #000) padding-box,
        linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099) border-box;
    background-size: auto, 300% 100%;
    background-position: 0 0, 0% 0%;
    box-shadow:
        6px 0 15px 0 rgba(56, 237, 172, 0.2),
        -6px 0 15px 0 rgba(20, 154, 251, 0.2);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099);
    background-size: 300% 100%;
    background-position: 0% 0%;
    opacity: 0;
    transition: all 0.3s;
    z-index: -1;
}

.btn-secondary:hover,
a.btn-secondary:hover,
a.btn-secondary:active {
    color: #000 !important;
    background:
        linear-gradient(transparent, transparent) padding-box,
        linear-gradient(to right, #008fc1, #00f099, #008fc1, #00f099) border-box;
    background-size: auto, 300% 100%;
    background-position: 0 0, 100% 0%;
}

.btn-secondary:hover::before {
    opacity: 1;
    background-position: 100% 0%;
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 2px #687EF7;
}

.btn-secondary:disabled {
    opacity: 0.5;
    box-shadow: none;
}

/* Hero secondary button shimmer */
.hero-ctas .btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(var(--overlay), 0.08) 40%,
        rgba(var(--overlay), 0.15) 50%,
        rgba(var(--overlay), 0.08) 60%,
        transparent 100%
    );
    z-index: 1;
    animation: shimmer 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    40% { left: 120%; }
    100% { left: 120%; }
}

/* Brand button - frosted green */
.btn-brand,
a.btn-brand,
a.btn-brand:link,
a.btn-brand:visited,
a.btn-brand:hover,
a.btn-brand:active {
    background: rgba(19, 239, 149, 0.12);
    color: var(--green) !important;
    font-weight: 600;
    border: 1px solid rgba(19, 239, 149, 0.2);
    box-shadow: 0 0 10px rgba(19, 239, 149, 0.08);
    transition: all 0.3s;
}

.btn-brand:hover,
a.btn-brand:hover {
    background: rgba(19, 239, 149, 0.2);
    border-color: rgba(19, 239, 149, 0.35);
    box-shadow: 0 0 14px rgba(19, 239, 149, 0.12);
}

.btn-brand:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(19, 239, 149, 0.3);
}

/* Ghost button */
.btn-ghost {
    background: transparent;
    color: var(--gray-400);
    height: auto;
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: none;
}

.btn-ghost:hover {
    color: var(--white);
}

/* Button sizes */
.btn-lg {
    height: 52px;
    padding: 0 24px;
    font-size: 1rem;
}

.btn-sm {
    height: 40px;
    padding: 0 16px;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* Button icon */
.btn-icon {
    transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

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

h1:focus {
    outline: none;
}

.text-display-xl {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-display-lg {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.text-body-lg {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-400);
}

/* Gradient text */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
