/**
 * Sidebar Styles
 * Modern, clean sidebar design
 */

/* Layout Containers */
.page-wrapper,
.single-post-wrapper {
    padding: 6rem 0 3rem;
    min-height: 60vh;
}

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
    width: 100%;
}

/* Content Area */
.content-area {
    margin-bottom: 2rem;
}

.content-area.has-sidebar {
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 992px) {
    .col-lg-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
    
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Entry Content */
.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

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

.entry-thumbnail {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.post-tags {
    font-size: 0.95rem;
}

.post-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f5f5f5;
    color: #667eea;
    text-decoration: none;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: #667eea;
    color: white;
}

/* Post Navigation */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: #667eea;
}

/* Sidebar Styles */
.sidebar-area {
    margin-bottom: 2rem;
}

.sidebar-area.order-first {
    order: -1;
}

.sidebar-inner {
    position: sticky;
    top: 100px;
}

/* Widget Styles */
.widget {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #667eea;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #764ba2;
}

/* Widget Lists */
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget ul li a:hover {
    color: #667eea;
    padding-left: 0.5rem;
}

/* Widget Categories Count */
.widget_categories ul li a .count,
.widget_archive ul li a .count {
    background: #f5f5f5;
    color: #667eea;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Search Widget */
.widget_search form {
    position: relative;
}

.widget_search input[type="search"] {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.widget_search input[type="search"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.widget_search button[type="submit"] {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.widget_search button[type="submit"]:hover {
    background: #764ba2;
}

/* Recent Posts Widget */
.widget_recent_entries ul li {
    padding: 1rem 0;
}

.widget_recent_entries ul li a {
    font-weight: 500;
    line-height: 1.4;
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #f5f5f5;
    color: #667eea;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem !important;
    transition: all 0.3s ease;
}

.widget_tag_cloud .tagcloud a:hover {
    background: #667eea;
    color: white;
}

/* Calendar Widget */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

.widget_calendar th,
.widget_calendar td {
    text-align: center;
    padding: 0.5rem;
}

.widget_calendar th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

.widget_calendar td a {
    color: #667eea;
    font-weight: 600;
}

/* Comments */
.entry-comments {
    margin-top: 3rem;
}

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

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

/* Responsive Design */
@media (max-width: 767px) {
    .page-wrapper,
    .single-post-wrapper {
        padding: 5rem 0 2rem;
    }
    
    .entry-title {
        font-size: 1.75rem;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .sidebar-area {
        margin-top: 3rem;
    }
    
    .sidebar-inner {
        position: static;
    }
    
    .nav-links {
        flex-direction: column;
    }
}

/* Page Links (Pagination within content) */
.page-links {
    margin: 2rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    font-weight: 600;
}

.page-links a {
    color: #667eea;
    text-decoration: none;
    margin: 0 0.5rem;
}

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

/* Article Spacing */
article {
    margin-bottom: 3rem;
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
