/* Font Import - Almoni או חלופה */
@font-face {
    font-family: 'Almoni';
    src: url('font_files/almoni-tzar-aaa-300.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

/* גיבוי אם הפונט לא נטען */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700&display=swap');

/* איפוס CSS בסיסי */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Almoni', 'Heebo', 'Arial', sans-serif;
    direction: rtl;
    text-align: center;
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 50%, #4a7bc8 100%);
	background-image: url('uploads/background.jpg?v=1'); 
	background-size: cover; 
	background-position: center; 
	background-attachment: fixed;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    min-height: 100vh;
}

/* החלק העליון הקבוע */
.header-section {
    position: relative;
    width: 100%;
    margin-top: 25px;
    margin-bottom: 20px;
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 400px;
}
.bottom-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 300px;
	margin-right: 35px;
	margin-top: 25px;
	margin-bottom: 25px;
}

/* תאריך דינמי מוצב על התמונה */
.date-overlay {
    position: absolute;
    bottom: -7px; /* מרחק מתחתית התמונה - התאם לפי הצורך */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.date-text {
    padding: 12px 30px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
}
/* רשימת שידורים - החלק הדינמי היחיד */
.broadcasts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
}

.broadcast-item {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    min-height: 100px;
    direction: rtl;
}

/* החלק העליון - תמונה, פרטים ושעה */
.broadcast-content {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* משבצת ריקה */
.broadcast-empty {
    opacity: 0.5;
    pointer-events: none;
}

.broadcast-empty .broadcast-host {
    font-style: italic;
    opacity: 0.7;
}

/* תמונת מנחה - בצד ימין */
.broadcast-image, .broadcast-image-placeholder {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.4);
    box-shadow: 0 3px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.broadcast-image {
    object-fit: cover;
}

.broadcast-image-placeholder {
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.3);
}

/* פרטי השידור - במרכז */
.broadcast-details {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.broadcast-host {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 6px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.broadcast-age {
    font-size: 0.85em;
    opacity: 0.9;
    background: rgba(0,255,255,0.7);
    padding: 4px 12px;
    border-radius: 15px;
    display: inline-block;
    color: white;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
}

/* שעה - בצד שמאל */
.broadcast-time {
    font-size: 1.6em;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

/* כפתור זום - גרסה ירוקה */
.zoom-button {
    background: linear-gradient(45deg, #5A6F2F, #364213);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 10px rgba(86,107,42,0.3);
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 5px;
}

.zoom-button.disabled {
    background: rgba(128,128,128,0.5);
    box-shadow: none;
    opacity: 0.6;
}

.zoom-icon {
    flex-shrink: 0;
}

.broadcast-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.broadcast-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.4);
}

.broadcast-item:hover::before {
    opacity: 1;
}

.broadcast-item:hover .broadcast-image {
    transform: scale(1.05);
}

.broadcast-item:hover .zoom-button:not(.disabled) {
    background: linear-gradient(45deg, #4C5A22, #2A360F);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(54, 66, 19, 0.5);
}


/* רספונסיבי */
@media (max-width: 480px) {
    .header-image {
        max-width: 100%;
    }
    
    .date-overlay {
        bottom: -2px;
    }
    
    .date-text {
        padding: 10px 25px;
        font-size: 22px;
    }
    
    .broadcasts-list {
        padding: 0 5px;
    }
    
    .broadcast-item {
        padding: 15px;
        min-height: 90px;
    }
    
    .broadcast-content {
        gap: 10px;
    }
    
    .broadcast-image, .broadcast-image-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .broadcast-time {
        font-size: 1.3em;
        min-width: 60px;
    }
    
    .broadcast-host {
        font-size: 20px;
    }
    
    .broadcast-age {
        font-size: 0.8em;
        padding: 3px 10px;
    }
    
    .zoom-button {
        padding: 8px 16px;
        font-size: 18px;
    }
    
    .zoom-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 360px) {
    .date-overlay {
        bottom: 12px;
    }
    
    .date-text {
        padding: 8px 20px;
        font-size: 0.9em;
    }
    
    .broadcast-item {
        padding: 12px;
        min-height: 85px;
    }
    
    .broadcast-content {
        gap: 8px;
    }
    
    .broadcast-image, .broadcast-image-placeholder {
        width: 45px;
        height: 45px;
    }
    
    .broadcast-time {
        font-size: 1.2em;
        min-width: 55px;
    }
    
    .broadcast-details {
        padding: 0 5px;
    }
    
    .broadcast-host {
        font-size: 0.9em;
        margin-bottom: 4px;
    }
    
    .zoom-button {
        padding: 6px 12px;
        font-size: 0.8em;
    }
    
    .zoom-icon {
        width: 12px;
        height: 12px;
    }
}

/* עמוד ניהול */
.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    font-family: 'Almoni', 'Arial', sans-serif;
}

.admin-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.admin-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-btn {
    background: linear-gradient(45deg, #2a5298, #1e3c72);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Almoni', 'Arial', sans-serif;
}

.nav-btn:hover, .nav-btn.active {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    transform: translateY(-2px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-family: 'Almoni', 'Arial', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Almoni', 'Arial', sans-serif;
}

.btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 5px;
    transition: all 0.3s ease;
    font-family: 'Almoni', 'Arial', sans-serif;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: 'Almoni', 'Arial', sans-serif;
}

.table th,
.table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

.table th {
    background: #f8f9fa;
    font-weight: bold;
}

.table img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-family: 'Almoni', 'Arial', sans-serif;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* עמוד התחברות */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    color: #333;
    font-family: 'Almoni', 'Arial', sans-serif;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2a5298;
    font-family: 'Almoni', 'Arial', sans-serif;
}

.debug-info {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
}

/* Footer Section */
.footer-section {
    margin-top: 40px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.footer-content:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.footer-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-logo {
    height: 35px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.footer-content:hover .footer-logo {
    transform: scale(1.05);
}

/* רספונסיבי */
@media (max-width: 480px) {
    .footer-content {
        padding: 12px 20px;
        gap: 10px;
    }
    
    .footer-text {
        font-size: 14px;
    }
    
    .footer-logo {
        height: 30px;
        max-width: 100px;
    }
}

@media (max-width: 360px) {
    .footer-content {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
    }
    
    .footer-text {
        font-size: 13px;
    }
    
    .footer-logo {
        height: 25px;
        max-width: 80px;
    }
}