/* ============================================
   IDEA CARNIVAL - METALLIC SHINE BUTTON EFFECTS
   Looping left-to-right shine animation
   ============================================ */

:root {
    --gold: #D4AF37;
    --champagne: #F7E7CE;
    --black: #000000;
    --burgundy: #800020;
}

/* ============================================
   BASE BUTTON STYLES
   ============================================ */

.btn-primary {
    position: relative;
    overflow: hidden;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--gold) 0%, #C5A028 100%);
    color: var(--black);
    border: 2px solid var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E5BF47 0%, var(--gold) 100%);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

/* ============================================
   METALLIC SHINE ANIMATION (LEFT TO RIGHT)
   ============================================ */

.btn-primary::before {
    content: '';
    position: absolute;
    top: 150%;
    left: -150%;
    width: 150%;
    height: 150%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shine-sweep 5s infinite;
    animation-timing-function: ease-in-out;
    pointer-events: none;
}

@keyframes shine-sweep {
    0% {
        top: 150%;
        left: -150%;
    }
    28.57% {
        top: -150%;
        left: 150%;
    }
    100% {
        top: -150%;
        left: 150%;
    }
}

/* ============================================
   SECONDARY BUTTON (OUTLINE STYLE)
   ============================================ */

.btn-secondary {
    position: relative;
    overflow: hidden;
    padding: 16px 40px;
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 150%;
    left: -150%;
    width: 150%;
    height: 150%;
    background: linear-gradient(
        90deg,
        rgba(212, 175, 55, 0) 0%,
        rgba(212, 175, 55, 0.6) 50%,
        rgba(212, 175, 55, 0) 100%
    );
    transform: rotate(45deg);
    animation: shine-sweep 5s infinite;
    animation-timing-function: ease-in-out;
    pointer-events: none;
}

/* ============================================
   TERTIARY BUTTON (CHAMPAGNE)
   ============================================ */

.btn-tertiary {
    position: relative;
    overflow: hidden;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--champagne) 0%, #EDD9B8 100%);
    color: var(--black);
    border: 2px solid var(--champagne);
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 231, 206, 0.3);
}

.btn-tertiary:hover {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--champagne) 100%);
    box-shadow: 0 6px 25px rgba(247, 231, 206, 0.5);
    transform: translateY(-2px);
}

.btn-tertiary::before {
    content: '';
    position: absolute;
    top: 150%;
    left: -150%;
    width: 150%;
    height: 150%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shine-sweep 5s infinite;
    animation-timing-function: ease-in-out;
    pointer-events: none;
}

/* ============================================
   BURGUNDY ACCENT BUTTON
   ============================================ */

.btn-burgundy {
    position: relative;
    overflow: hidden;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--burgundy) 0%, #5A0015 100%);
    color: var(--gold);
    border: 2px solid var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.4);
}

.btn-burgundy:hover {
    background: linear-gradient(135deg, #9A0028 0%, var(--burgundy) 100%);
    box-shadow: 0 6px 25px rgba(128, 0, 32, 0.6);
    transform: translateY(-2px);
}

.btn-burgundy::before {
    content: '';
    position: absolute;
    top: 150%;
    left: -150%;
    width: 150%;
    height: 150%;
    background: linear-gradient(
        90deg,
        rgba(212, 175, 55, 0) 0%,
        rgba(212, 175, 55, 0.6) 50%,
        rgba(212, 175, 55, 0) 100%
    );
    transform: rotate(45deg);
    animation: shine-sweep 5s infinite;
    animation-timing-function: ease-in-out;
    pointer-events: none;
}

/* ============================================
   FAST SHINE VARIANT (Optional)
   ============================================ */

.btn-shine-fast::before {
    animation: shine-sweep-fast 2.5s infinite;
}

@keyframes shine-sweep-fast {
    0% {
        left: -100%;
    }
    40% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* ============================================
   SLOW SHINE VARIANT (Optional)
   ============================================ */

.btn-shine-slow::before {
    animation: shine-sweep-slow 7s infinite;
}

@keyframes shine-sweep-slow {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* ============================================
   CONTINUOUS SHINE (No Pause)
   ============================================ */

.btn-shine-continuous::before {
    animation: shine-sweep-continuous 1.5s infinite linear;
}

@keyframes shine-sweep-continuous {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ============================================
   BUTTON SIZES
   ============================================ */

.btn-small {
    padding: 10px 24px;
    font-size: 14px;
}

.btn-large {
    padding: 20px 50px;
    font-size: 18px;
}

.btn-full-width {
    width: 100%;
    display: block;
}

/* ============================================
   ICON BUTTONS
   ============================================ */

.btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-with-icon svg,
.btn-with-icon img {
    width: 20px;
    height: 20px;
}

/* ============================================
   DISABLED STATE
   ============================================ */

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-tertiary:disabled,
.btn-burgundy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary:disabled::before,
.btn-secondary:disabled::before,
.btn-tertiary:disabled::before,
.btn-burgundy:disabled::before {
    animation: none;
}

/* ============================================
   BUTTON GROUP
   ============================================ */

.btn-group {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-group-stacked {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary,
    .btn-tertiary,
    .btn-burgundy {
        padding: 14px 32px;
        font-size: 14px;
    }

    .btn-large {
        padding: 16px 40px;
        font-size: 16px;
    }

    .btn-group {
        width: 100%;
    }

    .btn-group .btn-primary,
    .btn-group .btn-secondary,
    .btn-group .btn-tertiary,
    .btn-group .btn-burgundy {
        flex: 1;
    }
}

/* ============================================
   HOVER BORDER SHINE EFFECT (Alternative)
   ============================================ */

.btn-border-shine {
    position: relative;
    overflow: visible;
}

.btn-border-shine::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -100%;
    width: 30px;
    height: calc(100% + 4px);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shine-sweep 5s infinite;
    animation-timing-function: ease-in-out;
    pointer-events: none;
    z-index: 1;
}
