/* Search */
.search-input {
    width: 100%;
    padding: var(--space-md);
    padding-left: 40px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-wrapper {
    position: relative;
    margin-bottom: var(--space-lg);
}

.search-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

.search-results {
    margin-top: var(--space-lg);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-result-item:hover {
    background: var(--surface-elevated);
    border-color: var(--border-light);
}

.search-result-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.search-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 500;
    color: var(--text-color);
}

.search-result-username {
    font-size: 13px;
    color: var(--text-muted);
}

/* Notifications - New Design */
.notif-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--surface-color);
    border-radius: 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.notif-card:hover {
    background: var(--surface-elevated);
}

.notif-card.unread {
    background: rgba(255, 107, 107, 0.04);
}

/* Notification Icon */
.notif-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-icon svg {
    display: block;
}

/* Circle notification icon - gradient box */
.notif-circle-icon {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge icon */
.notif-badge-icon {
    font-size: 18px;
}

/* Notification Body */
.notif-body {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
    min-width: 0;
}

.notif-actor {
    font-weight: 600;
    color: var(--text-color);
}

.notif-muted {
    color: var(--text-muted);
}

.notif-spark {
    color: var(--spark-color);
    font-weight: 600;
}

.notif-heat {
    color: var(--heat-color);
    font-weight: 600;
}

.notif-subtext {
    font-size: 11px;
    margin-top: 2px;
}

/* Notification Time */
.notif-time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* No notifications */
.no-notifications {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Legacy notification styles (for compatibility) */
.notification-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: var(--surface-elevated);
}

.notification-item.unread {
    background: rgba(255, 107, 107, 0.05);
}

/* Voice Recording Styles */
.voice-record-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    color: var(--text-secondary);
}

.voice-record-btn:hover {
    background: var(--surface-elevated);
    border-color: var(--border-light);
    color: var(--text-color);
}

.voice-record-btn.recording {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
    animation: pulse 1s infinite;
}

.voice-record-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--danger-color);
    color: white;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
}

.voice-record-indicator .recording-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: var(--radius-full);
    animation: pulse 1s infinite;
}

/* Audio Player in Posts */
.audio-player {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.audio-play-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.audio-play-btn:hover {
    transform: scale(1.1);
}

.audio-waveform {
    flex: 1;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.audio-waveform-bar {
    width: 3px;
    background: var(--border-light);
    border-radius: 2px;
    transition: height var(--transition-fast);
}

.audio-waveform-bar.active {
    background: var(--primary-color);
}

.audio-time {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 40px;
    text-align: right;
}

/* Image viewer */
.image-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-viewer.active {
    display: flex;
}

.image-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-viewer-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--surface-color);
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gradient text utility */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Coffee match card */
.coffee-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    margin-bottom: var(--space-md);
}

.coffee-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
}

.coffee-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.coffee-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: var(--space-lg);
}

/* Questions/QA styles */
.question-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.question-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.question-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-content {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.question-answer {
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
}

.question-answer-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

/* Settings styles */
.settings-group {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:hover {
    background: var(--surface-elevated);
}

.settings-item-label {
    font-weight: 500;
    color: var(--text-color);
}

.settings-item-value {
    color: var(--text-muted);
    font-size: 14px;
}

/* Toggle switch moved to circles.css */

/* Recommendation card */
.recommendation-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.recommendation-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.recommendation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommendation-info {
    flex: 1;
}

.recommendation-name {
    font-weight: 600;
    color: var(--text-color);
}

.recommendation-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.recommendation-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-sm) var(--space-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: var(--space-md);
}

.back-btn:hover {
    background: var(--surface-elevated);
    border-color: var(--border-light);
}

.back-btn i {
    width: 16px;
    height: 16px;
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    font-size: 14px;
}

/* Blocked User Item */
.blocked-user-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.blocked-user-item .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.blocked-user-item .user-info {
    flex: 1;
}

.blocked-user-item .user-name {
    font-weight: 500;
    color: var(--text-color);
}

.blocked-user-item .user-username {
    font-size: 13px;
    color: var(--text-muted);
}
