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


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

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

@button-padding-horizontal:                     (@global-medium-gutter - 10);
@button-small-padding-horizontal:               @global-gutter;
@button-large-padding-horizontal:               @global-medium-gutter;

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

@button-primary-hover-background:               darken(@button-primary-background, 7%);

@button-secondary-background:                   transparent;
@button-secondary-color:                        @global-secondary-background;
@button-secondary-hover-background:             transparent;
@button-secondary-hover-color:                  fade(@global-secondary-background, 70%);
@button-secondary-active-background:            @global-secondary-background;
@button-secondary-active-color:                 @global-inverse-color;

@button-danger-background:                      transparent;
@button-danger-color:                           @global-danger-background;
@button-danger-hover-background:                transparent;
@button-danger-hover-color:                     fade(@global-danger-background, 70%);
@button-danger-active-background:               @global-danger-background;
@button-danger-active-color:                    @global-inverse-color;

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

//
// Master
//

@button-border-radius:                          500px;
@button-small-border-radius:                    @button-border-radius;
@button-large-border-radius:                    @button-border-radius;

@button-default-box-shadow:                     @global-medium-box-shadow;
@button-default-hover-box-shadow:               @global-small-box-shadow;

@button-border-width:                           1px;

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

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

@button-text-mode:                              none;


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

@inverse-button-primary-background:            @global-primary-background;
@inverse-button-primary-color:                 @inverse-global-emphasis-color;
@inverse-button-primary-hover-background:      lighten(@inverse-button-primary-background, 7%);
@inverse-button-primary-hover-color:           @inverse-button-primary-color;
@inverse-button-primary-active-color:          fade(@inverse-button-primary-color, 80%);

@inverse-button-secondary-background:          transparent;
@inverse-button-secondary-color:               @inverse-global-color;
@inverse-button-secondary-hover-background:    transparent;
@inverse-button-secondary-hover-color:         @inverse-global-emphasis-color;
@inverse-button-secondary-active-background:   @inverse-global-primary-background;
@inverse-button-secondary-active-color:        @inverse-global-inverse-color;
@inverse-button-secondary-border:              @inverse-global-border;
@inverse-button-secondary-hover-border:        @inverse-global-border;
@inverse-button-secondary-active-border:       @inverse-global-primary-background;

@inverse-button-text-hover-color:              @inverse-global-emphasis-color;

.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() {}
