﻿/* ThreeGigs v25 Button Component Styles */

/* === BASE BUTTON STYLES === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--tg-spacing-sm);
    padding: var(--tg-spacing-md) var(--tg-spacing-lg);
    font-size: var(--tg-font-sm);
    font-weight: var(--tg-font-medium);
    font-family: inherit;
    line-height: 1;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: var(--tg-radius-md);
    cursor: pointer;
    transition: all var(--tg-duration-normal) var(--tg-ease-smooth);
    position: relative;
    overflow: hidden;
    user-select: none;
    vertical-align: middle;
    min-height: var(--tg-btn-height);
    background: transparent;
}

    .btn:focus {
        outline: 2px solid var(--tg-primary);
        outline-offset: 2px;
    }

        .btn:focus:not(:focus-visible) {
            outline: none;
        }

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left var(--tg-duration-slower);
    }

    .btn:hover::before {
        left: 100%;
    }

    .btn:disabled,
    .btn.disabled {
        opacity: 0.6;
        cursor: not-allowed;
        pointer-events: none;
    }

    .btn:active {
        transform: scale(0.98);
    }

/* === PRIMARY BUTTONS === */
.btn-primary {
    background: var(--tg-btn-primary-bg);
    color: white;
    border-color: var(--tg-primary);
    box-shadow: var(--tg-shadow-purple);
}

    .btn-primary:hover {
        background: var(--tg-gradient-accent);
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: var(--tg-shadow-purple-lg);
    }

    .btn-primary:active {
        transform: translateY(-1px) scale(0.98);
    }

/* === SECONDARY BUTTONS === */
.btn-secondary {
    background: var(--tg-btn-secondary-bg);
    color: var(--tg-text-secondary);
    border-color: var(--tg-border);
    backdrop-filter: blur(10px);
}

    .btn-secondary:hover {
        background: var(--tg-glass-hover);
        color: var(--tg-text-primary);
        border-color: var(--tg-border-hover);
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: var(--tg-shadow-md);
    }

/* === OUTLINE BUTTONS === */
.btn-outline {
    background: transparent;
    color: var(--tg-primary);
    border-color: var(--tg-primary);
}

    .btn-outline:hover {
        background: var(--tg-primary);
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: var(--tg-shadow-purple);
    }

/* === GHOST BUTTONS === */
.btn-ghost {
    background: transparent;
    color: var(--tg-text-secondary);
    border-color: transparent;
}

    .btn-ghost:hover {
        background: var(--tg-glass);
        color: var(--tg-text-primary);
        text-decoration: none;
        transform: translateY(-1px);
    }

/* === ACCENT BUTTONS === */
.btn-accent {
    background: var(--tg-gradient-accent);
    color: white;
    border-color: var(--tg-accent);
    box-shadow: 0 4px 15px rgba(106, 90, 205, 0.3);
}

    .btn-accent:hover {
        background: linear-gradient(135deg, var(--tg-accent) 0%, var(--tg-tertiary) 100%);
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(106, 90, 205, 0.4);
    }

/* === STATUS BUTTONS === */
.btn-success {
    background: var(--tg-success);
    color: white;
    border-color: var(--tg-success);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

    .btn-success:hover {
        background: #059669;
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    }

.btn-warning {
    background: var(--tg-warning);
    color: var(--tg-dark);
    border-color: var(--tg-warning);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

    .btn-warning:hover {
        background: #d97706;
        color: var(--tg-dark);
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    }

.btn-error {
    background: var(--tg-error);
    color: white;
    border-color: var(--tg-error);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

    .btn-error:hover {
        background: #dc2626;
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    }

.btn-info {
    background: var(--tg-info);
    color: white;
    border-color: var(--tg-info);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

    .btn-info:hover {
        background: #2563eb;
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    }

/* === BUTTON SIZES === */
.btn-xs {
    padding: var(--tg-spacing-xs) var(--tg-spacing-sm);
    font-size: var(--tg-font-xs);
    min-height: 28px;
    border-radius: var(--tg-radius-sm);
}

.btn-sm {
    padding: var(--tg-spacing-sm) var(--tg-spacing-md);
    font-size: var(--tg-font-sm);
    min-height: var(--tg-btn-height-sm);
    border-radius: var(--tg-radius-sm);
}

.btn-lg {
    padding: var(--tg-spacing-lg) var(--tg-spacing-xl);
    font-size: var(--tg-font-md);
    min-height: var(--tg-btn-height-lg);
    border-radius: var(--tg-radius-lg);
}

.btn-xl {
    padding: var(--tg-spacing-xl) var(--tg-spacing-xxl);
    font-size: var(--tg-font-lg);
    min-height: 56px;
    border-radius: var(--tg-radius-lg);
}

/* === BUTTON SHAPES === */
.btn-round {
    border-radius: var(--tg-radius-round);
}

.btn-square {
    border-radius: 0;
}

.btn-pill {
    border-radius: 50px;
    padding-left: var(--tg-spacing-xl);
    padding-right: var(--tg-spacing-xl);
}

/* === ICON BUTTONS === */
.btn-icon {
    width: var(--tg-btn-height);
    height: var(--tg-btn-height);
    padding: 0;
    border-radius: var(--tg-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-icon.btn-sm {
        width: var(--tg-btn-height-sm);
        height: var(--tg-btn-height-sm);
        border-radius: var(--tg-radius-sm);
    }

    .btn-icon.btn-lg {
        width: var(--tg-btn-height-lg);
        height: var(--tg-btn-height-lg);
        border-radius: var(--tg-radius-lg);
    }

    .btn-icon.btn-round {
        border-radius: var(--tg-radius-round);
    }

/* === BLOCK BUTTONS === */
.btn-block {
    display: flex;
    width: 100%;
}

/* === LOADING BUTTONS === */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

    .btn-loading .btn-text {
        opacity: 0;
    }

    .btn-loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
        border: 2px solid transparent;
        border-top-color: currentColor;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

/* === FLOATING ACTION BUTTONS === */
.btn-fab {
    width: 56px;
    height: 56px;
    border-radius: var(--tg-radius-round);
    background: var(--tg-gradient-primary);
    color: white;
    border: none;
    box-shadow: var(--tg-shadow-purple-lg);
    position: fixed;
    bottom: var(--tg-spacing-xl);
    right: var(--tg-spacing-xl);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--tg-font-xl);
    cursor: pointer;
    transition: all var(--tg-duration-normal) var(--tg-ease-smooth);
}

    .btn-fab:hover {
        transform: scale(1.1);
        box-shadow: 0 12px 40px rgba(138, 43, 226, 0.5);
    }

    .btn-fab:active {
        transform: scale(1.05);
    }

.btn-fab-mini {
    width: 40px;
    height: 40px;
    font-size: var(--tg-font-md);
}

/* === BUTTON GROUPS === */
.btn-group {
    display: inline-flex;
    vertical-align: middle;
    border-radius: var(--tg-radius-md);
    overflow: hidden;
    box-shadow: var(--tg-shadow-sm);
}

    .btn-group .btn {
        border-radius: 0;
        border-right-width: 0;
        position: relative;
        flex: 1 1 auto;
    }

        .btn-group .btn:first-child {
            border-top-left-radius: var(--tg-radius-md);
            border-bottom-left-radius: var(--tg-radius-md);
        }

        .btn-group .btn:last-child {
            border-top-right-radius: var(--tg-radius-md);
            border-bottom-right-radius: var(--tg-radius-md);
            border-right-width: 1px;
        }

        .btn-group .btn:hover {
            z-index: 2;
            border-color: var(--tg-border-hover);
        }

        .btn-group .btn.active {
            z-index: 3;
        }

/* === TOGGLE BUTTONS === */
.btn-toggle {
    background: var(--tg-glass);
    color: var(--tg-text-secondary);
    border-color: var(--tg-border);
}

    .btn-toggle.active {
        background: var(--tg-gradient-primary);
        color: white;
        border-color: var(--tg-primary);
        box-shadow: var(--tg-shadow-purple);
    }

    .btn-toggle:hover:not(.active) {
        background: var(--tg-glass-hover);
        color: var(--tg-text-primary);
        border-color: var(--tg-border-hover);
    }

/* === SOCIAL BUTTONS === */
.btn-facebook {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

    .btn-facebook:hover {
        background: #166fe5;
        color: white;
        text-decoration: none;
    }

.btn-twitter {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

    .btn-twitter:hover {
        background: #1a91da;
        color: white;
        text-decoration: none;
    }

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: #bc1888;
}

    .btn-instagram:hover {
        opacity: 0.9;
        color: white;
        text-decoration: none;
    }

.btn-youtube {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
}

    .btn-youtube:hover {
        background: #e60000;
        color: white;
        text-decoration: none;
    }

.btn-linkedin {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

    .btn-linkedin:hover {
        background: #006ca5;
        color: white;
        text-decoration: none;
    }

.btn-whatsapp {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

    .btn-whatsapp:hover {
        background: #20b958;
        color: white;
        text-decoration: none;
    }

/* === SPECIAL BUTTONS === */
.btn-gradient {
    background: var(--tg-gradient-primary);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

    .btn-gradient::before {
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    }

    .btn-gradient:hover {
        background: var(--tg-gradient-accent);
        color: white;
        text-decoration: none;
    }

.btn-glass {
    background: var(--tg-glass-strong);
    color: var(--tg-text-primary);
    border-color: var(--tg-border);
    backdrop-filter: blur(20px);
}

    .btn-glass:hover {
        background: rgba(255, 255, 255, 0.2);
        color: var(--tg-text-primary);
        text-decoration: none;
        border-color: var(--tg-border-hover);
    }

.btn-glow {
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
    animation: pulseGlow 2s infinite;
}

.btn-neon {
    background: transparent;
    color: var(--tg-primary);
    border: 2px solid var(--tg-primary);
    text-shadow: 0 0 10px var(--tg-primary);
    box-shadow: 0 0 10px var(--tg-primary), inset 0 0 10px rgba(138, 43, 226, 0.1);
}

    .btn-neon:hover {
        background: var(--tg-primary);
        color: white;
        text-decoration: none;
        text-shadow: none;
        box-shadow: 0 0 20px var(--tg-primary), 0 0 40px var(--tg-primary);
    }

/* === HERO BUTTONS === */
.btn-hero {
    padding: var(--tg-spacing-lg) var(--tg-spacing-xxl);
    font-size: var(--tg-font-lg);
    font-weight: var(--tg-font-semibold);
    min-height: 52px;
    border-radius: var(--tg-radius-lg);
    position: relative;
    overflow: hidden;
}

    .btn-hero.primary {
        background: var(--tg-gradient-primary);
        color: white;
        border: none;
        box-shadow: var(--tg-shadow-purple-lg);
    }

        .btn-hero.primary:hover {
            background: var(--tg-gradient-accent);
            color: white;
            text-decoration: none;
            transform: translateY(-3px);
            box-shadow: 0 12px 40px rgba(138, 43, 226, 0.5);
        }

    .btn-hero.secondary {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(10px);
    }

        .btn-hero.secondary:hover {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            text-decoration: none;
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-3px);
        }

/* === BADGE BUTTONS === */
.btn-badge {
    position: relative;
}

    .btn-badge::after {
        content: attr(data-badge);
        position: absolute;
        top: -8px;
        right: -8px;
        background: var(--tg-error);
        color: white;
        font-size: var(--tg-font-xs);
        font-weight: var(--tg-font-bold);
        padding: 2px 6px;
        border-radius: var(--tg-radius-round);
        min-width: 18px;
        text-align: center;
        line-height: 1.2;
        animation: badgePulse 2s infinite;
    }

    .btn-badge[data-badge="0"]::after,
    .btn-badge:not([data-badge])::after {
        display: none;
    }

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .btn {
        padding: var(--tg-spacing-sm) var(--tg-spacing-md);
        font-size: var(--tg-font-sm);
        min-height: 40px;
    }

    .btn-lg {
        padding: var(--tg-spacing-md) var(--tg-spacing-lg);
        font-size: var(--tg-font-md);
        min-height: 44px;
    }

    .btn-xl {
        padding: var(--tg-spacing-lg) var(--tg-spacing-xl);
        font-size: var(--tg-font-lg);
        min-height: 48px;
    }

    .btn-hero {
        padding: var(--tg-spacing-md) var(--tg-spacing-xl);
        font-size: var(--tg-font-md);
        min-height: 48px;
    }

    .btn-fab {
        bottom: calc(var(--tg-mobile-nav-height) + var(--tg-spacing-lg));
        right: var(--tg-spacing-lg);
        width: 48px;
        height: 48px;
        font-size: var(--tg-font-lg);
    }

    .btn-group {
        flex-direction: column;
    }

        .btn-group .btn {
            border-right-width: 1px;
            border-bottom-width: 0;
        }

            .btn-group .btn:first-child {
                border-radius: var(--tg-radius-md) var(--tg-radius-md) 0 0;
            }

            .btn-group .btn:last-child {
                border-radius: 0 0 var(--tg-radius-md) var(--tg-radius-md);
                border-bottom-width: 1px;
            }
}

@media (max-width: 640px) {
    .btn {
        font-size: var(--tg-font-sm);
        padding: var(--tg-spacing-sm) var(--tg-spacing-md);
    }

    .btn-hero {
        font-size: var(--tg-font-md);
        padding: var(--tg-spacing-md) var(--tg-spacing-lg);
    }

    .btn-fab {
        width: 44px;
        height: 44px;
        font-size: var(--tg-font-md);
        bottom: calc(var(--tg-mobile-nav-height) + var(--tg-spacing-md));
        right: var(--tg-spacing-md);
    }
}

/* === PRINT STYLES === */
@media print {
    .btn {
        background: white !important;
        color: black !important;
        border: 1px solid black !important;
        box-shadow: none !important;
        text-decoration: none !important;
    }

    .btn-fab {
        display: none !important;
    }

    .btn::before {
        display: none !important;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }

        .btn::before {
            display: none;
        }

    .btn-glow {
        animation: none;
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
    }

    .btn-badge::after {
        animation: none;
    }
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
    .btn {
        border-width: 2px;
    }

    .btn-primary {
        background: var(--tg-primary);
        border-color: var(--tg-primary);
    }

    .btn-secondary {
        background: white;
        color: black;
        border-color: black;
    }
}
