/* ============================================
   COMPONENTS
   Buttons, cards, badges, and other reusable UI elements
   ============================================ */

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    text-decoration: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

/* Primary Button (Safety Amber) */
.btn-primary {
    background-color: var(--color-safety-amber);
    color: var(--color-charcoal);
    box-shadow: var(--shadow-medium);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

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

/* Secondary Button (Outlined) */
.btn-secondary {
    background-color: transparent;
    color: var(--color-charcoal);
    border-color: var(--color-charcoal);
}

.btn-secondary:hover {
    background-color: var(--color-charcoal);
    color: var(--color-cream);
}

/* Tertiary Button (Text only) */
.btn-tertiary {
    background-color: transparent;
    color: var(--color-safety-orange);
    border: none;
    padding: 12px 24px;
}

.btn-tertiary:hover {
    background-color: var(--color-highlight);
}

/* Button Sizes */
.btn-sm {
    padding: 12px 24px;
    font-size: var(--text-sm);
}

.btn-lg {
    padding: 22px 48px;
    font-size: var(--text-lg);
}

/* Mobile: Full Width Buttons */
@media (max-width: 767px) {
    .btn {
        width: 100%;
    }
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-warm-white) 100%);
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Sweep animation on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 149, 0, 0.1), transparent);
    transition: left 0.8s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    border-color: var(--color-safety-amber);
    box-shadow: var(--shadow-hard);
    transform: translateY(-4px);
}

/* Card Variants */
.card-flat {
    background: var(--color-warm-white);
    box-shadow: none;
}

.card-elevated {
    box-shadow: var(--shadow-medium);
}

.card-elevated:hover {
    box-shadow: var(--shadow-xl);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--color-highlight);
    border: 2px solid var(--color-safety-amber);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: var(--color-charcoal);
    box-shadow: var(--shadow-soft);
}

.badge-icon {
    width: 20px;
    height: 20px;
    color: var(--color-safety-orange);
}

/* Badge Variants */
.badge-yellow {
    background-color: var(--color-safety-yellow);
    border-color: var(--color-safety-yellow);
}

.badge-orange {
    background-color: var(--color-safety-orange);
    border-color: var(--color-safety-orange);
    color: var(--color-warm-white);
}

.badge-small {
    padding: 6px 14px;
    font-size: 11px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   PRODUCT CARD (Special Component)
   ============================================ */
.product-card {
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-warm-white) 100%);
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 149, 0, 0.1), transparent);
    transition: left 0.8s;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    border-color: var(--color-safety-amber);
    box-shadow: var(--shadow-hard);
    transform: translateY(-4px);
}

.product-card__header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.product-card__icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-safety-amber), var(--color-safety-orange));
    border-radius: var(--radius-sm);
    color: var(--color-warm-white);
    box-shadow: var(--shadow-medium);
}

.product-card__icon svg {
    width: 32px;
    height: 32px;
}

.product-card__badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background-color: var(--color-safety-yellow);
    color: var(--color-charcoal);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: rotate(3deg);
    box-shadow: var(--shadow-soft);
}

.product-card__title {
    margin-bottom: var(--space-sm);
}

.product-card__description {
    margin-bottom: var(--space-lg);
}

.product-card__features {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.product-card__features li {
    padding-left: 28px;
    margin-bottom: var(--space-sm);
    position: relative;
    font-size: var(--text-sm);
    color: var(--color-mid-gray);
}

.product-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-safety-orange);
    font-weight: bold;
    font-size: var(--text-base);
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */

/* Vertical Stripe Accent */
.decorative-stripe {
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 200px;
    background: linear-gradient(180deg, var(--color-safety-amber), var(--color-safety-orange));
    opacity: 0.6;
}

/* Diagonal Section Transition */
.diagonal-transition::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background-color: inherit;
    transform: skewY(-1deg);
    transform-origin: top left;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-xl) 0 var(--space-lg);
    background-color: var(--color-warm-black);
    color: var(--color-cream);
    text-align: center;
}

.footer__content {
    max-width: 600px;
    margin: 0 auto;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-black);
    margin-bottom: var(--space-sm);
    color: var(--color-safety-amber);
}

.footer__tagline {
    font-size: var(--text-sm);
    opacity: 0.7;
    margin-bottom: var(--space-md);
}

.footer__copyright {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    opacity: 0.5;
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 767px) {
    /* Product Card Mobile Layout */
    .product-card {
        padding: var(--space-md);
    }

    .product-card__header {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: center;
        text-align: center;
    }

    .product-card__icon {
        width: 56px;
        height: 56px;
    }

    .product-card__icon svg {
        width: 28px;
        height: 28px;
    }

    .product-card__title {
        font-size: var(--text-xl);
        word-break: break-word;
        hyphens: auto;
    }

    .product-card__badge {
        top: var(--space-sm);
        right: var(--space-sm);
        font-size: 10px;
        padding: 8px 18px;
    }

    .product-card__description {
        font-size: var(--text-base);
        text-align: left;
    }

    .product-card__features li {
        font-size: var(--text-sm);
        line-height: 1.6;
    }

    /* Card Grid Mobile */
    .card {
        padding: var(--space-md);
    }

    /* Badge Mobile */
    .badge {
        font-size: 12px;
        padding: 8px 16px;
        text-align: center;
    }

    .badge.float {
        display: inline-flex;
        max-width: 90%;
    }
}
