/* RememberRIP.com - Main Stylesheet */

/* Variables */
:root {
    --primary-blue: #1877f2;
    --secondary-blue: #166fe5;
    --light-blue: #e7f3ff;
    --dark-gray: #333;
    --medium-gray: #65676b;
    --soft-gray: #dddfe2;
    --light-gray: #f0f2f5;
    --white: #fff;
    --sunset-gold: #f9a825;
    --sunset-orange: #ff7043;
    --sunset-purple: #9575cd;
    --sunset-pink: #ec407a;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-image: url('../images/new-background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--dark-gray);
    line-height: 1.5;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

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

a:hover {
    text-decoration: underline;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.search-bar {
    margin: 0 20px;
    flex-grow: 1;
    max-width: 500px;
}

.search-bar input {
    width: 100%;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--soft-gray);
    background-color: var(--light-gray);
}

.user-nav {
    display: flex;
    gap: 15px;
}

.user-nav a {
    color: var(--dark-gray);
    font-size: 1.2rem;
}

/* Main Container */
.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
    padding: 0 20px;
}

/* Left Sidebar */
.sidebar-left {
    width: 250px;
    flex-shrink: 0;
}

.nav-menu {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    overflow: hidden;
    list-style-type: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--dark-gray);
    transition: background-color 0.2s;
}

.nav-menu li a:hover {
    background-color: var(--light-gray);
    text-decoration: none;
}

.nav-menu li a.active {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    font-weight: 500;
}

.nav-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.crisis-banner {
    background-color: var(--sunset-pink);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.crisis-banner p {
    display: flex;
    align-items: center;
}

.crisis-banner p i {
    margin-right: 10px;
}

.crisis-banner a {
    background-color: var(--white);
    color: var(--sunset-pink);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 500;
}

.crisis-banner a:hover {
    background-color: var(--light-gray);
    text-decoration: none;
}

.welcome-message {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-message h2 {
    color: var(--sunset-orange);
    margin-bottom: 10px;
}

.featured-memorials {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.featured-memorials h3 {
    color: var(--sunset-purple);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--soft-gray);
    padding-bottom: 10px;
}

.memorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.memorial-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.memorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.memorial-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.memorial-info {
    padding: 10px;
}

.memorial-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.memorial-info p {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-bottom: 10px;
}

.memorial-info a {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.memorial-info a:hover {
    background-color: var(--secondary-blue);
    text-decoration: none;
}

.activity-feed {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-feed h3 {
    color: var(--sunset-purple);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--soft-gray);
    padding-bottom: 10px;
}

.post {
    background-color: var(--white);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.post-info h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.timestamp {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.post-content {
    margin-bottom: 15px;
}

.post-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

.post-actions {
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--soft-gray);
    padding-top: 10px;
}

.post-actions button {
    background: none;
    border: none;
    color: var(--medium-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 5px;
}

.post-actions button:hover {
    background-color: var(--light-gray);
}

.post-actions button i {
    margin-right: 5px;
}

/* Right Sidebar */
.sidebar-right {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
    color: var(--sunset-purple);
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--soft-gray);
    padding-bottom: 10px;
}

.prayer {
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.event-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.event-date {
    background-color: var(--sunset-gold);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.event-month {
    font-size: 0.7rem;
    text-transform: uppercase;
}

.event-day {
    font-size: 1.1rem;
    font-weight: 500;
}

.event-info {
    flex-grow: 1;
}

.event-title {
    font-weight: 500;
    font-size: 0.9rem;
}

.event-location {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.resource-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.resource-item i {
    width: 30px;
    height: 30px;
    background-color: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.resource-info {
    flex-grow: 1;
}

.resource-title {
    font-weight: 500;
    font-size: 0.9rem;
}

.resource-type {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.friend-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.friend-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.friend-name {
    font-size: 0.9rem;
}

.suggestion-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.suggestion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.suggestion-info {
    flex-grow: 1;
}

.suggestion-name {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.add-friend {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.add-friend:hover {
    background-color: var(--secondary-blue);
}

/* Footer */
footer {
    background-color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--soft-gray);
}

footer p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 30px;
    height: 30px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
}

/* Memorial Page Styles */
.memorial-header {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.memorial-header h2 {
    color: var(--sunset-orange);
    margin-bottom: 5px;
}

.memorial-header p {
    color: var(--medium-gray);
    margin-bottom: 15px;
}

.memorial-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.memorial-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.memorial-photo:hover {
    transform: scale(1.05);
}

.memorial-content {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.memorial-content h3 {
    color: var(--sunset-purple);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--soft-gray);
    padding-bottom: 10px;
}

.memorial-content p {
    margin-bottom: 15px;
}

.memorial-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.memorial-actions button {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.memorial-actions button i {
    margin-right: 5px;
}

.memorial-actions button:hover {
    background-color: var(--secondary-blue);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar-left, .sidebar-right {
        width: 100%;
    }
    
    .nav-menu {
        display: flex;
        flex-wrap: wrap;
    }
    
    .nav-menu li {
        flex: 1 1 auto;
    }
    
    .nav-menu li a {
        justify-content: center;
    }
    
    .nav-menu li a i {
        margin-right: 5px;
    }
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        margin: 10px 0 0;
        max-width: 100%;
        width: 100%;
    }
    
    .memorial-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .memorial-photos {
        flex-direction: column;
        align-items: center;
    }
    
    .memorial-photo {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .memorial-grid {
        grid-template-columns: 1fr;
    }
    
    .post-actions {
        flex-direction: column;
    }
    
    .memorial-actions {
        flex-direction: column;
    }
}
