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


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

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

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

@button-default-background:                            transparent;

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

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

@button-danger-background:                             transparent;
@button-danger-color:                                  @global-emphasis-color;
@button-danger-hover-color:                            @global-emphasis-color;
@button-danger-active-color:                           @global-emphasis-color;

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

//
// Master
//

@button-text-mode:                                     arrow;

@internal-button-text-arrow-image:                     "../../../../uikit-themes/master-summit/images/button-text-arrow.svg";
@internal-button-text-arrow-padding:                   10px;
@internal-button-text-arrow-width:                     30px;
@internal-button-text-arrow-color:                     darken(@global-primary-background, 12%);
@internal-button-text-arrow-hover-color:               darken(@internal-button-text-arrow-color, 5%);

@button-border-width:                                  10px;

@button-default-border:                                darken(@global-primary-background, 12%);
@button-default-hover-border:                          darken(@button-default-border, 5%);
@button-default-active-border:                         darken(@button-default-border, 10%);

@button-primary-border:                                darken(@global-primary-background, 12%);
@button-primary-hover-border:                          darken(@button-primary-border, 5%);
@button-primary-active-border:                         darken(@button-primary-border, 10%);

@button-secondary-border:                              rgba(0,0,0,0.15);
@button-secondary-hover-border:                        rgba(0,0,0,0.25);
@button-secondary-active-border:                       rgba(0,0,0,0.3);

@button-danger-border:                                 @global-danger-background;
@button-danger-hover-border:                           darken(@button-danger-border, 5%);
@button-danger-active-border:                          darken(@button-danger-border, 10%);

@internal-button-border-image-slice:                   18% 9% fill;
@internal-button-border-image-width:                   10px;
@internal-button-border-image-repeat:                  stretch;

@internal-button-default-border-image:                 "../../../../uikit-themes/master-summit/images/button-default-border-image.svg";
@internal-button-primary-border-image:                 "../../../../uikit-themes/master-summit/images/button-primary-border-image.svg";
@internal-button-secondary-border-image:               "../../../../uikit-themes/master-summit/images/button-secondary-border-image.svg";
@internal-button-danger-border-image:                  "../../../../uikit-themes/master-summit/images/button-danger-border-image.svg";


// 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() {

    .uk-button-group > .uk-button:nth-child(n+2),
    .uk-button-group > div:nth-child(n+2) .uk-button { margin-left: -7px; }

}


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

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

//
// Master
//

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

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

@inverse-button-secondary-border:                      fade(@inverse-global-primary-background, 40%);
@inverse-button-secondary-hover-border:                fade(@inverse-global-primary-background, 60%);
@inverse-button-secondary-active-border:               fade(@inverse-global-primary-background, 80%);

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