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


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

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

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

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

@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, 8%);

@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, 8%);

@button-text-hover-color:                       @global-primary-background;

//
// Master
//

@button-text-mode:                              em-dash;
@button-text-border-width:                      2px;

@internal-button-text-em-dash-size:             100px;

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

@button-default-border:                         @global-primary-background;

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

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

@button-disabled-border:                        @global-border;

@button-letter-spacing:                         3px;


// 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-background:      @inverse-global-primary-background;
@inverse-button-default-hover-color:           @inverse-global-inverse-color;
@inverse-button-default-active-background:     fade(@global-inverse-color, 90%);
@inverse-button-default-active-color:          @inverse-global-inverse-color;

@inverse-button-primary-background:            @global-primary-background;
@inverse-button-primary-color:                 @global-inverse-color;
@inverse-button-primary-hover-color:           @global-inverse-color;
@inverse-button-primary-active-color:          @global-inverse-color;

//
// Master
//

@inverse-button-default-border:                @inverse-button-default-color;
@inverse-button-default-hover-border:          @inverse-button-default-hover-background;
@inverse-button-default-active-border:         @inverse-button-default-active-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() {}