/* Additional Responsive Utilities */

/* Container improvements */
.container-responsive {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-responsive {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-responsive {
        padding: 0 2rem;
    }
}

/* Improved mobile navigation */
.mobile-nav-toggle {
    display: block;
}

@media (min-width: 1024px) {
    .mobile-nav-toggle {
        display: none;
    }
}

/* Better touch targets */
.touch-target {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Improved card layouts */
.card-responsive {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease-in-out;
}

.card-responsive:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Better image handling */
.img-responsive {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Improved typography scaling */
.text-responsive-xs {
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .text-responsive-xs {
        font-size: 0.875rem;
    }
}

.text-responsive-sm {
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .text-responsive-sm {
        font-size: 1rem;
    }
}

.text-responsive-base {
    font-size: 1rem;
}

@media (min-width: 640px) {
    .text-responsive-base {
        font-size: 1.125rem;
    }
}

/* Better spacing utilities */
.space-responsive-y > * + * {
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .space-responsive-y > * + * {
        margin-top: 1.5rem;
    }
}

/* Improved grid layouts */
.grid-responsive {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .grid-responsive {
        gap: 1.5rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .grid-responsive {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Better button styles */
.btn-responsive {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
}

@media (min-width: 640px) {
    .btn-responsive {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Improved form elements */
.form-responsive {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease-in-out;
}

@media (min-width: 640px) {
    .form-responsive {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
}

.form-responsive:focus {
    outline: none;
    border-color: #1dbf4a;
    box-shadow: 0 0 0 3px rgba(29, 191, 74, 0.1);
}

/* Better loading states */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Improved accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Better focus indicators */
.focus-visible:focus {
    outline: 2px solid #1dbf4a;
    outline-offset: 2px;
}

/* Improved mobile menu */
.mobile-menu {
    position: relative;
    background: #1dbf4a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a {
    display: block;
    padding: 1rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Better pagination */
.pagination-responsive {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-responsive .page-link {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    min-width: 44px;
    text-align: center;
}

.pagination-responsive .page-link:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.pagination-responsive .page-item.active .page-link {
    background-color: #1dbf4a;
    border-color: #1dbf4a;
    color: white;
}

/* Improved hero section */
.hero-responsive {
    position: relative;
    min-height: 300px;
}

@media (min-width: 640px) {
    .hero-responsive {
        min-height: 400px;
    }
}

@media (min-width: 1024px) {
    .hero-responsive {
        min-height: 500px;
    }
}

/* Better section spacing */
.section-responsive {
    padding: 2rem 0;
}

@media (min-width: 640px) {
    .section-responsive {
        padding: 3rem 0;
    }
}

@media (min-width: 1024px) {
    .section-responsive {
        padding: 4rem 0;
    }
}

/* Improved footer */
.footer-responsive {
    background: #1dbf4a;
    color: white;
    padding: 2rem 0;
}

@media (min-width: 640px) {
    .footer-responsive {
        padding: 3rem 0;
    }
}

/* Better social media icons */
.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .social-icons {
        justify-content: flex-start;
    }
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Improved search bar */
.search-responsive {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.search-responsive input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 9999px;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .search-responsive input {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Better news cards */
.news-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (min-width: 640px) {
    .news-card img {
        height: 240px;
    }
}

/* Improved statistics display */
.stats-responsive {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .stats-responsive {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .stats-responsive {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Better prayer times */
.prayer-times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .prayer-times {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }
}

.prayer-time {
    text-align: center;
    padding: 0.5rem;
}

.prayer-time .time {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1dbf4a;
}

.prayer-time .name {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Improved announcements */
.announcement-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-left: 4px solid #f59e0b;
}

.announcement-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.announcement-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.announcement-card .meta {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Better responsive images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-thumbnail {
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    max-width: 100%;
    height: auto;
}

/* Improved loading states */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Better mobile optimization */
@media (max-width: 640px) {
    /* Reduce font sizes on mobile */
    .text-mobile-sm {
        font-size: 0.75rem;
    }
    
    /* Improve touch targets */
    .touch-target-mobile {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* Better spacing on mobile */
    .space-mobile {
        margin: 0.5rem 0;
    }
    
    /* Improved mobile navigation */
    .nav-mobile {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
    }
    
    /* Better mobile cards */
    .card-mobile {
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-before: always;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
} 