/**
 * Button Style Fixes for Events Page
 * Ensures Embed and View buttons have matching styles
 */

/* Event Action Buttons - Unified Styling */
.ctod-event-actions a,
.ctod-event-actions button,
.ctod-event-actions .ctod-button,
.ctod-event-actions .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none !important;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #0073aa !important;
    color: #fff !important;
    min-width: 100px;
    box-sizing: border-box;
}

.ctod-event-actions a:hover,
.ctod-event-actions button:hover,
.ctod-event-actions .ctod-button:hover,
.ctod-event-actions .button:hover {
    background: #005a87 !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.ctod-event-actions a:active,
.ctod-event-actions button:active {
    transform: translateY(0);
}

/* Icon styling within buttons */
.ctod-event-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* Outline variant */
.ctod-event-actions .ctod-button-outline {
    background: transparent !important;
    border-color: #0073aa !important;
    color: #0073aa !important;
}

.ctod-event-actions .ctod-button-outline:hover {
    background: #0073aa !important;
    color: #fff !important;
}

/* Event Badge Position Fix */
.ctod-event-image {
    position: relative;
}

.ctod-event-badge {
    position: absolute !important;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.ctod-event-badge.sold-out {
    background: rgba(220, 50, 50, 0.9) !important;
}

.ctod-event-badge.upcoming {
    background: rgba(0, 115, 170, 0.9) !important;
}

.ctod-event-badge.past {
    background: rgba(126, 137, 147, 0.9) !important;
}
