/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* Prayer Display Styles */
.prayer-display-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.prayer-tabs{
	display:flex;
	justify-content:space-between;
}
.prayer-display-container .prayer-tabs button {
	background-color: transparent;
	color: #000;
	padding-bottom:8px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 0;
    margin: 0;
}

.tab-btn:hover {
    color: #333;
    background-color: #f8f9fa;
}

.tab-btn.active {
    color: #28a745;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #28a745;
}

/* Special styling for Newest tab when active */
.tab-btn[data-tab="newest"].active {
    color: #007bff;
}

.tab-btn[data-tab="newest"].active::after {
    background-color: #007bff;
}

/* Prayer Tab Specific Styles */
.prayer-tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 0;
    margin: 0;
}

.prayer-tab-btn:hover {
    color: #333;
    background-color: #f8f9fa;
}

.prayer-tab-btn.active {
	color: #006f53 !important;
	font-weight: 600;
}
.prayer-tab-btn.active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 3px;
	background-color: #006f53;
}


.prayer-tab-btn[data-tab="newest"].active::after {
    background-color: #006f53;
}

.prayer-tab-btn:hover {
	color: #333;
	background-color: #f8f9fa !important;
	border-radius: 0;
}

.tab-btn.active {
	color: #28a745;
	font-weight: 600;
}

/* Tab Content */
.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-pane.active {
    display: block;
}

/* Prayer Tab Content */
.prayer-tab-content {
    position: relative;
}

.prayer-tab-content .tab-pane {
	display: none;
	animation: fadeIn 0.3s ease-in;
	margin-top: 20px;
}

.prayer-tab-content .tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Prayer Cards */
.prayer-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.prayer-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.prayer-title {
    font-size: 18px !important;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.prayer-description {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.prayer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.requester {
    font-weight: 500;
    color: #555;
}

.time-ago {
    color: #999;
}

/* No prayers message */
.no-prayers {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .prayer-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .prayer-display-container {
        padding: 15px;
    }
    
    .prayer-card {
        padding: 15px;
    }
    
    .prayer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
	.prayer-display-container .prayer-tabs button {
	margin-bottom: 10px;
}
}

@media (max-width: 480px) {
    .prayer-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-radius: 0;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .tab-btn.active::after {
        display: none;
    }
    
    .tab-btn.active {
        background-color: #28a745;
        color: white;
    }
}

/* Map View Tab Styles */
.prayer-tabs-map-container {
    height: 500px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
}

/* Map Filters */
.prayer-map-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.map-filter-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.map-filter-btn:hover {
    background: #e9ecef;
    border-color: #007bff;
    color: #007bff;
}

.map-filter-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Map Popup Styling */
.prayer-map-popup {
    min-width: 250px;
    padding: 5px;
}

.prayer-map-popup h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.prayer-map-popup p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.prayer-map-popup small {
    color: #888;
    font-size: 12px;
    display: block;
    margin-bottom: 4px;
}

/* Responsive Design for Map */
@media (max-width: 768px) {
    .prayer-tabs-map-container {
        height: 400px;
    }
    
    .prayer-map-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .map-filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .prayer-tabs-map-container {
        height: 350px;
    }
    
    .prayer-map-filters {
        gap: 8px;
    }
    
    .map-filter-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}
