.initials-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1C2A48;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    border: 2px solid #1C2A48;
}

.user-info p {
    margin: 0;
    color: #657186;
    font-size: 0.92em;
}

.profile-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-pic-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 30px;
}

.profile-info h1 {
    margin: 0 0 10px 0;
}

.profile-posts {
    margin-top: 30px;
}

.post {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.post-content {
    margin-bottom: 10px;
}

.post-meta {
    font-size: 0.9em;
    color: #666;
}

/* ========== BASE STYLES ========== */
:root {
    /* Color Variables */
    --primary: #1C2A48;       /* Deep Navy Blue */
    --secondary: #657186;     /* Slate Gray */
    --background: #F4F6F8;    /* Soft Cloud */
    --text: #1A1A1A;         /* Charcoal Black */
    --accent: #D64545;       /* Warm Brick Red */
    --success:  #50C878;      /* emerald green*/
    --warning: #D96C00;      /* Burnt Orange */
    
    /* Font Variables */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-secondary: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

/* ========== TYPOGRAPHY ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Nunito:wght@300;400&family=Poppins:wght@600;700&family=Playfair+Display:ital,wght@0,400;1,400&display=swap');

html {
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; line-height: 1.25; }
h3 { font-size: 1.75rem; line-height: 1.3; }
h4 { font-size: 1.5rem; line-height: 1.35; }
h5 { font-size: 1.25rem; line-height: 1.4; }
h6 { font-size: 1rem; line-height: 1.45; }

p, li, td, th, input, textarea, select, button {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}

.secondary-text {
    font-family: var(--font-secondary);
    color: var(--secondary);
}

.display-text {
    font-family: var(--font-display);
    font-style: italic;
}

/* ========== LAYOUT ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

/* ========== COMPONENTS ========== */
/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #14213d;
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    background-color: #c03a3a;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #505a68;
    transform: translateY(-1px);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--secondary);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(28, 42, 72, 0.2);
}

/* Alerts */
.alert {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
}

.alert-success {
    background-color: #e6f7ee;
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-error {
    background-color: #fde8e8;
    color: var(--accent);
    border-left: 4px solid var(--accent);
}

/* Profile Pictures */
.profile-pic {
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--primary);
}

.profile-pic-small {
    width: 50px;
    height: 50px;
}

.profile-pic-medium {
    width: 80px;
    height: 80px;
}

.profile-pic-large {
    width: 120px;
    height: 120px;
}

.initials-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    font-weight: bold;
    border-radius: var(--radius-full);
    border: 2px solid var(--primary);
}

/* Navbar */
#navbar {
    background-color: var(--primary);
    padding: 0 var(--space-md);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

#navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--space-md);
    height: 100%;
    align-items: center;
}

#navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
    font-family: var(--font-heading);
}

#navbar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#navbar a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
}

/* Search Components */
.search-container {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-form input[type="text"] {
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--secondary);
    transition: all 0.2s ease;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(28, 42, 72, 0.1);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: var(--space-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== UTILITY CLASSES ========== */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.bg-success { background-color: var(--success); }
.bg-warning { background-color: var(--warning); }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mr-0 { margin-right: 0; }

.mt-1 { margin-top: var(--space-xs); }
.mb-1 { margin-bottom: var(--space-xs); }
.ml-1 { margin-left: var(--space-xs); }
.mr-1 { margin-right: var(--space-xs); }

.mt-2 { margin-top: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-sm); }
.ml-2 { margin-left: var(--space-sm); }
.mr-2 { margin-right: var(--space-sm); }

.mt-3 { margin-top: var(--space-md); }
.mb-3 { margin-bottom: var(--space-md); }
.ml-3 { margin-left: var(--space-md); }
.mr-3 { margin-right: var(--space-md); }

.mt-4 { margin-top: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-lg); }
.ml-4 { margin-left: var(--space-lg); }
.mr-4 { margin-right: var(--space-lg); }

.mt-5 { margin-top: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-xl); }
.ml-5 { margin-left: var(--space-xl); }
.mr-5 { margin-right: var(--space-xl); }

/* ========== RESPONSIVE DESIGN ========== */
/* Large desktops (1400px and below) */
@media(max-width:1400px) {
    #navbar .container {
        max-width: 1100px;
    }
}

/* Desktop (1200px and below) */
@media(max-width:1200px) {
    #navbar .container {
        padding: 0 15px;
    }
    
    .search-form input[type="text"] {
        width: 180px;
    }
}

/* Tablet (768px and below) */
@media(max-width:768px) {
    html {
        font-size: 14px;
    }
    
    #navbar {
        padding: 12px 8px;
        height: auto;
        flex-wrap: wrap;
    }
    
    #navbar .container {
        justify-content: space-around;
    }
    
    #navbar ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    #navbar a {
        padding: 7px 10px;
        margin-right: 8px;
        font-size: 0.9rem;
    }
    
    .search-form input[type="text"] {
        width: 150px;
    }
    
    .main-content {
        margin-top: 80px;
    }
    
    .profile-pic-large {
        width: 100px;
        height: 100px;
    }
}

/* Smartphone (640px and below) */
@media(max-width:640px) {
    #navbar {
        padding: 10px 5px;
        min-height: 60px;
    }
    
    #navbar .container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #navbar a {
        padding: 6px 8px;
        margin-right: 5px;
        margin-bottom: 5px;
        font-size: 0.85rem;
    }
    
    .search-container {
        order: 1;
        width: 100%;
        margin-top: 10px;
        justify-content: center;
    }
    
    .search-form {
        width: 100%;
        max-width: 300px;
    }
    
    .search-form input[type="text"] {
        width: 100%;
    }
}

/* Very small screens (480px and below) */
@media(max-width:480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .card {
        padding: var(--space-md);
    }
    
    #navbar a {
        font-size: 0.8rem;
        padding: 5px 6px;
    }
    
    #navbar {
        min-height: 50px;
    }
}