/* Discord-style Profile Card & Dropdown Status styles */

:root {
    --card-bg-light: #ffffff;
    --card-bg-dark: #18191c;
    --profile-card-bg: var(--card-bg-light);
    --profile-card-text: #2e3033;
    --profile-card-muted: #4f5660;
    --profile-card-border: rgba(0, 0, 0, 0.08);
    --profile-card-subcard: #f2f3f5;
}

[data-theme="dark"] {
    --profile-card-bg: var(--card-bg-dark);
    --profile-card-text: #dbdee1;
    --profile-card-muted: #949ba4;
    --profile-card-border: rgba(255, 255, 255, 0.08);
    --profile-card-subcard: #111214;
}

/* Dropdown Status Styles */
.dropdown-status {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-status-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid var(--profile-card-border);
    border-left: 3px solid var(--red, #e31b23);
}

[data-theme="dark"] .dropdown-status-display {
    background: rgba(255, 255, 255, 0.01);
}

.dropdown-status-display:hover {
    background: rgba(227, 27, 35, 0.04);
    border-color: rgba(227, 27, 35, 0.2);
    border-left-color: var(--red-h, #c4121a);
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .dropdown-status-display:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-status-display i {
    font-size: 14px;
    color: var(--red, #e31b23);
}

.dropdown-status-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-status-text.active {
    color: var(--text);
    font-weight: 500;
}

.dropdown-status-edit {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 11px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.dropdown-status-display:hover .dropdown-status-edit {
    opacity: 1;
    color: var(--red, #e31b23);
}

.dropdown-status-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 2px;
}

.dropdown-status-input {
    width: 100%;
    background: var(--profile-card-subcard);
    border: 1px solid var(--profile-card-border);
    color: var(--profile-card-text);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.dropdown-status-input:focus {
    border-color: var(--red, #e31b23);
    box-shadow: 0 0 0 3px rgba(227, 27, 35, 0.12);
    background: var(--profile-card-bg);
}

.dropdown-status-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 4px;
}

.dropdown-status-actions button {
    background: none;
    border: none;
    cursor: pointer;
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.dropdown-status-save {
    background: var(--red, #e31b23) !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(227, 27, 35, 0.15);
}

.dropdown-status-save::after {
    content: "Kaydet";
}

.dropdown-status-save:hover {
    background: var(--red-h, #c4121a) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(227, 27, 35, 0.3);
}

.dropdown-status-cancel {
    background: var(--profile-card-subcard) !important;
    color: var(--profile-card-text) !important;
    border: 1px solid var(--profile-card-border) !important;
}

.dropdown-status-cancel::after {
    content: "Vazgeç";
}

.dropdown-status-cancel:hover {
    background: var(--bg-hover, rgba(0,0,0,0.05)) !important;
    transform: translateY(-1px);
}

.dropdown-status-clear {
    background: rgba(239, 68, 68, 0.06) !important;
    color: #ef4444 !important;
    margin-right: auto;
    border: 1px solid rgba(239, 68, 68, 0.12) !important;
}

.dropdown-status-clear::after {
    content: "Temizle";
}

.dropdown-status-clear:hover {
    background: #ef4444 !important;
    color: white !important;
    border-color: #ef4444 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

/* Profile Card Overlay */
.profile-card-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.profile-card-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Profile Card Popup Container */
.profile-card-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 99999;
    width: 100%;
    max-width: 360px;
    background: var(--profile-card-bg);
    color: var(--profile-card-text);
    border: 1px solid var(--profile-card-border);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-card-popup.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* Banner area */
.profile-card-banner {
    height: 100px;
    width: 100%;
    position: relative;
}

.profile-card-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
    z-index: 10;
}

.profile-card-close:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

/* Avatar container overlapping banner */
.profile-card-avatar-container {
    position: relative;
    padding: 0 16px;
    margin-top: -45px;
    margin-bottom: 12px;
}

.profile-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 6px solid var(--profile-card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: white;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

/* Content wrapper */
.profile-card-body {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Info: Name, badge, status */
.profile-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-card-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-card-username {
    font-size: 20px;
    font-weight: 800;
    color: var(--profile-card-text);
}

.profile-card-badge {
    color: #22c55e;
    font-size: 16px;
}

.profile-card-status {
    font-size: 13px;
    color: var(--profile-card-muted);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.profile-card-status i {
    color: var(--red);
}

/* Sub-sections (About Me, stats, etc.) */
.profile-card-divider {
    height: 1px;
    background: var(--profile-card-border);
}

.profile-card-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-card-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--profile-card-muted);
}

.profile-card-text {
    font-size: 13px;
    color: var(--profile-card-text);
    line-height: 1.4;
    word-break: break-word;
}

/* Stats */
.profile-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: var(--profile-card-subcard);
    padding: 10px 12px;
    border-radius: 10px;
}

.profile-card-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}

.profile-card-stat-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--profile-card-text);
}

.profile-card-stat-lbl {
    font-size: 10px;
    color: var(--profile-card-muted);
}

/* Action button area */
.profile-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.profile-card-btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.profile-card-btn-primary {
    background: var(--red);
    color: white;
}

.profile-card-btn-primary:hover {
    background: var(--red-h);
}

.profile-card-btn-secondary {
    background: var(--profile-card-subcard);
    color: var(--profile-card-text);
    border: 1px solid var(--profile-card-border);
}

.profile-card-btn-secondary:hover {
    background: var(--bg-hover);
}

.profile-card-btn-disabled {
    background: var(--profile-card-subcard);
    color: var(--profile-card-muted);
    cursor: not-allowed;
    border: 1px solid var(--profile-card-border);
}

.profile-card-friend-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.profile-card-btn-accept {
    background: #22c55e;
    color: white;
}

.profile-card-btn-accept:hover {
    background: #1ab050;
}

.profile-card-btn-reject {
    background: #ef4444;
    color: white;
}

.profile-card-btn-reject:hover {
    background: #dc2626;
}

/* Rich Presence / Activity Box Styles */
.profile-card-activity-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-card-activity-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--profile-card-subcard);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--profile-card-border);
    position: relative;
    transition: all 0.2s ease;
}

.profile-card-activity-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .profile-card-activity-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-card-activity-icon-container {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

[data-theme="dark"] .profile-card-activity-icon-container {
    background: rgba(255, 255, 255, 0.05);
}

.profile-card-activity-icon {
    font-size: 24px;
}

.profile-card-activity-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-card-activity-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--profile-card-muted);
}

.profile-card-activity-video {
    font-size: 13px;
    font-weight: 700;
    color: var(--profile-card-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-card-activity-room {
    font-size: 11px;
    font-weight: 600;
    color: var(--profile-card-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-card-activity-platform {
    font-size: 11px;
    color: var(--profile-card-muted);
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-card-activity-join-btn {
    align-self: center;
    background: #23a55a; /* Discord Green */
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-card-activity-join-btn:hover {
    background: #1a7f45;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(35, 165, 90, 0.3);
}

.profile-card-activity-join-btn:active {
    transform: translateY(0);
}
