/**
 * Whisper (Private Messages) Styles
 * Secure ephemeral messaging UI
 */

/* Neon Glyph Styling */
.whisper-lock,
.whisper-glyph,
.empty-icon {
    color: #00d4ff;
    text-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff, 0 0 30px #00d4ff;
    font-size: 2em;
}

.whisper-glyph {
    font-size: 1.2em;
    vertical-align: middle;
    margin-right: 8px;
}

/* Whisper Button */
.btn-whisper,
.btn-whispers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #00d4ff33;
    color: #00d4ff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-whisper:hover,
.btn-whispers:hover {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    border-color: #00d4ff66;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
}

.whisper-icon {
    font-size: 14px;
}

.whisper-badge {
    background: #ff4444;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Whisper Modal */
.whisper-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.whisper-modal.active {
    display: flex;
}

.whisper-container {
    background: linear-gradient(145deg, #0d1117 0%, #161b22 100%);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(0, 212, 255, 0.1);
}

.whisper-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #666;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
}

.whisper-close:hover {
    color: #ff4444;
}

.whisper-header {
    text-align: center;
    margin-bottom: 25px;
}

.whisper-lock {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.whisper-header h3 {
    color: #e6edf3;
    font-size: 20px;
    margin: 0 0 8px;
}

.whisper-header h3 span {
    color: #00d4ff;
}

.whisper-subtitle {
    color: #666;
    font-size: 13px;
    margin: 0;
}

.whisper-body textarea {
    width: 100%;
    height: 150px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    padding: 15px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
    transition: border-color 0.3s;
}

.whisper-body textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.whisper-body textarea::placeholder {
    color: #444;
}

.whisper-meta {
    text-align: right;
    color: #666;
    font-size: 12px;
    margin-top: 8px;
}

/* Consent Checkbox - Styled like the reference */
.whisper-consent {
    margin: 20px 0;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: #888;
    font-size: 13px;
    line-height: 1.5;
}

.consent-label input[type="checkbox"] {
    display: none;
}

.consent-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #30363d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: all 0.2s;
    background: #0d1117;
}

.consent-label input:checked + .consent-check {
    background: #ff8c00;
    border-color: #ff8c00;
    color: #000;
}

.consent-text {
    flex: 1;
}

/* Status */
.whisper-status {
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    min-height: 20px;
}

.whisper-status.success {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.whisper-status.error {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

/* Send Button */
.whisper-send-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.whisper-send-btn:hover {
    background: linear-gradient(135deg, #00e5ff 0%, #00b8e6 100%);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
    transform: translateY(-1px);
}

.whisper-send-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Security Info */
.whisper-security-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #30363d;
}

.whisper-security-info p {
    color: #555;
    font-size: 11px;
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   WHISPERS INBOX PAGE
   ============================================ */

.whispers-page {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.whispers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.whispers-header h1 {
    color: #e6edf3;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whispers-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.whispers-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.whisper-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whisper-item {
    background: linear-gradient(145deg, #0d1117 0%, #161b22 100%);
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
}

.whisper-item.unread {
    border-color: #00d4ff44;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.05);
}

.whisper-item:hover {
    border-color: #30363d;
    transform: translateY(-2px);
}

.whisper-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.whisper-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #21262d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #888;
}

.whisper-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.whisper-sender {
    flex: 1;
}

.whisper-sender-name {
    color: #00d4ff;
    font-weight: 500;
    text-decoration: none;
}

.whisper-sender-name:hover {
    text-decoration: underline;
}

.whisper-time {
    color: #555;
    font-size: 12px;
}

.whisper-expires {
    color: #ff8c00;
    font-size: 11px;
    background: rgba(255, 140, 0, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

.whisper-content {
    color: #c9d1d9;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.whisper-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #21262d;
}

.whisper-action-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.whisper-action-btn:hover {
    color: #e6edf3;
}

.whisper-action-btn.delete:hover {
    color: #ff4444;
}

/* Responsive */
@media (max-width: 600px) {
    .whisper-container {
        padding: 20px;
        margin: 20px;
    }
    
    .whispers-page {
        margin: 20px auto;
    }
    
    .whisper-item {
        padding: 15px;
    }
}
