:root {
    --primary-color: #6DA6D1;
    --primary-dark: #3F7FAA;
    --bg-color: #E9F4FF;
    --card-bg: #FFFFFF;
    --text-color: #333;
    --link-color: #00468C;
    --border-color: #C3D9FF;
    --error-color: #D32F2F;
    --success-color: #388E3C;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Verdana', 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    font-size: 14px;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--primary-color);
    padding: 10px 0;
    border-bottom: 1px solid var(--primary-dark);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 0 var(--primary-dark);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav a {
    color: #fff;
    font-weight: bold;
}

/* Auth Pages */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-container {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-container .logo {
    color: var(--primary-dark);
    text-shadow: none;
    margin-bottom: 20px;
    display: block;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn-primary {
    background-color: var(--primary-dark);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--link-color);
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    width: auto;
}

/* Layout Grid */
.main-layout {
    display: grid;
    grid-template-columns: 200px 1fr 200px; /* Sidebar, Content, Sidebar */
    gap: 15px;
    padding: 20px 0;
}

@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

.sidebar-left, .sidebar-right, .main-content {
    background: transparent;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.card h3 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 16px;
}

/* Profile specific */
.profile-pic {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #eee;
}

.user-info p {
    margin-bottom: 5px;
}

/* Alerts */
.alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

.alert-success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.alert-error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* Communities & Topics */
.community-list, .topic-list, .friend-list {
    list-style: none;
}

.community-item, .topic-item, .friend-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topic-item {
    display: block;
}

.topic-meta {
    font-size: 12px;
    color: #777;
}

.post {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    display: flex;
    gap: 15px;
}

.post-author {
    width: 80px;
    text-align: center;
    font-size: 12px;
}

.post-author img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-bottom: 5px;
}

.post-content {
    flex: 1;
}

/* Scraps */
.scrap-item {
    background: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.scrap-header {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 12px;
}
