/* Base styles */
:root {
    --primary-dark: #264653;
    --primary-light: #2a9d8f;
    --secondary-color: hsl(27, 87%, 67%);
    --secondary-dark: #e76f51;
    --secondary-light: #f4a261;
    --text-dark: #283618;
    --text-light: #fefae0;
    --accent-primary: #e9c46a;
    --background-primary: #fefae0;
    --background-secondary: #faedcd;
    --shadow-color: rgba(38, 70, 83, 0.1);
    --border-radius: 8px;
    --white: #FFFFFF;
    --gray-light: #f5f5f5;
    --gray-border: #dddddd;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-primary);
}

textarea {
    font-family: Arial, sans-serif;
    font-size: 1rem;
}

.container {
    margin: 0 auto;
    padding: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background-color: var(--primary-dark);
    color: white;
}

.button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.button.secondary {
    background-color: var(--background-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-dark);
}

.button.secondary:hover {
    background-color: var(--primary-dark);
    color: white;
}


/* Header styles */
header {
    background-color: var(--primary-dark);
    padding: 1rem 0;
    color: var(--text-light);    
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

header h1 a, header h1 a:hover {
    color: var(--text-light);
    text-decoration: none;
}

header nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .header-content {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--primary-dark);
        padding: 1rem;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 1rem;
        z-index: 1000;
    }

    .main-nav.active {
        display: flex;
    }
}

header nav a, header nav a:hover {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.expand-feed {
    display: none;
    padding: 10px;
    margin: 10px 0;
    background-color: #f0f2f5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #1877f2;
    transition: background-color 0.2s;
}

.expand-feed:hover {
    background-color: #e4e6e9;
}

.show-more-featured {
    display: none;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background-color: #f0f2f5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #1877f2;
    transition: background-color 0.2s;
}

.show-more-featured:hover {
    background-color: #e4e6e9;
}


/* Conversation header styles */
.conversation-header {
    padding: 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
}

.conversation-header .current-chat-user {
    font-weight: 500;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Mobile header styles */
.mobile-header {
    display: none;
    padding: 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
}

.mobile-header .back-button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-dark);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
    height: 45px;
}

.mobile-header .back-button:hover {
    background: var(--primary-light);
}

@media (max-width: 768px) {
    .mobile-header {
        display: block;
    }
}

@media (min-width: 769px) {
    .feed-container {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "post-form post-form"
            "featured everything";
    }
    
    .post-form-section {
        grid-area: post-form;
    }
    
    .featured-feed {
        grid-area: featured;
    }
    
    .everything-else {
        grid-area: everything;
    }
}



/* Profile page styles */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.member-since {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--background-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.stat-number {
    margin: 0.5rem 0 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section h2 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.profile-settings {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--card-shadow);
}

.profile-settings h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.timezone-form {
    max-width: 400px;
}

.timezone-form .form-group {
    margin-bottom: 20px;
}

.timezone-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.timezone-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--primary-dark);
    border-radius: 4px;
    background-color: var(--white);
    color: var(--text-primary);
    font-size: 1em;
    max-height: 300px;
    overflow-y: auto;
}

.timezone-form optgroup {
    font-weight: 600;
    color: var(--text-primary);
    padding: 8px;
}

.timezone-form option {
    padding: 4px 8px;
    color: var(--text-primary);
}

.timezone-form option:hover {
    background-color: var(--primary-color);
    color: white;
}

.timezone-form select:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.timezone-form button {
    background-color: var(--primary-dark);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.timezone-form button:hover {
    background-color: var(--primary-dark);
}

.profile-bio {
    background: var(--secondary-light);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    line-height: 1.6;
}

.profile-bio p {
    text-align: left;
    margin: 0;
    color: var(--text-primary);
}

.bio-form {
    margin-bottom: 30px;
}

.bio-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--primary-dark);
    border-radius: 4px;
    background-color: var(--white);
    color: var(--text-primary);
    font-size: 1em;
    line-height: 1.5;
    resize: vertical;
}

.bio-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .profile-container {
        padding: 1rem;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1rem;
    }
}

/* Forum styles */
.forums-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.forums-header {
    text-align: center;
    margin-bottom: 2rem;
}

.forums-header h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.forums-description {
    color: var(--text-dark);
}

.forum-card {
    background: var(--background-primary);
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease;
}

.forum-card:hover {
    transform: translateY(-2px);
}

.forum-info {
    flex: 1;
}

.forum-info h2 {
    text-align: left;
    margin-top: 1.5rem;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.forum-info h2 a {
    color: var(--text-dark);
    text-decoration: none;
}

.forum-info h2 a:hover {
    color: var(--primary-dark);
}

.forum-description {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.forum-stats {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.forum-stats span {
    display: inline-flex;
    align-items: center;
}

.forum-stats .topic-count::before {
    content: "📑";
    margin-right: 0.25rem;
}

.forum-stats .post-count::before {
    content: "💬";
    margin-right: 0.25rem;
}

.forum-stats .last-activity::before {
    content: "🕒";
    margin-right: 0.25rem;
}

.forum-info .description {
    color: #666;
    margin-bottom: 0.5rem;
}

/* Topic styles */
.topic-card {
    background: var(--background-primary);
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.topic-card.pinned {
    background: var(--background-secondary);
    border-color: var(--accent-primary);
}

.topic-info h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.topic-meta {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.pin-icon {
    margin-right: 0.5rem;
}


/* Auth pages */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--accent-primary);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-container h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-links a {
    color: var(--primary-dark);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}


/* Post styles */
.post-card {
    background: var(--background-primary);
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 2rem;
}

.post-sidebar {
    width: 200px;
    flex-shrink: 0;
}

.author-info {
    text-align: center;
}

.post-date {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

.post-content {
    flex: 1;
    line-height: 1.6;
}

.reply-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-light);
}

.reply-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--primary-light);
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 1rem;
}

.topic-locked-message {
    text-align: center;
    padding: 1rem;
    background: var(--background-secondary);
    border-radius: 4px;
    margin-top: 2rem;
}

.breadcrumbs {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.breadcrumbs a {
    color: var(--primary-light);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
}

/* Mobile visibility classes */
.mobile-hidden {
    display: none !important;
}

.mobile-only {
    display: none !important;
}

.hidden {
    display: none !important;
}

/* Mobile styles */
@media (max-width: 767px) {
    .mobile-only:not(.hidden) {
        display: block !important;
    }

    .mobile-hidden {
        display: none !important;
    }

    .featured-feed .post {
        display: block;
    }
}

/* Desktop styles */
@media (min-width: 768px) {
    .mobile-hidden {
        display: block !important;
    }

    .mobile-only {
        display: none !important;
    }

    .featured-feed .post {
        display: block !important;
    }
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .expand-feed {
        display: block;
    }
}

/* Conversation header styles */
.conversation-header {
    padding: 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
}

.conversation-header .current-chat-user {
    font-weight: 500;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Mobile header styles */
.mobile-header {
    display: none;
    padding: 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
}

.mobile-header .back-button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-dark);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
    height: 45px;
}

.mobile-header .back-button:hover {
    background: var(--primary-light);
}

@media (max-width: 768px) {
    .mobile-header {
        display: block;
    }
}

@media (min-width: 769px) {
    .feed-container {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "post-form post-form"
            "featured everything";
    }
    
    .post-form-section {
        grid-area: post-form;
    }
    
    .featured-feed {
        grid-area: featured;
    }
    
    .everything-else {
        grid-area: everything;
    }
}



.message.sent {
    float: right;
    margin-left: auto;
}

.message.received {
    float: left;
    margin-right: auto;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 1.2rem;
    position: relative;
    word-wrap: break-word;
}

.message.sent .message-content {
    background: var(--primary-dark);
    color: var(--text-light);
    border-bottom-right-radius: 0.3rem;
}

.message.received .message-content {
    background: var(--secondary-dark);
    color: var(--text-light);
    border-bottom-left-radius: 0.3rem;
}

.message-time {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.7;
    text-align: right;
}

.message-input-form {
    padding: 1rem;
    background: var(--white);
    border-top: 1px solid var(--gray-border);
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.message-input-form textarea {
    flex: 1;
    min-height: 60px;
    max-height: 120px;
    padding: 0.75rem;
    border: 1px solid var(--gray-border);
    border-radius: var(--border-radius);
    resize: vertical;
    background-color: var(--white);
    transition: border-color 0.2s ease;
}

.message-input-form textarea:focus {
    outline: none;
    border-color: var(--primary-dark);
}

.message-input-form button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-dark);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
    height: 45px;
}

.message-input-form button:hover {
    background: var(--primary-light);
}

/* Mobile styles */
    background: var(--white);
    }
    
    .messages-area {
        height: calc(100vh - 120px);
    }
}

/* Forum styles */
.forums-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.forums-header {
    text-align: center;
    margin-bottom: 2rem;
}

.forums-header h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.forums-description {
    color: var(--text-dark);
}

.forum-card {
    background: var(--background-primary);
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease;
}

.forum-card:hover {
    transform: translateY(-2px);
}

.forum-info {
    flex: 1;
}

.forum-info h2 {
    text-align: left;
    margin-top: 1.5rem;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.forum-info h2 a {
    color: var(--text-dark);
    text-decoration: none;
}

.forum-info h2 a:hover {
    color: var(--primary-dark);
}

.forum-description {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.forum-stats {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.forum-stats span {
    display: inline-flex;
    align-items: center;
}

.forum-stats .topic-count::before {
    content: "📑";
    margin-right: 0.25rem;
}

.forum-stats .post-count::before {
    content: "💬";
    margin-right: 0.25rem;
}

.forum-stats .last-activity::before {
    content: "🕒";
    margin-right: 0.25rem;
}

.forum-info h2 {
    text-align: left;
    margin-top: 1.5rem;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.forum-info .description {
    color: #666;
    margin-bottom: 0.5rem;
}

/* Topic styles */
.topic-card {
    background: var(--background-primary);
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.topic-card.pinned {
    background: var(--background-secondary);
    border-color: var(--accent-primary);
}

.topic-info h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.topic-meta {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.pin-icon {
    margin-right: 0.5rem;
}

/* Post styles */
.post-card {
    background: var(--background-primary);
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 2rem;
}

.post-sidebar {
    width: 200px;
    flex-shrink: 0;
}

.author-info {
    text-align: center;
}

.post-date {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

.post-content {
    flex: 1;
    line-height: 1.6;
}

.reply-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-light);
}

.reply-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--primary-light);
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 1rem;
}

.topic-locked-message {
    text-align: center;
    padding: 1rem;
    background: var(--background-secondary);
    border-radius: 4px;
    margin-top: 2rem;
}

.breadcrumbs {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.breadcrumbs a {
    color: var(--primary-light);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
}

/* Mobile visibility classes */
.mobile-hidden {
    display: none !important;
}

.mobile-only {
    display: none !important;
}

.hidden {
    display: none !important;
}

/* Mobile styles */
@media (max-width: 767px) {
    .mobile-only:not(.hidden) {
        display: block !important;
    }

    .mobile-hidden {
        display: none !important;
    }

    .featured-feed .post {
        display: block;
    }
}

/* Desktop styles */
@media (min-width: 768px) {
    .mobile-hidden {
        display: block !important;
    }

    .mobile-only {
        display: none !important;
    }

    .featured-feed .post {
        display: block !important;
    }
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .expand-feed {
        display: block;
    }
}

/* Conversation header styles */
.conversation-header {
    padding: 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
}

.conversation-header .current-chat-user {
    font-weight: 500;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Mobile header styles */
.mobile-header {
    display: none;
    padding: 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
}

.mobile-header .back-button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-dark);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
    height: 45px;
}

.mobile-header .back-button:hover {
    background: var(--primary-light);
}

@media (max-width: 768px) {
    .mobile-header {
        display: block;
    }
}

@media (min-width: 769px) {
    .feed-container {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "post-form post-form"
            "featured everything";
    }
    
    .post-form-section {
        grid-area: post-form;
    }
    
    .featured-feed {
        grid-area: featured;
    }
    
    .everything-else {
        grid-area: everything;
    }
}



/* Profile page styles */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.member-since {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--background-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.stat-number {
    margin: 0.5rem 0 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section h2 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.profile-settings {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--card-shadow);
}

.profile-settings h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.timezone-form {
    max-width: 400px;
}

.timezone-form .form-group {
    margin-bottom: 20px;
}

.timezone-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.timezone-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--primary-dark);
    border-radius: 4px;
    background-color: var(--white);
    color: var(--text-primary);
    font-size: 1em;
    max-height: 300px;
    overflow-y: auto;
}

.timezone-form optgroup {
    font-weight: 600;
    color: var(--text-primary);
    padding: 8px;
}

.timezone-form option {
    padding: 4px 8px;
    color: var(--text-primary);
}

.timezone-form option:hover {
    background-color: var(--primary-color);
    color: white;
}

.timezone-form select:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.timezone-form button {
    background-color: var(--primary-dark);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.timezone-form button:hover {
    background-color: var(--primary-dark);
}

.profile-bio {
    background: var(--secondary-light);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    line-height: 1.6;
}

.profile-bio p {
    text-align: left;
    margin: 0;
    color: var(--text-primary);
}

.bio-form {
    margin-bottom: 30px;
}

.bio-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--primary-dark);
    border-radius: 4px;
    background-color: var(--white);
    color: var(--text-primary);
    font-size: 1em;
    line-height: 1.5;
    resize: vertical;
}

.bio-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .profile-container {
        padding: 1rem;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1rem;
    }
}

/* Form styles */
.form-container {
    background-color: var(--background-primary);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-dark);
}

#image-upload {
    display: none;
}

.image-preview {
    max-width: 100%;
    margin-top: 1rem;
    border-radius: var(--border-radius);
}

/* Messages styles */
.messages-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1rem;
    height: calc(100vh - 200px);
    background: var(--background-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.conversations-list {
    background: var(--background-primary);
    padding: 1rem;
    border-right: 1px solid var(--primary-light);
    overflow-y: auto;
}

.conversations-list h2 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.conversation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    background: var(--background-secondary);
    text-decoration: none;
    color: var(--text-dark);
}

.conversation-item:hover {
    background: var(--secondary-light);
}

.conversation-item.active {
    background: var(--primary-dark);
    color: var(--text-light);
}

.unread-count, .unread-badge {
    background: var(--secondary-dark);
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.messages-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.messages-header {
    padding: 1rem;
    border-bottom: 1px solid var(--primary-light);
}

.messages-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.messages-list {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 70%;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
}

.message.sent {
    align-self: flex-end;
    color: var(--text-light);
}

.message.received {
    align-self: flex-start;
}


/* Link styles */
a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

.featured-feed .post-author a {
    color: var(--primary-dark);
}

footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--primary-dark);
    color: var(--text-light);
    margin-top: 60px;
    position: relative;
    z-index: 2;    
}

footer a {
    font-weight: bold;
    color: var(--primary-light);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: var(--white);
}

/* Header and footer links */
header a, footer a {
    color: var(--primary-light);
}

header a:hover, footer a:hover {
    text-decoration: underline;
}

/* Main content */
main {
    padding: 20px;
    margin: 0 auto;
}

/* Features section */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-radius: 8px;
}

.feature {
    background: var(--background-secondary);
    border: 3px solid var(--secondary-color);
    border-radius: 8px;
    padding: 20px;
    margin: 10px;
    flex: 1 1 calc(50% - 20px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

/* Call to action */
.cta {
    text-align: center;
}

.cta-button, .cta-button:hover {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background-color: var(--secondary-dark);
}

.link-button {
    background: none;
    border: none;
    color: var(--primary-dark);
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.link-button:hover {
    text-decoration: underline;
}

/* Forms */
.form-container {
    background: var(--background-primary);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--primary-light);
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: var(--primary-dark);
    outline: none;
}

/* Error messages */
.error-message {
    color: var(--secondary-dark);
    font-size: 0.9em;
    margin-top: 5px;
}

/* Success messages */
.success-message {
    color: var(--primary-light);
    font-size: 0.9em;
    margin-top: 5px;
}
