/**
 * Buttons & Links System
 * Based on Renault Digital Standard Guide - Page 26
 */

/* ============================================
   BUTTONS
   ============================================ */

/* Button Base Styles */
.btn {
    display: inline-block;
    padding: 11px 16px;
    font-size: 16px; /* Base size */
    line-height: 20px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 280px;
    height: 46px;
    box-sizing: border-box;
}

.btn:focus {
    outline: none;
}

/* Super-Primary Button */
.btn-super-primary {
    background-color: #EFDF00; /* Primary yellow */
    color: #000000;
}

.btn-super-primary:hover,
.btn-super-primary:focus {
    background-color: #F8EB4C; /* Primary hover */
    color: #000000;
    text-decoration: none;
}

/* Primary Button */
.btn-primary {
    background-color: #000000;
    color: #FFFFFF;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #EFDF00; /* Primary yellow */
    color: #000000;
    text-decoration: none;
}

/* Secondary Button */
.btn-secondary {
    background-color: #FFFFFF;
    color: #000000;
    border: 1px solid #000000;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #000000;
    color: #FFFFFF;
    text-decoration: none;
}

/* Tertiary Button */
.btn-tertiary {
    background-color: #3E3F40;
    color: #FFFFFF;
}

.btn-tertiary:hover,
.btn-tertiary:focus {
    background-color: #D9D9D6; /* Light grey */
    color: #3E3F40;
    text-decoration: none;
}

/* Disabled Button */
.btn:disabled,
.btn.disabled {
    background-color: #F2F2F2;
    color: #D9D9D6;
    cursor: not-allowed;
    opacity: 1;
}

.btn:disabled:hover,
.btn.disabled:hover {
    background-color: #F2F2F2;
    color: #D9D9D6;
}

/* Button with Icon */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-icon .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Button Spacing */
.btn + .btn {
    margin-left: 24px;
}

.btn-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.btn-group-vertical .btn {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-bottom: 24px;
}

.btn-group-vertical .btn:last-child {
    margin-bottom: 0;
}

/* ============================================
   LINKS
   ============================================ */

/* Primary Link */
a.primary-link {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
}

a.primary-link:hover,
a.primary-link:focus {
    color: #000000;
    text-decoration: none;
}

/* Primary Link with Arrow */
a.primary-link-arrow:hover::after,
a.primary-link-arrow:focus::after {
    content: ' >';
    color: #EFDF00; /* Primary yellow */
    margin-left: 4px;
}

/* Primary Link with Underline */
a.primary-link-underline:hover,
a.primary-link-underline:focus {
    text-decoration: underline;
    text-decoration-color: #EFDF00; /* Primary yellow */
    text-underline-offset: 2px;
}

/* Link CTA */
a.link-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    max-width: 280px;
}

a.link-cta .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

a.link-cta:hover,
a.link-cta:focus {
    color: #000000;
    text-decoration: none;
}

/* Link CTA Usage Note: Use one single link in a container - for multiple CTAs use buttons */

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .btn {
        font-size: 14px; /* Mention size for mobile */
        line-height: 18px;
        padding: 10px 14px;
        height: auto;
        min-height: 44px;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 16px;
    }
    
    .btn + .btn {
        margin-left: 0;
        margin-top: 16px;
    }
    
    a.primary-link,
    a.link-cta {
        font-size: 14px; /* Mention size for mobile */
        line-height: 18px;
    }
}

