/* Islamic Prayer Timings - Frontend Styles */

/* Wrapper */
.ipt-prayer-times-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 100%;
    margin: 20px 0;
}

/* Header */
.ipt-header {
    text-align: center;
    margin-bottom: 20px;
}

.ipt-date {
    font-size: 1.4em;
    font-weight: 600;
    color: #F9EEB5;
    margin: 0 0 5px 0;
}

.ipt-hijri {
    font-size: 0.95em;
    color: #666;
    margin: 0;
}

/* Cards Layout */
.ipt-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.ipt-prayer-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ipt-prayer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #1a5f4a;
}

.ipt-prayer-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.ipt-prayer-card .ipt-prayer-name {
    font-size: 0.9em;
    font-weight: 600;
    color: #1a5f4a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.ipt-prayer-start {
    font-size: 1.6em;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.ipt-prayer-card .ipt-prayer-jamat {
    font-size: 0.8em;
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
}

/* Prayer-specific colors */
.ipt-fajr {
    border-top: 3px solid #3498db;
}

.ipt-sunrise {
    border-top: 3px solid #f39c12;
}

.ipt-zuhar {
    border-top: 3px solid #e74c3c;
}

.ipt-asr {
    border-top: 3px solid #9b59b6;
}

.ipt-maghrib {
    border-top: 3px solid #e67e22;
}

.ipt-isha {
    border-top: 3px solid #2c3e50;
}

/* Table Layout */
.ipt-table-layout .ipt-prayer-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.ipt-prayer-table th,
.ipt-prayer-table td {
    padding: 15px 20px;
    text-align: left;
}

.ipt-prayer-table thead {
    background: linear-gradient(135deg, #1a5f4a 0%, #2d8a6e 100%);
}

.ipt-prayer-table th {
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.ipt-prayer-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.ipt-prayer-table tbody tr:last-child {
    border-bottom: none;
}

.ipt-prayer-table tbody tr:hover {
    background: #f8f9fa;
}

.ipt-prayer-table .ipt-prayer-name {
    font-weight: 600;
    color: #1a5f4a;
}

.ipt-prayer-table .ipt-prayer-start {
    font-size: 1.1em;
    font-weight: 700;
    color: #2c3e50;
}

.ipt-prayer-table .ipt-prayer-jamat {
    color: #666;
    font-size: 0.95em;
}

/* Single Time Display */
.ipt-single-time {
    font-weight: 600;
    color: #1a5f4a;
}

/* Error Message */
.ipt-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .ipt-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .ipt-prayer-card {
        padding: 15px 10px;
    }
    
    .ipt-prayer-start {
        font-size: 1.3em;
    }
    
    .ipt-prayer-table th,
    .ipt-prayer-table td {
        padding: 12px 10px;
    }
    
    .ipt-date {
        font-size: 1.2em;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .ipt-prayer-card {
        background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
        border-color: #444;
    }
    
    .ipt-prayer-card .ipt-prayer-name {
        color: #5dba98;
    }
    
    .ipt-prayer-start {
        color: #fff;
    }
    
    .ipt-prayer-card .ipt-prayer-jamat {
        color: #aaa;
        border-top-color: #555;
    }
    
    .ipt-prayer-table {
        background: #2d2d2d;
    }
    
    .ipt-prayer-table tbody tr {
        border-bottom-color: #444;
    }
    
    .ipt-prayer-table tbody tr:hover {
        background: #383838;
    }
}
