/**
 * Campaigns Action Timeline Block Styles
 * 
 * A 12-month calendar timeline with campaign rows, action bars,
 * and interactive popovers.
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
.campaigns-action-timeline {
    --cat-header-bg: #333333;
    --cat-header-text: #ffffff;
    --cat-cell-border: #e0e0e0;
    --cat-cell-bg-odd: #f5f5f5;
    --cat-cell-bg-even: #ffffff;
    --cat-popover-bg: #333333;
    --cat-popover-text: #ffffff;
    --cat-popover-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    --cat-transition-speed: 300ms;
    --cat-transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --cat-title-width: 220px;
    --cat-row-height: 120px;
    --cat-bar-height: 42px;
    --cat-bar-gap: 10px;
}

/* ==========================================================================
   Base Container
   ========================================================================== */
.campaigns-action-timeline {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
    overflow: visible;
}

/* ==========================================================================
   Desktop Layout
   ========================================================================== */
.cat-desktop {
    display: block;
    width: 100%;
}

/* Header Row */
.cat-header {
    display: grid;
    grid-template-columns: var(--cat-title-width) 1fr;
    background-color: var(--cat-header-bg);
    color: var(--cat-header-text);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-header-campaign {
    padding: 12px 16px;
}

.cat-header-months {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.cat-header-month {
    padding: 12px 8px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Today Indicator
   ========================================================================== */
.cat-today-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 50;
    pointer-events: none;
    transform: translateX(-50%);
    overflow: visible; /* Ensure label is visible outside */
}

.cat-today-label {
    position: absolute;
    top: -18px; /* Move above the header area */
    left: 50%;
    transform: translateX(-50%);
    background-color: #e53935;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 3px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

/* Add an arrow pointing down from the label */
.cat-today-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #e53935;
}

.cat-today-line {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: #e53935;
    transform: translateX(-50%);
}

.cat-today-line-row {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e53935;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
    opacity: 0.8;
}

.cat-today-line-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background-color: #e53935;
    border-radius: 50%;
}

/* Campaign Row */
.cat-campaign-row {
    display: grid;
    grid-template-columns: var(--cat-title-width) 1fr;
    min-height: auto;
    border-bottom: 1px solid var(--cat-cell-border);
    overflow: visible;
    position: relative;
    transition: box-shadow var(--cat-transition-speed) var(--cat-transition-ease);
}

.cat-campaign-row:hover {
    box-shadow: 0 0 0 3px #333333;
    z-index: 10;
}

/* Campaign Title Column */
.cat-campaign-title {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align left for menu list */
    justify-content: center;
    padding: 20px 16px;
    text-align: left;
    gap: 24px;
    overflow: visible;
}

.cat-campaign-name {
    font-weight: 800;
    font-size: 20px;
    line-height: 1.2;
    width: 100%;
}

/* Campaign Menu List */
.cat-campaign-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.cat-campaign-menu li {
    margin: 0;
    padding: 0;
}

/* Text Link Buttons (About Campaign, View Goals) */
.cat-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #000000;
    border-radius: 8px;
    background: transparent;
    color: #000000;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--cat-transition-speed) var(--cat-transition-ease);
    width: 100%;
}

.cat-text-link:hover,
.cat-text-link:focus {
    background-color: #000000;
    color: #ffffff;
    opacity: 1;
    text-decoration: none;
}

/* Campaign title text link - inherit color for contrast */
.cat-campaign-title .cat-text-link {
    color: inherit; /* Uses text_color from PHP */
    border-color: currentColor;
    opacity: 0.9;
}

.cat-campaign-title .cat-text-link:hover,
.cat-campaign-title .cat-text-link:focus {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
    opacity: 1;
}

/* Timeline Grid */
.cat-timeline-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    background-color: var(--cat-cell-bg-even);
    overflow: visible;
}

/* Month cells as background layer */
.cat-month-cell {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 1px solid var(--cat-cell-border);
}

/* Position each month cell */
.cat-month-cell:nth-child(1) { left: 0%; width: 8.333%; }
.cat-month-cell:nth-child(2) { left: 8.333%; width: 8.333%; }
.cat-month-cell:nth-child(3) { left: 16.666%; width: 8.333%; }
.cat-month-cell:nth-child(4) { left: 25%; width: 8.333%; }
.cat-month-cell:nth-child(5) { left: 33.333%; width: 8.333%; }
.cat-month-cell:nth-child(6) { left: 41.666%; width: 8.333%; }
.cat-month-cell:nth-child(7) { left: 50%; width: 8.333%; }
.cat-month-cell:nth-child(8) { left: 58.333%; width: 8.333%; }
.cat-month-cell:nth-child(9) { left: 66.666%; width: 8.333%; }
.cat-month-cell:nth-child(10) { left: 75%; width: 8.333%; }
.cat-month-cell:nth-child(11) { left: 83.333%; width: 8.333%; }
.cat-month-cell:nth-child(12) { left: 91.666%; width: 8.334%; }

/* Quarter shading for visual grouping */
.cat-month-cell.cat-quarter-shaded {
    background-color: var(--cat-cell-bg-odd);
}

.cat-month-cell:not(.cat-quarter-shaded) {
    background-color: var(--cat-cell-bg-even);
}

/* Vertical grid lines for month alignment */
.cat-month-cell::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background-color: var(--cat-cell-border);
    opacity: 0.5;
}

/* Actions Layer - relative position to determine height */
.cat-actions-layer {
    position: relative;
    grid-column: 1 / -1;
    padding: 20px 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    pointer-events: none;
    overflow: visible;
    min-height: 60px;
}

/* Action Bar */
.cat-action-bar {
    position: relative;
    min-height: var(--cat-bar-height);
    flex-shrink: 0;
    box-sizing: border-box;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 12px;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(-20px);
    animation: catBarFadeIn 0.5s var(--cat-transition-ease) forwards;
    transition: padding var(--cat-transition-speed) var(--cat-transition-ease),
                box-shadow var(--cat-transition-speed) var(--cat-transition-ease),
                min-width var(--cat-transition-speed) var(--cat-transition-ease);
    min-width: 0;
}

.cat-action-bar:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

/* Hide dimmed overlay on hover to show full opacity */
.cat-action-bar:hover::after {
    opacity: 0 !important;
}

/* Expanded state - only applied via JS when title is truncated */
.cat-action-bar.is-expanded {
    overflow: visible;
    width: max-content !important;
    padding: 6px 16px;
}

.cat-action-bar.is-expanded .cat-action-title {
    -webkit-line-clamp: unset;
    white-space: nowrap;
    overflow: visible;
}

.cat-action-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: inherit;
    text-align: center;
    line-height: 1.25;
    word-break: break-word;
    hyphens: auto;
}

/* For very narrow bars, show single line */
.cat-action-bar[style*="width: 8."] .cat-action-title,
.cat-action-bar[style*="width: 7."] .cat-action-title,
.cat-action-bar[style*="width: 6."] .cat-action-title,
.cat-action-bar[style*="width: 5."] .cat-action-title,
.cat-action-bar[style*="width: 4."] .cat-action-title,
.cat-action-bar[style*="width: 3."] .cat-action-title,
.cat-action-bar[style*="width: 2."] .cat-action-title,
.cat-action-bar[style*="width: 1."] .cat-action-title {
    -webkit-line-clamp: 1;
    white-space: nowrap;
}

/* Action Bar Fade In Animation */
@keyframes catBarFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   Action Status States with Progress Fill
   ========================================================================== */

/* 
 * Progress visualization: 
 * - Full color = completed portion (before today)
 * - Dimmed color = remaining portion (after today)
 * Uses an overlay technique for broad browser support
 */

/* Completed actions - full solid color with subtle shine */
.cat-action-bar.cat-status-completed {
    background-color: var(--cat-bar-color) !important;
}

.cat-action-bar.cat-status-completed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
    pointer-events: none;
    border-radius: inherit;
}

/* In-progress actions - gradient showing progress */
.cat-action-bar.cat-status-in-progress {
    background-color: var(--cat-bar-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* Dimmed overlay for the incomplete portion */
.cat-action-bar.cat-status-in-progress::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--cat-progress, 0%);
    right: 0;
    background-color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    border-radius: 0 20px 20px 0;
}

/* Note: The main Today vertical line (cat-today-line-row) serves as the 
   progress marker - no separate marker needed inside each action bar */

/* Upcoming actions - fully dimmed */
.cat-action-bar.cat-status-upcoming {
    background-color: var(--cat-bar-color) !important;
    position: relative;
}

.cat-action-bar.cat-status-upcoming::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    border-radius: inherit;
}

/* Note: Upcoming hover overlay is handled by the global .cat-action-bar:hover::after rule */

/* Status icons */
.cat-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    flex-shrink: 0;
}

.cat-status-icon svg {
    display: block;
}

.cat-icon-completed {
    opacity: 0.9;
}

/* In-progress indicator dot */
.cat-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    flex-shrink: 0;
}

.cat-indicator-active {
    background-color: currentColor;
    animation: catPulseDot 1.5s ease-in-out infinite;
}

@keyframes catPulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.8);
    }
}

/* ==========================================================================
   CTA Button Styles
   ========================================================================== */
.cat-action-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 18px;
    background-color: #ffffff;
    color: #333333;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 20px;
    transition: all var(--cat-transition-speed) var(--cat-transition-ease);
}

.cat-action-cta:hover,
.cat-action-cta:focus {
    background-color: #f0f0f0;
    transform: translateX(4px);
    text-decoration: none;
    color: #333333;
}

.cat-action-cta svg {
    transition: transform var(--cat-transition-speed) var(--cat-transition-ease);
}

.cat-action-cta:hover svg,
.cat-action-cta:focus svg {
    transform: translateX(3px);
}

/* ==========================================================================
   Legacy Popovers (kept for compatibility, not used in desktop)
   ========================================================================== */
/* Popovers have been replaced by slide panel on desktop.
   Mobile uses accordion behavior instead. */

/* ==========================================================================
   Action Bar Expand Indicator (Desktop Only)
   ========================================================================== */
.cat-action-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    opacity: 0.7;
    flex-shrink: 0;
    transition: opacity var(--cat-transition-speed) var(--cat-transition-ease),
                transform var(--cat-transition-speed) var(--cat-transition-ease);
}

.cat-action-bar:hover .cat-action-expand,
.cat-action-bar:focus .cat-action-expand {
    opacity: 1;
    transform: translateX(2px);
}

.cat-action-bar.cat-panel-trigger {
    cursor: pointer;
}

/* ==========================================================================
   Slide Panel (Desktop Only) - Contained within block
   ========================================================================== */
.campaigns-action-timeline {
    position: relative;
}

.cat-slide-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
}

.cat-slide-panel.is-open {
    visibility: visible;
    pointer-events: auto;
}

/* Overlay */
.cat-panel-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity var(--cat-transition-speed) var(--cat-transition-ease);
}

.cat-slide-panel.is-open .cat-panel-overlay {
    opacity: 1;
}

/* Panel Content */
.cat-panel-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 50%;
    background-color: #ffffff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cat-slide-panel.is-open .cat-panel-content {
    transform: translate3d(0, 0, 0);
}

/* Close Button */
.cat-panel-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333333;
    cursor: pointer;
    transition: all var(--cat-transition-speed) var(--cat-transition-ease);
}

.cat-panel-close:hover,
.cat-panel-close:focus {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

.cat-panel-close:focus {
    outline: 2px solid #333333;
    outline-offset: 2px;
}

/* Panel Header */
.cat-panel-header {
    padding: 24px 60px 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fafafa;
    text-align: left;
}

.cat-panel-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #333333;
    text-align: left;
}

/* Panel Body */
.cat-panel-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
    text-align: left;
}

.cat-panel-body p {
    margin: 0 0 16px 0;
}

.cat-panel-body p:last-child {
    margin-bottom: 0;
}

.cat-panel-body ul,
.cat-panel-body ol {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.cat-panel-body li {
    margin-bottom: 8px;
}

/* Panel Footer (for CTA) */
.cat-panel-footer {
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
    background-color: #fafafa;
}

.cat-panel-footer:empty {
    display: none;
}

.cat-panel-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background-color: #D50032;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--cat-transition-speed) var(--cat-transition-ease);
}

.cat-panel-cta:hover,
.cat-panel-cta:focus,
.cat-panel-cta:visited,
.cat-panel-cta:active {
    background-color: #B8002B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(213, 0, 50, 0.3);
    text-decoration: none;
    color: #ffffff !important;
}

.cat-panel-cta svg {
    transition: transform var(--cat-transition-speed) var(--cat-transition-ease);
}

.cat-panel-cta:hover svg,
.cat-panel-cta:focus svg {
    transform: translateX(3px);
}

/* ==========================================================================
   Mobile Layout
   ========================================================================== */
.cat-mobile {
    display: none;
}

/* Hide slide panel on mobile */
@media screen and (max-width: 1024px) {
    .cat-slide-panel {
        display: none;
    }
    
    .cat-action-expand {
        display: none;
    }
}

/* ==========================================================================
   Placeholder (Editor Preview)
   ========================================================================== */
.cat-placeholder {
    padding: 40px;
    text-align: center;
    background-color: #f5f5f5;
    border: 2px dashed #ccc;
    color: #666;
}

.cat-placeholder p {
    margin: 0;
    font-size: 16px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .cat-desktop {
        display: none;
    }
    
    .cat-mobile {
        display: block;
    }
    
    /* Mobile Campaign Card */
    .cat-mobile-campaign {
        margin-bottom: 20px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .cat-mobile-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 20px;
    }
    
    .cat-mobile-title {
        flex: unset;
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        width: 100%;
        text-align: left;
    }
    
    .cat-mobile-star {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    
    /* Mobile Description */
    .cat-mobile-description {
        padding: 16px 20px;
        background-color: #f5f5f5;
        border-bottom: 1px solid #e0e0e0;
        display: none;
    }
    
    .cat-mobile-description.is-visible {
        display: block;
        animation: catMobileSlideDown 0.3s var(--cat-transition-ease);
    }
    
    .cat-mobile-description h4 {
        margin: 0 0 8px 0;
        font-size: 14px;
        font-weight: 700;
    }
    
    @keyframes catMobileSlideDown {
        from {
            opacity: 0;
            max-height: 0;
        }
        to {
            opacity: 1;
            max-height: 500px;
        }
    }
    
    /* Mobile Actions List */
    .cat-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
        background-color: #ffffff;
    }
    
    .cat-mobile-action {
        border-radius: 8px;
        overflow: hidden;
    }
    
    .cat-mobile-action-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 12px 16px;
        border: none;
        background: transparent;
        color: inherit;
        font-family: inherit;
        text-align: left;
        cursor: pointer;
    }
    
    .cat-mobile-action-title {
        font-weight: 600;
        font-size: 14px;
    }
    
    .cat-mobile-action-dates {
        font-size: 12px;
        opacity: 0.9;
    }
    
    .cat-mobile-action-desc {
        padding: 0 16px 12px;
        font-size: 13px;
        line-height: 1.5;
        display: none;
    }
    
    .cat-mobile-action-desc.is-visible {
        display: block;
        animation: catMobileSlideDown 0.3s var(--cat-transition-ease);
    }
    
    /* Mobile Action Meta */
    .cat-mobile-action-meta {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .cat-mobile-action-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }
    
    .cat-mobile-action-toggle svg {
        opacity: 0.7;
    }
    
    .cat-mobile-action.is-expanded .cat-mobile-action-toggle {
        transform: rotate(180deg);
    }
    
    .cat-mobile-action-header:disabled {
        cursor: default;
    }
    
    .cat-mobile-action-header:disabled .cat-mobile-action-toggle {
        display: none;
    }
    
    /* Mobile Action Title with Status */
    .cat-mobile-action-title-wrap {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 1;
        min-width: 0;
    }
    
    .cat-mobile-action-title-wrap .cat-status-icon {
        margin-left: 0;
        margin-right: 2px;
    }
    
    .cat-mobile-action-title-wrap .cat-status-indicator {
        margin-right: 4px;
    }
    
    /* Mobile Status States */
    .cat-mobile-action.cat-status-completed {
        position: relative;
    }
    
    .cat-mobile-action.cat-status-completed::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
        pointer-events: none;
        border-radius: inherit;
    }
    
    .cat-mobile-action.cat-status-in-progress {
        box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
    }
    
    .cat-mobile-action.cat-status-upcoming {
        position: relative;
    }
    
    .cat-mobile-action.cat-status-upcoming::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.25);
        pointer-events: none;
        border-radius: inherit;
    }

    /* Remove dimmed overlay when accordion is expanded */
    .cat-mobile-action.is-expanded::after {
        display: none;
    }

    .cat-mobile-action.is-expanded {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* Mobile About Campaign link */
    .cat-mobile-about {
        font-size: 13px;
        padding: 0;
        flex-shrink: 0;
        border: none;
        background: transparent;
        text-decoration: underline;
        text-underline-offset: 2px;
        width: auto;
        color: inherit;
        font-weight: 500;
        opacity: 0.9;
    }

    .cat-mobile-about:hover,
    .cat-mobile-about:focus {
        background: transparent;
        color: inherit;
        opacity: 1;
        text-decoration: underline;
    }
    
    /* Mobile CTA Button */
    .cat-mobile-cta {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 12px;
        background-color: rgba(255, 255, 255, 0.95);
    }

    /* Mobile Goal */
    .cat-mobile-goal {
        padding: 16px 20px;
        background-color: #f9f9f9;
        border-top: 3px solid;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .cat-mobile-goal-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
    }
    
    .cat-mobile-goal-header strong {
        font-size: 14px;
        font-weight: 700;
        color: #333;
    }
    
    .cat-mobile-goal .cat-mobile-star {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    
    .cat-mobile-goal-desc {
        color: #555;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .cat-mobile-header {
        padding: 14px 16px;
    }
    
    .cat-mobile-title {
        font-size: 15px;
    }
    
    .cat-mobile-actions {
        padding: 12px;
        gap: 6px;
    }
    
    .cat-mobile-action-header {
        padding: 10px 14px;
    }
    
    .cat-mobile-action-title {
        font-size: 13px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .cat-slide-panel {
        display: none !important;
    }
    
    .cat-action-bar {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .cat-action-expand {
        display: none;
    }
    
    .cat-text-link {
        display: none;
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .cat-action-bar {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .cat-action-bar.cat-status-in-progress {
        animation: none;
    }
    
    .cat-indicator-active {
        animation: none;
        opacity: 1;
    }
    
    .cat-slide-panel .cat-panel-content,
    .cat-slide-panel .cat-panel-overlay {
        transition: none;
    }
    
    .cat-action-bar:hover {
        transform: none;
    }
    
    .cat-action-bar:hover .cat-action-expand {
        transform: none;
    }
    
    .cat-action-cta:hover,
    .cat-action-cta:focus {
        transform: none;
    }
    
    .cat-action-cta:hover svg,
    .cat-action-cta:focus svg {
        transform: none;
    }
    
    .cat-panel-cta:hover,
    .cat-panel-cta:focus {
        transform: none;
    }
}
