/**
 * Beit Knesset Manager - Public Styles
 *
 * @package Beit_Knesset_Manager
 */

/* General Card Styles */
.bkm-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px 0;
}

.bkm-card-header {
    background: linear-gradient(135deg, #0d2a4b 0%, #1a4d7a 100%);
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

.bkm-card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.bkm-card-header .bkm-location,
.bkm-card-header .bkm-date {
    margin: 5px 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.bkm-card-body {
    padding: 20px;
}

/* Shabbat Times Styles */
.bkm-shabbat-times .bkm-parsha {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.bkm-shabbat-times .bkm-parsha .bkm-label {
    display: block;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 5px;
}

.bkm-shabbat-times .bkm-parsha .bkm-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0d2a4b;
}

.bkm-time-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.bkm-time-item:hover {
    background: #f3f4f6;
    transform: translateX(-2px);
}

.bkm-time-item:last-child {
    margin-bottom: 0;
}

.bkm-time-item .bkm-icon {
    font-size: 2rem;
    margin-left: 15px;
}

.bkm-time-item .bkm-time-content {
    flex: 1;
}

.bkm-time-item .bkm-label {
    display: block;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 3px;
}

.bkm-time-item .bkm-time {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d2a4b;
}

/* Zmanim Styles */
.bkm-zmanim .bkm-zman-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.bkm-zmanim .bkm-zman-item:last-child {
    border-bottom: none;
}

.bkm-zmanim .bkm-label {
    font-weight: 600;
    color: #4b5563;
}

.bkm-zmanim .bkm-time {
    font-weight: 700;
    color: #0d2a4b;
    font-size: 1.1rem;
}

/* Holidays Styles */
.bkm-holidays .bkm-holiday-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 10px;
}

.bkm-holidays .bkm-holiday-date {
    background: #d4af37;
    color: #ffffff;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 6px;
    margin-left: 12px;
    min-width: 50px;
    text-align: center;
}

.bkm-holidays .bkm-holiday-info {
    flex: 1;
}

.bkm-holidays .bkm-holiday-info strong {
    display: block;
    color: #0d2a4b;
    margin-bottom: 3px;
}

.bkm-holidays .bkm-holiday-memo {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Table Style */
.bkm-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.bkm-table th,
.bkm-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
}

.bkm-table th {
    background: #f9fafb;
    font-weight: 700;
    color: #374151;
}

.bkm-table tr:last-child td {
    border-bottom: none;
}

.bkm-table tr:hover {
    background: #f9fafb;
}

/* List Style */
.bkm-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bkm-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.bkm-list li:last-child {
    border-bottom: none;
}

/* Simple Style */
.bkm-simple {
    padding: 15px;
}

.bkm-simple p {
    margin: 8px 0;
}

/* Widget Styles */
.bkm-widget-shabbat,
.bkm-widget-holidays,
.bkm-widget-zmanim {
    padding: 10px 0;
}

.bkm-widget-parsha {
    background: #f9fafb;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

.bkm-widget-time {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 10px;
}

.bkm-widget-icon {
    font-size: 1.5rem;
    margin-left: 10px;
}

.bkm-widget-time-content {
    flex: 1;
}

.bkm-widget-time-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0d2a4b;
}

.bkm-widget-holidays-list,
.bkm-widget-zmanim-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bkm-widget-holiday-item,
.bkm-widget-zman-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.bkm-widget-holiday-item:last-child,
.bkm-widget-zman-item:last-child {
    border-bottom: none;
}

.bkm-widget-holiday-date {
    background: #d4af37;
    color: #ffffff;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-left: 8px;
}

.bkm-widget-holiday-name {
    flex: 1;
    font-weight: 600;
}

.bkm-widget-zman-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.bkm-widget-zman-time {
    font-weight: 700;
    color: #0d2a4b;
}

/* Error and Info Messages */
.bkm-error {
    color: #dc2626;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    margin: 10px 0;
}

.bkm-info {
    color: #2563eb;
    padding: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    margin: 10px 0;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .bkm-card {
        background: #1f2937;
        border-color: #374151;
    }

    .bkm-card-body {
        color: #f9fafb;
    }

    .bkm-parsha,
    .bkm-time-item,
    .bkm-holidays .bkm-holiday-item,
    .bkm-widget-parsha,
    .bkm-widget-time {
        background: #374151;
    }

    .bkm-time-item:hover {
        background: #4b5563;
    }

    .bkm-label,
    .bkm-widget-zman-label {
        color: #d1d5db;
    }

    .bkm-time,
    .bkm-value,
    .bkm-widget-time-value,
    .bkm-widget-zman-time,
    .bkm-holidays .bkm-holiday-info strong {
        color: #f9fafb;
    }

    .bkm-table th,
    .bkm-table td {
        border-color: #4b5563;
    }

    .bkm-table th {
        background: #374151;
        color: #f9fafb;
    }

    .bkm-table tr:hover {
        background: #374151;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .bkm-card-header h3 {
        font-size: 1.25rem;
    }

    .bkm-time-item .bkm-time {
        font-size: 1.25rem;
    }

    .bkm-time-item .bkm-icon {
        font-size: 1.5rem;
    }
}

/* RTL Support */
[dir="rtl"] .bkm-time-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .bkm-time-item .bkm-icon {
    margin-left: 0;
    margin-right: 15px;
}

[dir="rtl"] .bkm-holidays .bkm-holiday-date {
    margin-left: 0;
    margin-right: 12px;
}

[dir="rtl"] .bkm-widget-icon {
    margin-left: 0;
    margin-right: 10px;
}

[dir="rtl"] .bkm-widget-holiday-date {
    margin-left: 0;
    margin-right: 8px;
}
