//
// Component: Button
//
// ========================================================================


// Variables
// ========================================================================

@button-font-size:                              @global-small-font-size;
@button-small-font-size:                        13px;
@button-large-font-size:                        @global-font-size;

@button-padding-horizontal:                     20px;
@button-large-padding-horizontal:               25px;

@button-default-background:                     transparent;
@button-default-hover-background:               transparent;
@button-default-active-background:              transparent;
@button-default-active-color:                   lighten(@button-default-hover-color, 25%);

@button-primary-hover-background:               transparent;
@button-primary-hover-color:                    @global-primary-background;
@button-primary-active-background:              transparent;
@button-primary-active-color:                   lighten(@button-primary-hover-color, 25%);

@button-secondary-background:                   transparent;
@button-secondary-color:                        @global-emphasis-color;
@button-secondary-hover-background:             @global-secondary-background;
@button-secondary-active-background:            lighten(@button-secondary-hover-background, 10%);

@button-danger-background:                      transparent;
@button-danger-color:                           @global-danger-background;
@button-danger-hover-background:                @global-danger-background;
@button-danger-active-background:               lighten(@button-danger-hover-background, 5%);

//
// Master
//

@button-text-mode:                              arrow;

@internal-button-text-arrow-image:              "../../../../uikit-themes/master-paladin/images/button-text-arrow.svg";

@button-border-width:                           @global-border-width;

@button-default-border:                         @global-border;
@button-default-hover-border:                   @global-secondary-background;
@button-default-active-border:                  lighten(@button-default-hover-border, 25%);

@button-primary-hover-border:                   @global-primary-background;
@button-primary-active-border:                  lighten(@button-primary-hover-border, 25%);

@button-secondary-border:                       @global-secondary-background;

@button-danger-border:                          @global-danger-background;

@button-border-radius:                          @global-border-radius;


// Component
// ========================================================================

.hook-button() {}

.hook-button-hover() {}

.hook-button-focus() {}

.hook-button-active() {}


// Style modifiers
// ========================================================================

.hook-button-default() {}

.hook-button-default-hover() {}

.hook-button-default-active() {}

//
// Primary
//

.hook-button-primary() {}

.hook-button-primary-hover() {}

.hook-button-primary-active() {}

//
// Secondary
//

.hook-button-secondary() {}

.hook-button-secondary-hover() {}

.hook-button-secondary-active() {}

//
// Danger
//

.hook-button-danger() {}

.hook-button-danger-hover() {}

.hook-button-danger-active() {}


// Disabled
// ========================================================================

.hook-button-disabled() {}


// Size modifiers
// ========================================================================

.hook-button-small() {}

.hook-button-large() {}


// Text modifier
// ========================================================================

.hook-button-text() {}

.hook-button-text-hover() {}

.hook-button-text-disabled() {}


// Link modifier
// ========================================================================

.hook-button-link() {}


// Miscellaneous
// ========================================================================

.hook-button-misc() {}


// Inverse
// ========================================================================

@inverse-button-default-background:            transparent;
@inverse-button-default-color:                 @inverse-global-emphasis-color;
@inverse-button-default-hover-color:           @inverse-global-emphasis-color;
@inverse-button-default-active-color:          @inverse-global-color;
@inverse-button-primary-color:                 @global-emphasis-color;
@inverse-button-primary-hover-background:      transparent;
@inverse-button-primary-hover-color:           @inverse-global-emphasis-color;
@inverse-button-primary-active-background:     transparent;
@inverse-button-primary-active-color:          @inverse-global-color;
@inverse-button-secondary-background:          transparent;
@inverse-button-secondary-color:               @inverse-global-emphasis-color;
@inverse-button-secondary-hover-background:    @inverse-global-primary-background;
@inverse-button-secondary-hover-color:         @global-emphasis-color;
@inverse-button-secondary-active-background:   fade(@inverse-global-primary-background, 90%);
@inverse-button-text-color:                    @inverse-global-emphasis-color;
@inverse-button-text-hover-color:              @inverse-global-emphasis-color;

//
// Master
//

@inverse-button-default-border:                @inverse-global-border;
@inverse-button-default-hover-border:          @inverse-global-primary-background;
@inverse-button-default-active-border:         fade(@inverse-button-default-hover-border, 70%);

@inverse-button-primary-hover-border:          @inverse-global-primary-background;
@inverse-button-primary-active-border:         fade(@inverse-button-primary-hover-border, 70%);

@inverse-button-secondary-border:              @inverse-global-primary-background;

.hook-inverse-button-default() {}
.hook-inverse-button-default-hover() {}
.hook-inverse-button-default-active() {}

.hook-inverse-button-primary() {}
.hook-inverse-button-primary-hover() {}
.hook-inverse-button-primary-active() {}

.hook-inverse-button-secondary() {}
.hook-inverse-button-secondary-hover() {}
.hook-inverse-button-secondary-active() {}

.hook-inverse-button-text() {}
.hook-inverse-button-text-hover() {}
.hook-inverse-button-text-disabled() {}

.hook-inverse-button-link() {}