/**
 * גפן - מרכז לטיפול בתפילה
 * Custom CSS for WordPress theme
 */

/* WordPress Specific Styles */
.wp-block-group {
    margin-bottom: 2rem;
}

.wp-block-image {
    margin-bottom: 1.5rem;
}

.wp-block-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.wp-block-quote {
    border-right: 4px solid var(--accent-primary);
    padding-right: 20px;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

.wp-block-button .wp-block-button__link {
    background: var(--accent-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-block-button .wp-block-button__link:hover {
    background: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Post Styles */
.post-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.post-thumbnail {
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 2rem;
}

.entry-title {
    margin-bottom: 1rem;
}

.entry-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--accent-primary);
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 14px;
    color: var(--text-light);
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-meta i {
    font-size: 12px;
}

.entry-content {
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--text-light);
    transform: translateX(-5px);
}

/* Single Post Styles */
.single-post {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
}

.single-post .entry-header {
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid #E2CDBE;
    padding-bottom: 2rem;
}

.single-post .entry-meta {
    justify-content: center;
    margin-top: 1rem;
}

.single-post .post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
}

/* Archive Styles */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.page-title {
    margin-bottom: 1rem;
}

.archive-description {
    color: var(--text-light);
    font-size: 18px;
}

/* Search Form Styles */
.search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.search-field {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-dark);
}

.search-field:focus {
    outline: none;
}

.search-submit {
    padding: 12px 20px;
    background: var(--accent-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: var(--text-light);
}

/* 404 Page Styles */
.error-404 {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.error-404 .page-title {
    color: var(--accent-primary);
    margin-bottom: 2rem;
}

.error-404 ul {
    text-align: right;
    margin: 2rem 0;
    padding-right: 2rem;
}

.error-404 li {
    margin-bottom: 0.5rem;
}

.error-actions {
    margin: 2rem 0;
}

.search-form-container {
    margin: 2rem 0;
}

.popular-pages {
    margin-top: 2rem;
}

.popular-pages ul {
    list-style: none;
    padding: 0;
}

.popular-pages li {
    margin-bottom: 0.5rem;
}

.popular-pages a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-pages a:hover {
    color: var(--text-light);
}

/* Comments Styles */
.comments-area {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    margin-top: 2rem;
}

.comments-title {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E2CDBE;
}

.comment-list .comment:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-meta {
    color: var(--text-light);
    font-size: 14px;
}

.comment-content {
    margin-top: 1rem;
    line-height: 1.6;
}

.comment-reply-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.comment-reply-link:hover {
    color: var(--text-light);
}

/* Comment Form Styles */
.comment-form {
    margin-top: 2rem;
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #E2CDBE;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form .form-submit {
    margin-top: 1rem;
}

.comment-form .submit {
    background: var(--accent-primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    background: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-dark);
    background: white;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 1rem;
    border-radius: 25px;
}

/* Widget Styles */
.widget {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
}

.widget-title {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-primary);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #E2CDBE;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: var(--accent-primary);
}

/* Latest Posts Section */
.latest-posts-section {
    padding: 80px 20px;
    background: var(--primary-bg);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.post-card .post-thumbnail {
    overflow: hidden;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card .post-content {
    padding: 1.5rem;
}

.post-card .post-title {
    margin-bottom: 1rem;
}

.post-card .post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card .post-title a:hover {
    color: var(--accent-primary);
}

.post-card .post-meta {
    margin-bottom: 1rem;
    font-size: 14px;
    color: var(--text-light);
}

.post-card .post-excerpt {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 20px;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--primary-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-content {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .single-post {
        padding: 2rem 1.5rem;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .comments-area {
        padding: 1.5rem;
    }
    
    .widget {
        padding: 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .single-post {
        padding: 1.5rem 1rem;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .comments-area {
        padding: 1rem;
    }
    
    .widget {
        padding: 1rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-field {
        border-radius: 8px 8px 0 0;
    }
    
    .search-submit {
        border-radius: 0 0 8px 8px;
    }
}
