/**
 * Main Theme Styles
 */

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

.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.post-thumbnail {
    overflow: hidden;
}

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

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

.post-content {
    padding: 20px;
}

.entry-title {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.entry-title a {
    color: #2c3e50;
    text-decoration: none;
}

.entry-title a:hover {
    color: #3498db;
}

.entry-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.entry-summary {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.entry-footer {
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.read-more {
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    color: #2980b9;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    background: white;
    color: #2c3e50;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* No Results */
.no-results {
    background: white;
    padding: 60px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.no-results h1 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.no-results p {
    font-size: 18px;
    color: #666;
}

/* Notices */
.notice {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.notice-info {
    background: #e8f4f8;
    border-color: #3498db;
    color: #2c3e50;
}

.notice-success {
    background: #d5f4e6;
    border-color: #27ae60;
    color: #1e7e34;
}

.notice-warning {
    background: #fff3cd;
    border-color: #f39c12;
    color: #856404;
}

.notice-error {
    background: #fadbd8;
    border-color: #e74c3c;
    color: #721c24;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Widgets */
.widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.widget-title {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    color: #2c3e50;
}

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

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
}

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

.widget a {
    color: #2c3e50;
    text-decoration: none;
}

.widget a:hover {
    color: #3498db;
}

/* Order Stats Widget */
.order-stats-widget {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.stat-label {
    font-weight: 600;
    color: #555;
}

.stat-count {
    font-size: 20px;
    font-weight: bold;
}

/* Recent Orders Widget */
.recent-orders-widget li {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 0;
}

.recent-orders-widget .order-number {
    font-size: 12px;
    color: #666;
}

/* Comments */
.comments-area {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.comments-title {
    margin: 0 0 20px 0;
    color: #2c3e50;
}

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

.comment {
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
}

.comment-metadata {
    font-size: 14px;
    color: #666;
    margin: 5px 0 10px 0;
}

.comment-content {
    color: #555;
    line-height: 1.6;
}

.comment-reply-link {
    font-size: 14px;
    color: #3498db;
    text-decoration: none;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

/* Comment Form */
.comment-form {
    margin-top: 30px;
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}
