/* ==========================================================================
   Component Styles - Stellar Creations x3
   Reusable components: buttons, cards, screen-reader utility, text alignment.
   All classes use the sc- prefix. All values reference tokens.css via var().
   Depends on: tokens.css
   ========================================================================== */

/* ==========================================================================
   Buttons
   ========================================================================== */

.sc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--sc-space-sm) var(--sc-space-lg);
    border-radius: 0.5rem;
    font-weight: var(--sc-font-weight-semibold);
    font-size: var(--sc-font-size-base);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--sc-transition-normal);
    line-height: 1.4;
}

.sc-button:focus-visible {
    outline: 2px solid var(--sc-color-primary);
    outline-offset: 2px;
}

/* Primary Button - Hot Pink */
.sc-button--primary {
    background-color: var(--sc-color-primary);
    color: var(--sc-color-white);
}

.sc-button--primary:hover {
    filter: brightness(0.9);
}

.sc-button--primary:active {
    filter: brightness(0.85);
}

/* Secondary Button - Coral */
.sc-button--secondary {
    background-color: var(--sc-color-secondary);
    color: var(--sc-color-white);
}

.sc-button--secondary:hover {
    filter: brightness(0.9);
}

.sc-button--secondary:active {
    filter: brightness(0.85);
}

/* Outline Button */
.sc-button--outline {
    background-color: transparent;
    border: 2px solid var(--sc-color-primary);
    color: var(--sc-color-primary);
}

.sc-button--outline:hover {
    background-color: var(--sc-color-primary);
    color: var(--sc-color-white);
}

.sc-button--outline:active {
    filter: brightness(0.9);
}

/* Large Button */
.sc-button--lg {
    padding: 0.875rem 2rem;
    font-size: var(--sc-font-size-lg);
}

/* White Solid Button (for dark/gradient backgrounds) */
.sc-button--white {
    background-color: var(--sc-color-white);
    color: var(--sc-color-primary);
    border: 2px solid var(--sc-color-white);
}

.sc-button--white:hover {
    background-color: transparent;
    color: var(--sc-color-white);
}

/* White Outline Button (for dark backgrounds) */
.sc-button--outline-white {
    background-color: transparent;
    border: 2px solid var(--sc-color-white);
    color: var(--sc-color-white);
}

.sc-button--outline-white:hover {
    background-color: var(--sc-color-white);
    color: var(--sc-color-primary);
}

/* ==========================================================================
   Card
   ========================================================================== */

.sc-card {
    background-color: var(--sc-color-white);
    border-radius: 0.75rem;
    border: 1px solid var(--sc-color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: var(--sc-space-lg);
    overflow: hidden;
}

.sc-card__title {
    font-size: var(--sc-font-size-lg);
    font-weight: var(--sc-font-weight-semibold);
    color: var(--sc-color-primary);
    margin-bottom: var(--sc-space-sm);
}

.sc-card__text {
    font-size: var(--sc-font-size-sm);
    color: var(--sc-color-text-light);
    line-height: 1.6;
}

/* ==========================================================================
   Screen Reader Only - Visually hidden but accessible
   ========================================================================== */

.sc-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;
}

/* ==========================================================================
   Text Alignment Utilities
   ========================================================================== */

.sc-text-center {
    text-align: center;
}

.sc-text-left {
    text-align: left;
}

.sc-text-right {
    text-align: right;
}
