/* Supplications Page Styles */
/* Extends existing styles.css with specific supplications styling */

.main-content {
    padding: 0 35px;
}

/* Search Section */
.search-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.search-container h2 {
    color: #059669;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

#search-input {
    flex: 1;
    padding: 1rem 3rem 1rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

#search-input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    background: linear-gradient(135deg, #059669, #0891b2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.search-filters {
    display: flex;
    justify-content: center;
}

#category-filter {
    padding: 0.8rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

#category-filter:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Random Section */
.random-section {
    margin-bottom: 2rem;
}

.random-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.random-header h3 {
    color: #079768;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #059669;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.refresh-btn:active {
    transform: translateY(0);
}

.refresh-btn i {
    transition: transform 0.3s ease;
}

.refresh-btn:hover i {
    transform: rotate(180deg);
}

.random-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.random-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    transform: scale(0.98);
    transition: all 0.3s ease;
}

.random-card:hover {
    transform: scale(1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Results Section */
.results-section {
    background: rgb(224 251 223 / 50%);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h3 {
    color: #079768;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.results-count {
    color: #000;
    font-size: 0.9rem;
    font-weight: 400;
}

.clear-filters-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-filters-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Supplications Grid */
.supplications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Supplication Card */
.supplication-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.supplication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.supplication-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.supplication-content {
    margin-bottom: 1.5rem;
}

.supplication-arabic {
    font-family: 'Traditional Arabic', 'Arabic Typesetting', 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    line-height: 2;
    color: #1f2937;
    text-align: right;
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-radius: 8px;
    border-right: 3px solid #059669;
    direction: rtl;
}

.supplication-transliteration {
    font-style: italic;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid #0891b2;
}

.supplication-translation {
    color: #374151;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.supplication-reference {
    color: #6b7280;
    font-size: 0.85rem;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid #0d9488;
}

.supplication-reference i {
    color: #059669;
    margin-right: 0.5rem;
}

/* Supplication Actions */
.supplication-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.supplication-actions button {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #6b7280;
    font-size: 0.9rem;
}

.supplication-actions button:hover {
    border-color: #059669;
    color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.copy-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.favorite-btn.favorited {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.favorite-btn.favorited:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.share-btn:hover {
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.no-results i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.no-results h4 {
    color: #374151;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-results p {
    font-size: 1rem;
    color: #6b7280;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.page-btn {
    background: linear-gradient(135deg, #059669, #0891b2);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}

.page-info {
    color: #6b7280;
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #6b7280;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #059669;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal.show {
    opacity: 1;
    visibility: visible;
}

.share-modal-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.share-modal.show .share-modal-content {
    transform: scale(1);
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.share-modal-title {
    color: #059669;
    font-size: 1.3rem;
    font-weight: 600;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.share-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #374151;
}

.share-option:hover {
    border-color: #059669;
    background: #f0fdf4;
    transform: translateY(-2px);
}

.share-option i {
    font-size: 1.2rem;
    color: #059669;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .search-form {
        max-width: 100%;
    }
    
    .random-grid,
    .supplications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .results-header h3 {
        font-size: 1.3rem;
    }
    
    .clear-filters-btn {
        align-self: center;
    }
    
    .supplication-arabic {
        font-size: 1.1rem;
    }
    
    .supplication-actions {
        justify-content: center;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
	
	.results-section {
    background: none;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
}

@media (max-width: 480px) {
    .search-section {
        padding: 1rem;
    }
    
    .results-section {
        padding: 1rem;
    }
    
    .supplication-card {
        padding: 1rem;
    }
    
    .supplication-arabic {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .supplication-transliteration {
        font-size: 0.9rem;
    }
    
    .supplication-translation {
        font-size: 0.95rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .datetime-section,
    .search-section,
    .supplication-actions,
    .pagination,
    .footer {
        display: none !important;
    }
    
    .main-content {
        background: white !important;
        padding: 0 !important;
    }
    
    .supplications-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .supplication-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
        margin-bottom: 1rem !important;
    }
    
    .supplication-arabic {
        background: white !important;
        border: 1px solid #e5e7eb !important;
    }
}
