/* Button Component Styles - HondPro */

/* Base Button Styles */
.btn,
button[type="submit"],
input[type="submit"],
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

/* Primary Button - Pink Gradient */
.btn-primary,
button[type="submit"]:not([class]) {
    background: var(--gradient-primary, linear-gradient(135deg, #ec4899 0%, #be185d 100%));
    color: white;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #be185d 0%, #9d174d 100%);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

/* Secondary Button - White with Border */
.btn-secondary {
    background: white;
    color: var(--pink-dark, #be185d);
    border: 2px solid var(--pink-dark, #be185d);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--pink-lighter, #fce7f3);
    border-color: var(--pink-dark, #be185d);
    color: var(--pink-dark, #be185d);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Teal Button */
.btn-teal {
    background: var(--gradient-teal, linear-gradient(135deg, #14b8a6 0%, #0f766e 100%));
    color: white;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.btn-teal:hover {
    background: linear-gradient(135deg, #0f766e 0%, #0d5d56 100%);
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.4);
    transform: translateY(-2px);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--text-primary, #1e293b);
    border: 2px solid var(--border-color, #e2e8f0);
}

.btn-outline:hover {
    background: var(--pink-lighter, #fce7f3);
    border-color: var(--pink-primary, #ec4899);
    color: var(--pink-primary, #ec4899);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--pink-primary, #ec4899);
    box-shadow: none;
}

.btn-ghost:hover {
    background: var(--pink-lighter, #fce7f3);
}

/* Disabled State */
.btn:disabled,
.btn.disabled,
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-xl {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

/* Full Width Button */
.btn-block {
    width: 100%;
    display: flex;
}

/* Icon Buttons */
.btn-icon {
    padding: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
}

.btn-icon-sm {
    padding: 0.5rem;
    width: 2rem;
    height: 2rem;
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Button Groups */
.btn-group {
    display: inline-flex;
    gap: 0.5rem;
}

.btn-group .btn {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
