/* Reply Popup Styles */
.reply-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.reply-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.reply-popup-container {
    position: relative;
    background: var(--background);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
}

.reply-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.05);
}

.reply-popup-header h3 {
    color: var(--primary);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reply-popup-close {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.reply-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.reply-popup-content {
    padding: 25px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

/* Inline composer gauge styles for edit popup */
.gauges {
    display: inline-flex;
    vertical-align: middle;
    padding: 15px 5px;
    border: #94a3b8 dot-dash 1px;
    border-radius: 10px;
}

.gauges [data-value] {
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.15s ease;
}
.gauges [data-value].active {
    opacity: 1;
}

[data-role="gauge-clear"] {
    cursor: pointer;
}

.reply-popup-post-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.post-preview-content {
    color: var(--primary);
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.5;
}

.reply-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reply-textarea {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    color: var(--primary);
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
}

.reply-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

.reply-textarea::placeholder {
    color: var(--primary);
    opacity: 0.5;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary);
    color: var(--background);
    border: none;
}

.btn-primary:hover {
    background: var(--background);
    color: var(--primary);
    transform: translateY(-2px);
    border: none;
}

.btn-secondary {
    background: var(--background);
    color: var(--primary);
    border: none;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--background);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reply-popup-container {
        width: 95%;
        margin: 20px;
    }
    
    .reply-popup-header {
        padding: 15px 20px;
    }
    
    .reply-popup-content {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

