/* Sunrise Buttons - Updated to match theme_Btn styling */

/* Base button styling */
.sunrise-btn {
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 170px;
    height: 48px;
    border: none;
    z-index: 1;
}

.sunrise-btn .button-text {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease-in-out;
}

/* Hover background animation shape - matches theme_Btn */
.sunrise-btn::before {
    content: "";
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    z-index: -1;
    transition: all 0.5s ease-in-out;
}

/* Green Primary Button */
.sunrise-btn-green {
    background: #22c55e;
    color: white;
}

.sunrise-btn-green::before {
    background: #a6e58a;
}

.sunrise-btn-green:hover::before {
    width: 300px;
    height: 300px;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
}

.sunrise-btn-green:hover .button-text {
    color: #1A5A2E;
}

/* Blue Secondary Button */
.sunrise-btn-blue {
    background: #3b82f6;
    color: white;
}

.sunrise-btn-blue::before {
    background: #9ccafd;
}

.sunrise-btn-blue:hover::before {
    width: 300px;
    height: 300px;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
}

.sunrise-btn-blue:hover .button-text {
    color: #1E3A8A;
}

/* Orange Button for Solo Plan */
.sunrise-btn-orange {
    background: #f97316;
    color: white;
}

.sunrise-btn-orange::before {
    background: #fdba74;
}

.sunrise-btn-orange:hover::before {
    width: 300px;
    height: 300px;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
}

.sunrise-btn-orange:hover .button-text {
    color: #7c2d12;
}

/* Size Variants */
.sunrise-btn-small {
    padding: 0 20px;
    font-size: 14px;
    line-height: 1;
    min-width: 120px;
    height: 40px;
}

.sunrise-btn-large {
    padding: 0 48px;
    font-size: 18px;
    height: 56px;
    min-width: 200px;
}

/* Focus states */
.sunrise-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.sunrise-btn-green:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

.sunrise-btn-orange:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
}

/* Active states */
.sunrise-btn:active {
    transform: translateY(1px);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .sunrise-btn {
        padding: 0 24px;
        font-size: 15px;
        height: 44px;
        min-width: 140px;
    }

    .sunrise-btn-small {
        padding: 0 16px;
        font-size: 13px;
        height: 36px;
        min-width: 100px;
    }

    .sunrise-btn-large {
        padding: 0 32px;
        font-size: 16px;
        height: 52px;
        min-width: 160px;
    }
}

/* Ensure proper stacking context */
.sunrise-btn {
    isolation: isolate;
}

/* Loading state (optional) */
.sunrise-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.sunrise-btn.loading .button-text::after {
    content: "...";
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

