/**
 * Buttons & Links System
 * Based on Dacia Digital Standard Guide
 */

/* ============================================
   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;
    min-height: 46px; /* Desktop minimum height */
    box-sizing: border-box;
    text-transform: uppercase; /* CTAs in capital letters per Dacia guidelines */
    font-family: 'Dacia Block', sans-serif; /* Dacia Block for buttons */
}

/* Mobile Responsive Buttons - Per Dacia guidelines: at least 48x48px */
@media (max-width: 767px) {
    .btn {
        min-width: 48px; /* Minimum 48px width per Dacia mobile guidelines */
        min-height: 48px; /* Minimum 48px height per Dacia mobile guidelines */
        padding: 14px 20px; /* Increased padding for thumb-friendly interaction */
        font-size: 16px; /* Maintain readable font size */
        line-height: 20px;
    }
    
    /* Ensure important items are easy to reach with thumb */
    .btn-primary,
    .btn-super-primary,
    .btn-secondary,
    .btn-ghost {
        min-width: 48px;
        min-height: 48px;
    }
}

.btn:focus {
    outline: none;
}

/* Super-Primary Button - Dark green background, white text, hover: black */
.btn-super-primary {
    background-color: #646b52; /* Dacia Khaki / Dark green */
    color: #FFFFFF;
}

.btn-super-primary:hover,
.btn-super-primary:focus {
    background-color: #000000; /* Black on hover */
    color: #FFFFFF;
    text-decoration: none;
}

/* Primary Button - Dark green background, white text, hover: black */
.btn-primary {
    background-color: #646b52; /* Dacia Khaki / Dark green */
    color: #FFFFFF;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #000000; /* Black on hover */
    color: #FFFFFF;
    text-decoration: none;
}

/* Ghost Button - White background, black border, hover: black background, white text */
.btn-secondary,
.btn-ghost {
    background-color: #FFFFFF;
    color: #000000;
    border: 1px solid #000000;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-ghost:hover,
.btn-ghost:focus {
    background-color: #000000;
    color: #FFFFFF;
    text-decoration: none;
}

/* Tertiary Button */
.btn-tertiary {
    background-color: #333333;
    color: #FFFFFF;
}

.btn-tertiary:hover,
.btn-tertiary:focus {
    background-color: #D9D9D6; /* Light grey */
    color: #333333;
    text-decoration: none;
}

/* Disabled Button */
.btn:disabled,
.btn.disabled {
    background-color: #F2F2F2;
    color: #CCCCCC; /* Disable button color per Dacia guidelines */
    cursor: not-allowed;
    opacity: 1;
}

.btn:disabled:hover,
.btn.disabled:hover {
    background-color: #F2F2F2;
    color: #CCCCCC;
}

/* 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: #ec6528; /* Dacia Orange */
    margin-left: 4px;
}

/* Primary Link with Underline */
a.primary-link-underline:hover,
a.primary-link-underline:focus {
    text-decoration: underline;
    text-decoration-color: #646b52; /* Dacia Khaki */
    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;
    }
}

