/* Activities & Announcements Styles */

/* ===== ACTIVITY CARD ===== */
.activity-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 255, 0, 0.3);
}

.activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

.activity-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.activity-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 0, 0.5);
}

.activity-author-info {
    flex: 1;
}

.activity-author-name {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.activity-author-nickname {
    font-size: 13px;
    color: #00FF00;
    font-weight: 600;
    margin: 2px 0 0 0;
}

.activity-time {
    font-size: 12px;
    color: #666;
}

.activity-expiry-badge {
    padding: 4px 10px;
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 165, 0, 0.4);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #FF8C00;
}

.activity-expiry-badge.archived {
    background: rgba(128, 128, 128, 0.2);
    border-color: rgba(128, 128, 128, 0.4);
    color: #888;
}

.activity-media {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    cursor: pointer;
}

.activity-video {
    width: 100%;
    max-height: 500px;
}

.activity-caption {
    padding: 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #000;
}

.activity-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 16px;
    border-top: 1px solid rgba(0, 255, 0, 0.1);
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

.activity-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #000;
    font-weight: 600;
}

.activity-stat-icon {
    font-size: 16px;
}

.activity-actions {
    display: flex;
    gap: 12px;
    padding: 16px;
}

.activity-action-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.activity-action-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.2);
}

.activity-action-btn.active {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00FF00;
}

/* ===== ANNOUNCEMENT CARD ===== */
.announcement-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 255, 0, 0.2);
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.announcement-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 0, 0.4);
}

.announcement-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.announcement-author-nickname {
    font-size: 12px;
    color: #00FF00;
    font-weight: 600;
}

.announcement-text {
    font-size: 15px;
    line-height: 1.6;
    color: #000;
    margin: 14px 0;
    white-space: pre-wrap;
}

.announcement-trending-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.trending-topic-chip {
    padding: 4px 12px;
    background: rgba(0, 255, 0, 0.15);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #00AA00;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trending-topic-chip:hover {
    background: rgba(0, 255, 0, 0.25);
    transform: scale(1.05);
}

.announcement-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 255, 0, 0.1);
}

.announcement-time {
    font-size: 12px;
    color: #666;
}

.announcement-stats {
    display: flex;
    gap: 16px;
}

.announcement-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

/* ===== CREATE ACTIVITY MODAL ===== */
.create-activity-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.create-activity-modal.active {
    display: flex;
}

.create-activity-content {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 24px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.create-activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.create-activity-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

.media-preview-area {
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    background: rgba(0, 0, 0, 0.1);
    border: 2px dashed rgba(0, 255, 0, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.media-preview-area:hover {
    border-color: #00FF00;
    background: rgba(0, 255, 0, 0.05);
}

.media-preview-area img,
.media-preview-area video {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.media-preview-placeholder {
    text-align: center;
    color: #666;
}

.media-preview-placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.caption-input {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    font-size: 15px;
    color: #000;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 16px;
}

.caption-input:focus {
    outline: none;
    border-color: #00FF00;
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.1);
}

.privacy-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.privacy-option {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(0, 255, 0, 0.2);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.privacy-option:hover {
    background: rgba(0, 255, 0, 0.1);
}

.privacy-option.selected {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00FF00;
}

.privacy-option-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.privacy-option-label {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.post-activity-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00FF00, #00FF00);
    color: #000;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-activity-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 255, 0, 0.5);
}

.post-activity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== ARCHIVE BADGE ===== */
.archive-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(128, 128, 128, 0.2);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

/* ===== VIEWS COUNT ===== */
.views-count {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #000;
}

.views-icon {
    font-size: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .activity-actions {
        flex-direction: column;
    }
    
    .activity-action-btn {
        width: 100%;
    }
    
    .activity-stats {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .create-activity-content {
        width: 95%;
        padding: 20px;
    }
}

/* ===== ARCHIVED BADGES ===== */
.archived-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(128, 128, 128, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.archived-badge-inline {
    display: inline-block;
    background: rgba(128, 128, 128, 0.2);
    color: #666;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}
