/* ==========================================================================
   BUTTONS
   ========================================================================== */
.save-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-bloom);
    position: relative;
    overflow: hidden;
}

.save-button::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: inset-inline-start 0.6s var(--ease-prism);
}

.save-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px -10px var(--primary-glow);
}

.save-button:hover::before {
    inset-inline-start: 100%;
}

.save-button:active {
    transform: translateY(1px) scale(0.98);
    filter: brightness(0.9);
}

/* Flex wrapper for content alignment */
.save-button .default-state,
.save-button .loading-state {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.save-button>span:not(.dashicons):not(.default-state):not(.loading-state) {
    display: none;
}

/* Hide text inside default/loading state on mobile if needed, though responsive.css handles this better */
/* For now, rely on responsible.css to hide text inside save-button */

.save-button .dashicons,
.save-button .ctc-icon {
    font-size: 1.25rem;
    /* Fallback for dashicons */
    width: 1.25rem;
    height: 1.25rem;
}

/* Feature Button */
.pro-feature-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pro-feature-btn:hover {
    border-color: #f59e0b;
    color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.05);
}

.pro-feature-btn span {
    margin-inline-start: 0.5rem;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.pro-feature-btn:hover span {
    transform: translateX(4px);
}


/* Unsaved Changes Indicator */
.save-button.has-unsaved-changes {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 0 30px -5px rgba(245, 158, 11, 0.45);
}

.save-button.has-unsaved-changes:hover {
    box-shadow: 0 15px 30px -10px rgba(245, 158, 11, 0.45);
}