/* ====================================================================
   SILVER GLOSS SYSTEM - Modern Gray Button Effects
   ==================================================================== */

/* Base Silver Gloss Classes */
.silver-gloss {
    background: var(--grad-gray-primary);
    border: 1px solid #5a5a5a;
    color: #000000;
    position: relative;
    overflow: hidden;
    transition: var(--vm-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.silver-gloss::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--grad-shine);
    transition: left 0.5s ease;
}

.silver-gloss:hover::before {
    left: 100%;
}

.silver-gloss:hover {
    background: var(--grad-gray-hover);
    border-color: #6a6a6a;
    color: #000000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.silver-gloss:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Size Variants */
.silver-gloss-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.silver-gloss-medium {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.5rem;
}

.silver-gloss-large {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 0.75rem;
}

/* Premium Gold-Silver Variant for Special Actions */
.silver-gloss-premium {
    background: var(--grad-gray-premium);
    border: 1px solid #7a7a7a;
    color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.silver-gloss-premium::before {
    background: var(--grad-shine);
}

.silver-gloss-premium:hover {
    background: var(--grad-gray-premium);
    border-color: #8a8a8a;
    color: #000000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Animation Keyframes */
@keyframes silverShine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

@keyframes silverPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    }
}

@keyframes silverEnter {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes silverExit {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Accessibility Support */
@media (prefers-reduced-motion: reduce) {
    .silver-gloss,
    .silver-gloss::before {
        transition: none;
        animation: none;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .silver-gloss {
        background: var(--grad-gray-dark);
        border-color: #4a4a4a;
    }
    
    .silver-gloss:hover {
        background: var(--grad-gray-primary);
        border-color: #5a5a5a;
    }
}

/* ====================================================================
   BOOTSTRAP GRAY BUTTON REPLACEMENTS
   ==================================================================== */

/* Primary Button - Main Actions */
:where(button, a, input[type="button"], input[type="submit"]).btn-gray-primary,
.btn.btn-gray-primary {
    background: var(--grad-gray-primary);
    border: 1px solid #5a5a5a;
    color: #000000;
    font-weight: 500;
    transition: var(--vm-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-gray-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--grad-shine);
    transition: left 0.5s ease;
}

.btn-gray-primary:hover::before {
    left: 100%;
}

:where(button, a, input[type="button"], input[type="submit"]).btn-gray-primary:hover,
.btn.btn-gray-primary:hover,
.btn-gray-primary:hover:not(:disabled) {
    background: var(--grad-gray-hover);
    border-color: #6a6a6a;
    color: #000000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.btn-gray-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Secondary Button - Secondary Actions */
:where(button, a, input[type="button"], input[type="submit"]).btn-gray-secondary,
.btn.btn-gray-secondary {
    background: var(--grad-gray-secondary);
    border: 1px solid #7a7a7a;
    color: #000000;
    font-weight: 400;
    transition: var(--vm-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-gray-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--grad-shine);
    transition: left 0.5s ease;
}

.btn-gray-secondary:hover::before {
    left: 100%;
}

:where(button, a, input[type="button"], input[type="submit"]).btn-gray-secondary:hover,
.btn.btn-gray-secondary:hover,
.btn-gray-secondary:hover:not(:disabled) {
    background: var(--grad-gray-secondary);
    border-color: #8a8a8a;
    color: #000000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Success Button - Positive Actions */
:where(button, a, input[type="button"], input[type="submit"]).btn-gray-success,
.btn.btn-gray-success {
    background: var(--grad-gray-primary);
    border: 1px solid #5a6a5a;
    color: #000000;
    font-weight: 500;
    transition: var(--vm-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-gray-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--grad-shine);
    transition: left 0.5s ease;
}

.btn-gray-success:hover::before {
    left: 100%;
}

:where(button, a, input[type="button"], input[type="submit"]).btn-gray-success:hover,
.btn.btn-gray-success:hover,
.btn-gray-success:hover:not(:disabled) {
    background: var(--grad-gray-hover);
    border-color: #6a7a6a;
    color: #000000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

/* Danger Button - Dangerous Actions */
:where(button, a, input[type="button"], input[type="submit"]).btn-gray-danger,
.btn.btn-gray-danger {
    background: var(--grad-gray-primary);
    border: 1px solid #6a5a5a;
    color: #000000;
    font-weight: 500;
    transition: var(--vm-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-gray-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--grad-shine);
    transition: left 0.5s ease;
}

.btn-gray-danger:hover::before {
    left: 100%;
}

:where(button, a, input[type="button"], input[type="submit"]).btn-gray-danger:hover,
.btn.btn-gray-danger:hover,
.btn-gray-danger:hover:not(:disabled) {
    background: var(--grad-gray-hover);
    border-color: #7a6a6a;
    color: #000000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

/* Warning Button - Warning Actions */
:where(button, a, input[type="button"], input[type="submit"]).btn-gray-warning,
.btn.btn-gray-warning {
    background: var(--grad-gray-primary);
    border: 1px solid #6a6a5a;
    color: #000000;
    font-weight: 500;
    transition: var(--vm-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-gray-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--grad-shine);
    transition: left 0.5s ease;
}

.btn-gray-warning:hover::before {
    left: 100%;
}

:where(button, a, input[type="button"], input[type="submit"]).btn-gray-warning:hover,
.btn.btn-gray-warning:hover,
.btn-gray-warning:hover:not(:disabled) {
    background: var(--grad-gray-hover);
    border-color: #7a7a6a;
    color: #000000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

/* Info Button - Informational Actions */
:where(button, a, input[type="button"], input[type="submit"]).btn-gray-info,
.btn.btn-gray-info {
    background: var(--grad-gray-primary);
    border: 1px solid #5a5a6a;
    color: #000000;
    font-weight: 500;
    transition: var(--vm-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-gray-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--grad-shine);
    transition: left 0.5s ease;
}

.btn-gray-info:hover::before {
    left: 100%;
}

:where(button, a, input[type="button"], input[type="submit"]).btn-gray-info:hover,
.btn.btn-gray-info:hover,
.btn-gray-info:hover:not(:disabled) {
    background: var(--grad-gray-hover);
    border-color: #6a6a7a;
    color: #000000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

/* Size Variants for Gray Buttons */
:is(.btn-gray-primary, .btn-gray-secondary, .btn-gray-success, .btn-gray-danger, .btn-gray-warning, .btn-gray-info).btn-sm,
.btn.btn-sm:is(.btn-gray-primary, .btn-gray-secondary, .btn-gray-success, .btn-gray-danger, .btn-gray-warning, .btn-gray-info) {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

:is(.btn-gray-primary, .btn-gray-secondary, .btn-gray-success, .btn-gray-danger, .btn-gray-warning, .btn-gray-info).btn-lg,
.btn.btn-lg:is(.btn-gray-primary, .btn-gray-secondary, .btn-gray-success, .btn-gray-danger, .btn-gray-warning, .btn-gray-info) {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
}

/* Disabled State */
:is(.btn-gray-primary, .btn-gray-secondary, .btn-gray-success, .btn-gray-danger, .btn-gray-warning, .btn-gray-info):disabled,
:is(.btn-gray-primary, .btn-gray-secondary, .btn-gray-success, .btn-gray-danger, .btn-gray-warning, .btn-gray-info)[disabled],
.btn:disabled:is(.btn-gray-primary, .btn-gray-secondary, .btn-gray-success, .btn-gray-danger, .btn-gray-warning, .btn-gray-info) {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: #8a8a8a;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

:is(.btn-gray-primary, .btn-gray-secondary, .btn-gray-success, .btn-gray-danger, .btn-gray-warning, .btn-gray-info):disabled::before,
:is(.btn-gray-primary, .btn-gray-secondary, .btn-gray-success, .btn-gray-danger, .btn-gray-warning, .btn-gray-info)[disabled]::before,
.btn:disabled:is(.btn-gray-primary, .btn-gray-secondary, .btn-gray-success, .btn-gray-danger, .btn-gray-warning, .btn-gray-info)::before {
    display: none;
}

/* Orange variant for image generation */
:where(button, a, input[type="button"], input[type="submit"]).btn-gray-primary.btn-orange-variant,
.btn.btn-gray-primary.btn-orange-variant {
    background: var(--grad-orange-primary);
    border: 1px solid hsl(17, 100%, 74%);
    color: #000000;
    font-weight: 500;
    transition: var(--vm-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-gray-primary.btn-orange-variant::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--grad-shine);
    transition: left 0.5s ease;
}

.btn-gray-primary.btn-orange-variant:hover::before {
    left: 100%;
}

:where(button, a, input[type="button"], input[type="submit"]).btn-gray-primary.btn-orange-variant:hover,
.btn.btn-gray-primary.btn-orange-variant:hover,
.btn-gray-primary.btn-orange-variant:hover:not(:disabled) {
    background: var(--grad-orange-hover);
    border-color: hsl(17, 100%, 82%);
    color: #000000;
    box-shadow: 0 4px 16px hsla(17, 100%, 74%, 0.35);
    transform: translateY(-1px);
}

.btn-gray-primary.btn-orange-variant:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

:where(button, a, input[type="button"], input[type="submit"]).btn-gray-primary.btn-orange-variant:disabled,
.btn.btn-gray-primary.btn-orange-variant:disabled,
.btn-gray-primary.btn-orange-variant[disabled] {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: #8a8a8a;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

:where(button, a, input[type="button"], input[type="submit"]).btn-gray-primary.btn-orange-variant:disabled::before,
.btn.btn-gray-primary.btn-orange-variant:disabled::before,
.btn-gray-primary.btn-orange-variant[disabled]::before {
    display: none;
} 