:root {
    --bg-primary: #F9F3E7;
    --color-primary: #C4A484;
    --color-accent1: #A3BD68;
    --color-accent2: #8FAFC4;
    --color-accent3: #9C88B9;
    --color-accent4: #A75C58;
    --text-color: #000000;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent3));
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.auth-link {
    color: white;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.user-name {
    color: white;
    font-size: 0.9rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
}

.logo img {
    height: 131px;
    width: auto;
}

.logo h1 {
    font-size: 2rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 7px;
    flex-wrap: nowrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 6px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 1rem;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: #b39474;
}

.btn-success {
    background-color: var(--color-accent1);
    color: white;
}

.btn-success:hover {
    background-color: #92a858;
}

.btn-info {
    background-color: var(--color-accent2);
    color: white;
}

.btn-info:hover {
    background-color: #7e9fb4;
}

.btn-danger {
    background-color: var(--color-accent4);
    color: white;
}

.btn-danger:hover {
    background-color: #964c48;
}

.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid var(--color-accent1);
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid var(--color-accent4);
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid var(--color-accent2);
    color: #0c5460;
}

main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-accent1);
}

/* Pinterest Masonry Grid */
.pinterest-grid {
    column-count: 3;
    column-gap: 20px;
    padding: 20px 0;
}

@media (max-width: 992px) {
    .pinterest-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .pinterest-grid {
        column-count: 1;
    }
}

.pinterest-card {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.pinterest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.pinterest-card-image {
    position: relative;
    width: 100%;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.pinterest-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.85) 100%);
}

.pinterest-card-content {
    position: relative;
    z-index: 2;
    padding: 30px 25px;
    color: white;
    width: 100%;
}

.pinterest-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.pinterest-card-text {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 15px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.scripture-reference {
    font-size: 0.95rem;
    font-style: italic;
    margin-top: 10px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    color: #f0f0f0;
}

.pinterest-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.grid {
    display: grid;
    gap: 25px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

footer {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.share-buttons {
    display: flex;
    gap: 6px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 5px 10px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.share-btn:hover {
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.8);
}

.share-twitter {
    background-color: #1DA1F2;
}

.share-facebook {
    background-color: #4267B2;
}

.share-instagram {
    background-color: #E4405F;
}

.share-text {
    background-color: var(--color-accent3);
}

.pinterest-card .share-buttons .share-btn {
    background-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

/* Meme Cards - Fixed size like other cards */
.pinterest-card-meme {
    background: #f0f0f0;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.meme-image {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.meme-share-overlay {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    display: flex;
    gap: 10px;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pinterest-card-meme:hover .meme-share-overlay {
    opacity: 1;
}

.pinterest-card .share-buttons .share-btn:hover {
    background-color: rgba(255,255,255,0.3);
}

/* Expandable Cards */
.expandable-card {
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: var(--bg-primary);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.modal-close:hover,
.modal-close:focus {
    color: #000;
}

.modal-content h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.business-card {
    border-left: 5px solid var(--color-accent1);
}

.group-card {
    border-left: 5px solid var(--color-accent3);
}

.news-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    color: var(--color-primary);
    margin-bottom: 8px;
}

.news-item .source {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-scripture {
    background-color: var(--color-accent2);
    color: white;
}

.badge-faith {
    background-color: var(--color-accent1);
    color: white;
}

.badge-business {
    background-color: var(--color-primary);
    color: white;
}

.badge-funny {
    background-color: var(--color-accent3);
    color: white;
}

.badge-reflection {
    background-color: var(--color-accent4);
    color: white;
}

.badge-video {
    background-color: var(--color-terracotta);
    color: white;
}

.hero-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent3));
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.auth-container {
    max-width: 450px;
    margin: 50px auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: var(--color-primary);
    color: white;
}

table tr:hover {
    background-color: #f5f5f5;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box input,
.search-box select {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.member-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.member-badge {
    background-color: var(--color-accent3);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.holiday-item {
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid var(--color-accent1);
    background-color: white;
}

.holiday-item h3 {
    color: var(--color-primary);
    margin-bottom: 5px;
}

.holiday-item .date {
    color: var(--color-accent2);
    font-weight: 600;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}
