/* relationships.css - Unified Styling with Career/Education/Finances */
/* Uses theme.css variables for consistent theming */

/* ==================== */
/* BASE STYLES */
/* ==================== */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: rgb(var(--color-bg));
    color: rgb(var(--color-text));
}

.theme-transition * {
    transition: 
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

/* ==================== */
/* NAVIGATION */
/* ==================== */
.navbar {
    background-color: rgb(var(--color-navbar)) !important;
    border-bottom: 1px solid rgba(var(--color-border), 0.5);
}

.navbar-brand,
.nav-link {
    color: rgb(var(--color-navbar-text)) !important;
}

.nav-link.active {
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: rgb(var(--color-primary));
    border-radius: 3px;
}

/* ==================== */
/* CHARACTER HEADER */
/* ==================== */
.welcome-header {
    padding: 1.5rem;
    background-color: rgb(var(--color-card));  /* Uses theme.css variable */
    border: 1px solid rgb(var(--color-card-border));
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: rgb(var(--color-text));
}

.welcome-header .display-5 {
    color: inherit;
    text-shadow: 1px 1px 2px rgba(var(--color-text), 0.2);
}

.time-display, .age-display {
    background-color: rgba(var(--color-bg), 0.7);
    color: rgb(var(--color-text));
}

/* ==================== */
/* MAIN CONTENT */
/* ==================== */
.card {
    background-color: rgb(var(--color-card));
    border: 1px solid rgb(var(--color-border));
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(var(--color-text), 0.08);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: rgb(var(--color-primary)) !important;
    color: rgb(var(--color-text-inverse)) !important;
    border-bottom: 1px solid rgba(var(--color-border), 0.5) !important;
    font-weight: 600;
}

.card-header h2 {
    font-size: 1.15rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.card-header i {
    margin-right: 0.5rem;
}

/* ==================== */
/* RELATIONSHIP CARDS */
/* ==================== */
.relationship-card {
    background-color: rgb(var(--color-card));
    border: 1px solid rgb(var(--color-border));
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.relationship-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(var(--color-text), 0.1);
}

.relationship-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.relationship-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgb(var(--color-bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.relationship-name {
    font-weight: 600;
    color: rgb(var(--color-text));
    margin-bottom: 0.25rem;
}

.relationship-type {
    font-size: 0.85rem;
    color: rgb(var(--color-text-secondary));
}

.relationship-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgb(var(--color-text-muted));
    margin-top: 0.5rem;
}

.relationship-progress {
    margin-top: 0.75rem;
}

.progress {
    background-color: rgba(var(--color-border), 0.5);
    height: 6px;
    border-radius: 3px;
}

.progress-bar {
    background-color: rgb(var(--color-primary));
}

/* Flag icons */
.flag-icon {
    width: 1.2em;
    height: 1.2em;
    border-radius: 2px;
    margin-left: 0.5rem;
}

/* Buttons use shared styling from ui-kit/common; no overrides needed here. */

/* ==================== */
/* MODAL */
/* ==================== */
.modal-content {
    background-color: rgb(var(--color-card));
    border: 1px solid rgb(var(--color-border));
    border-radius: 0.75rem;
}

.modal-header {
    background-color: rgb(var(--color-primary)) !important;
    color: rgb(var(--color-text-inverse)) !important;
    border-bottom: 1px solid rgb(var(--color-border)) !important;
}

/* ==================== */
/* FOOTER */
/* ==================== */
footer {
    background-color: rgb(var(--color-navbar)) !important;
    color: rgb(var(--color-navbar-text)) !important;
}

/* ==================== */
/* RESPONSIVE ADJUSTMENTS */
/* ==================== */
@media (max-width: 768px) {
    .relationship-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .relationship-avatar {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .relationship-meta {
        flex-direction: column;
    }
    
    .relationship-meta span {
        margin-bottom: 0.25rem;
    }
}

/* ==================== */
/* RELATIONSHIP LISTS */
/* ==================== */
.relationships-list {
    min-height: 200px;
}

/* Empty state styling */
.relationships-list .empty-state {
    text-align: center;
    padding: 2rem;
    color: rgb(var(--color-text-muted));
}

/* Loading spinner */
.spinner-border {
    color: rgb(var(--color-primary));
}

/* Badges */
.badge {
    font-weight: 500;
}
