/* ===================================================
   SHALMIONLINE THEME - MAIN STYLES
   =================================================== */

/* Header Styles */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner {
    padding: 1rem 0;
}

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

/* Site Branding */
.site-branding {
    flex: 1;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Main Navigation */
.main-navigation {
    flex: 2;
    text-align: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item > a {
    color: var(--secondary-color);
}

/* Submenu */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    min-width: 200px;
    z-index: 200;
    padding: 0.5rem 0;
    gap: 0;
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.main-navigation ul ul li:last-child a {
    border-bottom: none;
}

/* Account Menu */
.account-menu {
    flex: 1;
    text-align: right;
}

.login-register a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.login-register a:hover {
    color: var(--secondary-color);
}

.separator {
    color: var(--text-light);
    margin: 0 0.5rem;
}

.user-greeting {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.account-nav {
    display: inline-flex;
    gap: 1rem;
}

.logout-link {
    color: var(--primary-color);
    text-decoration: none;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 20px;
    position: relative;
}

.menu-icon::before,
.menu-icon::after,
.menu-icon {
    content: '';
    display: block;
    height: 2px;
    background: var(--primary-color);
    margin: 4px 0;
    transition: all 0.3s;
}

/* Breadcrumbs */
.breadcrumb-nav {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: inline-block;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumb-item:last-child::after {
    content: '';
}

/* Main Content */
.site-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

#primary {
    flex: 1;
}

/* Posts Grid */
.posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

article {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

article:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.post-thumbnail {
    overflow: hidden;
    height: 200px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

article:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.entry-header {
    margin-bottom: 1rem;
}

.entry-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
}

.entry-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--secondary-color);
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.entry-meta i {
    color: var(--secondary-color);
}

.entry-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.read-more-link:hover {
    color: var(--secondary-color);
    margin-right: -4px;
}

.read-more-link::after {
    content: ' →';
}

/* No Content */
.no-content-found {
    text-align: center;
    padding: 4rem 2rem;
}

.no-content-found i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-content-found h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.no-content-found p {
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.search-field {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 1rem;
    min-width: 300px;
}

.search-submit {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.search-submit:hover {
    background: var(--secondary-color);
}

.no-content-suggestions ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.no-content-suggestions a {
    color: var(--primary-color);
    text-decoration: none;
}

.no-content-suggestions a:hover {
    color: var(--secondary-color);
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: var(--white);
    margin-top: 4rem;
}

.footer-widgets {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-column {
    color: var(--white);
}

.footer-brand-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.footer-brand-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-title {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

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

.newsletter-signup {
    margin-bottom: 2rem;
}

.newsletter-title {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
}

.newsletter-submit {
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.newsletter-submit:hover {
    background: var(--white);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem 0;
}

.footer-bottom-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: center;
}

.footer-copyright,
.footer-legal,
.footer-credit {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-copyright a,
.footer-legal a,
.footer-credit a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-copyright a:hover,
.footer-legal a:hover,
.footer-credit a:hover {
    color: var(--white);
}

/* Sidebar */
.primary-sidebar {
    flex: 0 0 300px;
    padding-left: 2rem;
}

.widget {
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widget-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.75rem;
}

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

.widget ul li {
    margin-bottom: 0.75rem;
}

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

.widget a:hover {
    color: var(--secondary-color);
}

/* Pagination */
.pagination-nav {
    margin: 2rem 0;
}

.pagination {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .primary-sidebar {
        flex: 0 0 250px;
        padding-left: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        justify-content: space-between;
    }
    
    .main-navigation {
        display: none;
        flex: 1 1 100%;
        order: 3;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .primary-sidebar {
        flex: 1 1 100%;
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .posts-container {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
