/**
 * Global Button Components - Figma Design System
 * Reusable button styles with color variants
 */

/* Base Button - Figma specs: 413x50px, 15px radius */
.btn-component {
    display: inline-flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px 25px 0px 30px;
    gap: 10px;
    width: 413px;
    height: 50px;
    border-radius: 15px;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-component:hover {
    opacity: 0.9;
    color: white;
    text-decoration: none;
}

.btn-component i,
.btn-component svg {
    flex-shrink: 0;
}

/* Color Variants */

/* Dark Gray - #333333 (for downloads, resources) */
.btn-component.btn-dark {
    background: #333333;
}

.btn-component.btn-dark:hover {
    background: #444444;
}

/* Green - #2e7d32 (for primary actions) */
.btn-component.btn-green {
    background: #2e7d32;
}

.btn-component.btn-green:hover {
    background: #1b5e20;
}

/* Red - #ED2024 (for accent actions) */
.btn-component.btn-red {
    background: #ED2024;
}

.btn-component.btn-red:hover {
    background: #c62828;
}

/* White with border (outline style) */
.btn-component.btn-outline-green {
    background: white;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}

.btn-component.btn-outline-green:hover {
    background: #2e7d32;
    color: white;
}

.btn-component.btn-outline-dark {
    background: white;
    color: #333333;
    border: 2px solid #333333;
}

.btn-component.btn-outline-dark:hover {
    background: #333333;
    color: white;
}

/* Size Variants */

/* Full width */
.btn-component.btn-full {
    width: 100%;
}

/* Auto width (content-based) */
.btn-component.btn-auto {
    width: fit-content;
    min-width: 200px;
    justify-content: center;
}

/* Small button */
.btn-component.btn-sm {
    width: 300px;
    height: 45px;
    padding: 0px 20px 0px 25px;
    font-size: 0.9rem;
}

/* Large button */
.btn-component.btn-lg {
    width: 500px;
    height: 55px;
    padding: 0px 30px 0px 35px;
    font-size: 1rem;
}

/* Icon positioning */
.btn-component .btn-icon-left {
    order: -1;
    margin-right: 10px;
}

.btn-component .btn-icon-right {
    order: 1;
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-group.btn-group-center {
    justify-content: center;
}

.btn-group.btn-group-stretch .btn-component {
    flex: 1;
}

/* 3 buttons in a row - smaller size */
.btn-group-3 .btn-component {
    width: 350px;
}

/* 2 buttons in a row - standard size */
.btn-group-2 .btn-component {
    width: 413px;
}

/* Responsive */
@media (max-width: 992px) {
    .btn-component {
        width: 350px;
    }
    
    .btn-component.btn-lg {
        width: 400px;
    }
}

@media (max-width: 768px) {
    .btn-component {
        width: 100%;
        max-width: 400px;
    }
    
    .btn-component.btn-sm,
    .btn-component.btn-lg {
        width: 100%;
        max-width: 400px;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-group.btn-group-stretch .btn-component {
        flex: none;
        width: 100%;
        max-width: 400px;
    }
}
