/* ==========================================================================
   FitTrack Pro - Feature Components (Active Workout, Achievements, Splash, Share)
   ========================================================================== */

/* Active Workout & Rest Pause Timer Components */
.active-workout-banner {
    background: var(--accent-gradient);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.timer-box {
    text-align: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.timer-display {
    font-size: 3.2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
    margin: 0.5rem 0;
    letter-spacing: -0.03em;
    transition: all 0.2s ease;
}

.timer-display.running {
    color: var(--success);
}

.timer-display.warning {
    color: var(--danger);
    animation: blinkWarning 0.8s infinite;
}

.timer-display.finished {
    color: var(--success);
    transform: scale(1.05);
}

@keyframes blinkWarning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.preset-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.btn-preset {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-preset:hover {
    background: var(--primary);
    color: white;
    border-color: transparent;
}

.set-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.set-table th, .set-table td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.set-table th {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Achievements Grid & Cards */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
        gap: 1.25rem;
    }
}

.achievement-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.achievement-card.unlocked {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, rgba(18, 23, 34, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
}

.achievement-card.locked {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.achievement-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    margin-bottom: 0.75rem;
}

.achievement-card.unlocked .achievement-icon-box {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.achievement-card.locked .achievement-icon-box {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Gamification & Leveling Component */
.gamification-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.badges-scroll-container {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.3) transparent;
}

.badges-scroll-container::-webkit-scrollbar {
    height: 4px;
}
.badges-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}
.badges-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
    border-radius: 4px;
}

.badge-item-showcase {
    flex: 0 0 auto;
    width: 135px;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    text-align: center;
    scroll-snap-align: start;
}

/* Workout Completion Splash Screen */
#ftCompletionSplash {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

#ftCompletionSplash.ft-splash-visible {
    opacity: 1;
    pointer-events: auto;
}

#ftCompletionSplash.ft-splash-exit {
    opacity: 0;
    pointer-events: none;
}

.ft-splash-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 16, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.ft-splash-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(160deg, rgba(22, 29, 48, 0.95) 0%, rgba(12, 16, 28, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 2.5rem 2rem 2rem;
    width: min(92vw, 400px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(59, 130, 246, 0.1);
    transform: translateY(0);
    animation: ft-splash-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes ft-splash-pop {
    from { transform: scale(0.85) translateY(30px); opacity: 0; }
    to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.ft-confetti-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    pointer-events: none;
    z-index: 0;
}

.ft-splash-icon {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ft-splash-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.4);
    animation: ft-ring-pulse 2s ease infinite;
}

@keyframes ft-ring-pulse {
    0%, 100% { transform: scale(1);    opacity: 0.6; }
    50%       { transform: scale(1.12); opacity: 1;   }
}

.ft-splash-emoji {
    font-size: 3.2rem;
    line-height: 1;
    position: relative;
    z-index: 1;
    animation: ft-bounce-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes ft-bounce-in {
    from { transform: scale(0) rotate(-20deg); }
    to   { transform: scale(1) rotate(0deg);   }
}

.ft-splash-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    position: relative;
    z-index: 1;
    text-align: center;
}

.ft-splash-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: -0.75rem 0 0;
    position: relative;
    z-index: 1;
    text-align: center;
}

.ft-splash-stats {
    display: flex;
    gap: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.ft-splash-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    transition: background var(--transition-fast);
}

.ft-splash-stat:last-child { border-right: none; }
.ft-splash-stat-icon  { font-size: 1.3rem; }
.ft-splash-stat-value { font-size: 1.15rem; font-weight: 700; color: var(--text-main); }
.ft-splash-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.ft-splash-share-btn {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    font-family: inherit;
}

.ft-splash-share-btn:hover  { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(59, 130, 246, 0.45); }
.ft-splash-share-btn:active { transform: scale(0.97); }

.ft-splash-countdown-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
}

.ft-splash-countdown {
    position: relative;
    width: 44px;
    height: 44px;
}

.ft-countdown-svg {
    width: 44px;
    height: 44px;
    transform: rotate(-90deg);
}

.ft-countdown-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3;
}

.ft-countdown-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.9s linear;
}

.ft-countdown-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.ft-splash-redirect {
    font-size: 0.82rem;
    color: var(--text-subtle);
}

/* Share Bottom Sheet Modal */
#ftShareSheet {
    position: fixed;
    inset: 0;
    z-index: 9100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#ftShareSheet.ft-sheet-visible {
    opacity: 1;
    pointer-events: auto;
}

#ftShareSheet.ft-sheet-exit {
    opacity: 0;
    pointer-events: none;
}

.ft-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ft-sheet-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(22, 29, 48, 0.99) 0%, rgba(10, 13, 20, 1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px 28px 0 0;
    padding: 0.75rem 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 92vh;
    overflow-y: auto;
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 20px));
}

#ftShareSheet.ft-sheet-visible .ft-sheet-panel {
    transform: translateY(0);
}

#ftShareSheet.ft-sheet-exit .ft-sheet-panel {
    transform: translateY(100%);
}

.ft-sheet-handle {
    width: 44px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto 0.5rem;
    flex-shrink: 0;
}

.ft-sheet-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

/* Share Preview Card */
.ft-share-preview-card {
    background: linear-gradient(135deg, #1a2340 0%, #0f172a 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.ft-share-preview-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent);
    pointer-events: none;
}

.ft-share-card-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ft-share-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.ft-share-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: -0.2rem;
}

.ft-share-card-stats {
    display: flex;
    gap: 0;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.ft-share-card-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.2rem;
}

.ft-share-card-stat:last-child { border-right: none; }

.ft-share-card-stat-val {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.ft-share-card-stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.ft-share-card-footer {
    font-size: 0.72rem;
    color: var(--text-subtle);
    margin-top: 0.25rem;
    opacity: 0.7;
}

/* Action Buttons */
.ft-sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ft-sheet-action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    font-family: inherit;
    color: var(--text-main);
    text-align: left;
}

.ft-sheet-action-btn:hover  { background: rgba(255, 255, 255, 0.08); }
.ft-sheet-action-btn:active { transform: scale(0.98); background: rgba(255, 255, 255, 0.06); }
.ft-sheet-action-btn:disabled { opacity: 0.5; cursor: wait; }

.ft-sheet-action-icon { font-size: 1.5rem; flex-shrink: 0; }

.ft-sheet-action-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ft-sheet-action-label {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text-main);
}

.ft-sheet-action-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.ft-sheet-action-arrow {
    color: var(--text-subtle);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ft-sheet-close-btn {
    width: 100%;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
    font-family: inherit;
}

.ft-sheet-close-btn:hover { background: rgba(255, 255, 255, 0.1); }

/* Share button on workout cards (list + dashboard) */
.btn-share-workout {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-sm);
    color: #a78bfa;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    font-family: inherit;
}

.btn-share-workout:hover  { background: rgba(139, 92, 246, 0.22); }
.btn-share-workout:active { transform: scale(0.96); }

/* Mobile Feature Overrides (< 600px) */
@media (max-width: 600px) {
    .gamification-card {
        padding: 1.1rem;
    }

    .gamification-header-content {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.85rem !important;
    }

    .gamification-header-content .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .badge-item-showcase {
        width: 118px;
        padding: 0.7rem 0.5rem;
    }

    .preset-buttons {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 0.35rem !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .preset-buttons::-webkit-scrollbar {
        display: none !important;
    }

    .btn-preset {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 0.5rem 0.85rem !important;
        font-size: 0.82rem !important;
    }

    .set-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 0.5rem;
    }

    .set-table {
        width: 100% !important;
        min-width: 310px;
    }

    .set-table th,
    .set-table td {
        padding: 0.4rem 0.2rem !important;
        font-size: 0.82rem !important;
    }

    .set-table input.form-control {
        font-size: 16px !important;
        padding: 0.4rem 0.2rem !important;
    }

    .quick-add-ex-btn {
        font-size: 0.82rem !important;
        padding: 0.45rem 0.75rem !important;
    }
}

/* ==========================================================================
   Progress Photo Documentation & Community Image Feed Extensions
   ========================================================================== */

/* Progress Photo Grid & Cards */
.progress-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.progress-photo-card {
    background: var(--bg-surface-elevated, #1a2232);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.progress-photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(168, 85, 247, 0.4);
}

.progress-photo-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #0d1117;
    overflow: hidden;
}

.progress-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.progress-photo-card:hover .progress-photo-img {
    transform: scale(1.04);
}

.progress-photo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 5;
}

.progress-photo-badge:hover {
    transform: scale(1.06);
}

.badge-private {
    background: rgba(15, 23, 42, 0.82);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-public {
    background: rgba(139, 92, 246, 0.85);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.5);
}

.progress-photo-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.82);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.progress-photo-card:hover .progress-photo-delete-btn {
    opacity: 1;
}

.progress-photo-delete-btn:hover {
    transform: scale(1.1);
    background: #ef4444;
}

.progress-photo-meta {
    padding: 0.75rem;
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.progress-photo-date {
    color: var(--text-muted);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.progress-photo-weight {
    color: #a78bfa;
    font-weight: 600;
}

.progress-photo-notes {
    color: var(--text-main);
    word-break: break-word;
    margin-top: 0.1rem;
}

.progress-photos-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
}

/* Upload Dropzone */
.photo-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.photo-dropzone:hover {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.04);
}

/* Community Feed Post Images & Workout Badges */
.post-image-wrap {
    margin-top: 0.85rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0d1117;
    max-height: 420px;
    border: 1px solid var(--border-color);
}

.post-image {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.post-workout-badge-card {
    margin-top: 0.75rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
}

.post-workout-badge-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #c4b5fd;
    margin-bottom: 0.35rem;
}

.post-workout-badge-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-main);
    font-weight: 500;
}

/* Community Post Actions Bar & Admin Moderation Badges */
.post-actions-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.post-action-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
    font-family: inherit;
}

.post-action-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.btn-delete-post:hover {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.12) !important;
}

.btn-report-post:hover {
    color: #fbbf24 !important;
    background: rgba(245, 158, 11, 0.12) !important;
}

.btn-admin-delete-post {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    font-weight: 600 !important;
}

.btn-admin-delete-post:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #ffffff !important;
}

.community-post-reported {
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.15) !important;
}

.community-reported-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-size: 0.82rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 600px) {
    .progress-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.75rem;
    }

    .progress-photo-delete-btn {
        opacity: 1; /* Always show delete icon on touch mobile */
    }
}
