:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --text-color: #2D3436;
    --bg-color: #FFFFFF;
    --card-bg: #FFFFFF;
    --header-bg: #FFFFFF;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    background-color: #F8F9FA;
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    width: 95%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--header-bg);
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 107, 0.1);
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    padding: 0.5rem 1rem;
    border: 2px solid #eee;
    border-radius: 20px;
    outline: none;
    min-width: 200px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.search-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(255, 82, 82, 0.2);
}

/* Main Content */
.main-content {
    display: flex;
    max-width: 1600px;
    width: 90%;
    margin: 2rem auto;
    gap: 2rem;
}

.sidebar {
    flex: 0 0 250px;
    width: 250px;
    position: sticky;
    top: 100px;
    height: fit-content;
    z-index: 1;
}

.content-area {
    width: 100%;
}

.greetings-list, 
.single-greeting-content {
    width: 100%;
    max-width: 100%;
}

/* Sidebar */
.categories-widget {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.categories-widget h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list .category-group {
    margin-bottom: 10px;
}

.categories-list .collapsible {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
}

.categories-list .collapsible:hover {
    color: #007bff;
}

.categories-list .collapsible .toggle-icon {
    margin-right: 10px;
    font-weight: bold;
}

.categories-list .content {
    display: none;
    padding-left: 20px;
}

.categories-list .content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list .content li {
    margin-bottom: 5px;
}

.categories-list .content a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories-list .content a:hover {
    color: #007bff;
}

/* Main content layout */
.main-content.home {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}

/* Greetings List */
.greetings-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.greeting-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

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

.greeting-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.greeting-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.greeting-title a:hover {
    color: var(--primary-color);
}

.greeting-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.greeting-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.greeting-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.greeting-meta a:hover {
    text-decoration: underline;
}

.greeting-content {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #f8f9fa;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Like Button Modern Styling */
.like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 2px solid #e0e0e0;
    color: #888;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    gap: 8px;
    outline: none;
}

.like-btn:hover {
    background-color: rgba(0,123,255,0.05);
    border-color: #007bff;
    color: #007bff;
}

.like-btn.liked {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    box-shadow: 0 4px 6px rgba(0,123,255,0.2);
}

.like-btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.like-btn.liked i {
    transform: scale(1.2);
    color: white;
}

/* Footer Styles */
.footer {
    background: var(--header-bg);
    padding: 2rem 0;
    margin-top: 2rem;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
    text-align: center; /* Center all footer content */
}

.footer-content {
    max-width: 1600px;
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section {
    color: var(--text-color);
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

/* Individual Greeting Page */
.single-greeting-container {
    max-width: 1000px;
    width: 90%;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
}

.single-greeting-content {
    width: 100%;
    max-width: 100%;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}

.single-greeting-content h1,
.single-greeting-content h2,
.single-greeting-content h3 {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 15px;
}

.single-greeting-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.single-greeting-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    color: #666;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.single-greeting-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-greeting-meta a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-greeting-meta a:hover {
    text-decoration: underline;
}

.single-greeting-meta i {
    color: var(--primary-color);
}

.single-greeting-body {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.single-greeting-body p {
    margin-bottom: 1rem;
}

.single-greeting-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
}

.share-buttons {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.share-buttons h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-color);
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.share-buttons .facebook {
    background: #1877f2;
}

.share-buttons .twitter {
    background: #1da1f2;
}

.share-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.related-greetings {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.related-greetings h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-color);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.related-item {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* Admin Navigation */
.admin-nav ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 1rem 0;
    background-color: #f4f4f4;
    border-radius: 5px;
    overflow: hidden;
}

.admin-nav ul li {
    flex-grow: 1;
}

.admin-nav ul li a {
    display: block;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.admin-nav ul li a:hover {
    background-color: #e0e0e0;
}

@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar, .content-area {
        width: 100%;
    }
}

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

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        width: 95%;
        gap: 1rem;
    }
    
    .sidebar, .content-area {
        width: 100%;
        max-width: 100%;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 1rem;
    }
    
    .single-greeting-content {
        padding: 1rem;
    }
    
    .single-greeting-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .single-greeting-meta span {
        margin-bottom: 0.5rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-buttons a {
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .related-greetings .related-list {
        flex-direction: column;
    }
    
    .related-greetings .related-item {
        margin-bottom: 0.5rem;
    }
}
