/* Main CSS - Mobile First, RTL, Hebrew */

/* Polin Font Family */
@font-face {
    font-family: 'polin';
    src: url('https://www.schoolist.co.il/wp-content/uploads/2025/12/Polin-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'polin';
    src: url('https://www.schoolist.co.il/wp-content/uploads/2025/12/Polin-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'polin';
    src: url('https://www.schoolist.co.il/wp-content/uploads/2025/12/Polin-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'polin';
    src: url('https://www.schoolist.co.il/wp-content/uploads/2025/12/Polin-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'polin';
    src: url('https://www.schoolist.co.il/wp-content/uploads/2025/12/Polin-Extrabold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'polin';
    src: url('https://www.schoolist.co.il/wp-content/uploads/2025/12/Polin-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90E2;
    --secondary-color: #7B68EE;
    --success-color: #50C878;
    --danger-color: #E74C3C;
    --warning-color: #F39C12;
    --bg-color: #F5F7FA;
    --card-bg: #FFFFFF;
    --text-color: #2C3E50;
    --text-light: #7F8C8D;
    --border-color: #E1E8ED;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: "polin", Sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 500; }

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    color: white;
    font-family: "polin", Sans-serif;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--text-light);
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn-share {
    background-color: var(--success-color);
    width: 100%;
    margin-top: 1rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: "polin", Sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: repeating-linear-gradient(
        45deg,
        #B8E6D3 0px,
        #B8E6D3 20px,
        #A8DDC8 20px,
        #A8DDC8 40px
    );
}

.auth-container {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
}

.auth-container h1 {
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

.auth-form {
    margin-top: 2rem;
}

.message {
    margin-top: 1rem;
    padding: 12px;
    border-radius: var(--radius-sm);
    display: none;
}

.message.success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
    display: block;
}

.message.error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
    display: block;
}

/* Public Page */
.public-page {
    min-height: 100vh;
    background: repeating-linear-gradient(
        45deg,
        #B8E6D3 0px,
        #B8E6D3 20px,
        #A8DDC8 20px,
        #A8DDC8 40px
    );
    padding: 1rem;
    position: relative;
}

.public-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent 0px,
        transparent 20px,
        rgba(255, 255, 255, 0.1) 20px,
        rgba(255, 255, 255, 0.1) 40px
    );
    pointer-events: none;
}

.page-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-header {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #FFFFFF;
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    background: #FFFFFF;
    border: 2px solid #E0E0E0;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #2E7D32;
    font-weight: 700;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0;
    line-height: 1.4;
}

.weather-strip {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: #FFFFFF;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.weather-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.weather-text {
    font-size: 1rem;
    font-weight: 500;
}

.weather-icon {
    font-size: 1.5rem;
}

.weather-recommendation {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.95;
}

.announcements-section {
    margin-bottom: 1.5rem;
}

.announcements-section h3 {
    display: none;
}

.announcement-card {
    background: #C8E6C9;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    line-height: 1.8;
    color: #000000;
}

.announcement-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.announcement-card li {
    margin-bottom: 0.5rem;
    padding-right: 1.5rem;
    position: relative;
}

.announcement-card li::before {
    content: '•';
    position: absolute;
    right: 0;
    font-weight: bold;
}

.blocks-section {
    margin-bottom: 2rem;
}

.block-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #E0E0E0;
}

.block-card:hover {
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.block-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

.block-card[data-block-type="schedule"] .block-icon {
    background: #F8BBD0;
}

.block-card[data-block-type="contacts"] .block-icon {
    background: #FFF9C4;
}

.block-card[data-block-type="whatsapp"] .block-icon {
    background: #C5E1A5;
}

.block-card[data-block-type="links"] .block-icon {
    background: #CE93D8;
}

.block-card[data-block-type="calendar"] .block-icon {
    background: #FFCC80;
}

.block-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.block-content {
    flex: 1;
}

.block-content h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
    margin: 0;
}

.block-chevron {
    font-size: 1.5rem;
    color: #9E9E9E;
    margin-right: 0.5rem;
    font-weight: 300;
}

.page-footer {
    padding: 1.5rem 0 2rem;
    text-align: center;
}

.btn-share {
    background: #2196F3;
    color: #FFFFFF;
    width: 100%;
    padding: 1rem;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-share:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-share::before {
    content: '↗';
    font-size: 1.2rem;
}

.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: var(--text-light);
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    left: 1rem;
    top: 1rem;
}

.close:hover {
    color: var(--text-color);
}

/* Responsive */
@media (min-width: 768px) {
    .public-page {
        padding: 2rem;
    }
    
    .page-container {
        max-width: 600px;
    }
    
    .auth-container {
        padding: 3rem;
    }
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

