/* רקע ורוד מונפש עם נצנצים */
body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: linear-gradient(45deg, #ffc0cb, #ffe4e1);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    position: relative;
    overflow-x: hidden;
}

/* רקע זז */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* נצנצים בולטים ומנצנצים */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(white 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    animation: sparkle 2s linear infinite, flicker 1.5s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.7;
    z-index: 0;
    filter: brightness(1.8) blur(0.5px);
}

@keyframes sparkle {
    from { background-position: 0 0; }
    to { background-position: 40px 40px; }
}

@keyframes flicker {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
    75% { opacity: 0.5; }
}

/* כותרת */
h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #800040;
    position: relative;
    z-index: 1;
}
.heel-icon-img {
    height: 40px;
    margin-left: 15px;
    animation: heelWiggle 2s infinite ease-in-out;
    vertical-align: middle;
}

@keyframes heelWiggle {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-15deg); }
}

/* גלריה */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 50px;
    direction: rtl;
    position: relative;
    z-index: 1;
}

/* כרטיס */
.card {
    background-color: white;
    border: 2px solid #ffb6c1;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

.card-content {
    padding: 12px;
    text-align: right;
}

.card-content p {
    margin: 0 0 8px;
    color: #800040;
    font-size: 1.05em;
    font-weight: bold;
    background: linear-gradient(90deg, #ffe6f0, #fff);
    padding: 8px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background 0.3s ease;
    text-align: center;
}

.stars {
    color: #ffc107;
    font-size: 1.1em;
}

/* כפתור פרטים */
.details-button {
    display: block;
    width: 100%;
    padding: 12px 0;
    margin-top: 10px;
    background-color: #ff00c3;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
}

.details-button:hover {
    background-color: #222;
}

/* כפתור טלגרם */
.telegram-button {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 14px 0;
    background-color: #0088cc;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.05em;
    box-shadow: 0 4px 10px rgba(0, 136, 204, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.telegram-button:hover {
    background-color: #0070aa;
    transform: translateY(-2px);
}

.telegram-button i {
    margin-left: 8px;
    font-size: 1.2em;
}

/* חלונית פרטים */
.image-modal {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background-color: rgba(0, 0, 0, 0.151);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 90%;
    max-height: 80%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modal-content img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2em;
    font-weight: bold;
    color: #ff3b3b;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 1001;
}

.close-button:hover {
    transform: scale(1.3) rotate(90deg);
    color: #ff0000;
}

/* חיצים בניווט בין התמונות */
.modal-gallery-nav button {
    background-color: #0088cc;
    color: white;
    border: none;
    padding: 8px 14px;
    margin: 0 10px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.5);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-gallery-nav button:hover {
    background: linear-gradient(145deg, #ff1493, #ff69b4);
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.6);
}

/* ============================ MEDIA QUERIES ============================ */

/* סמארטפונים (עד 600px) */
@media (max-width: 600px) {
    .modal-content {
        max-width: 100%;
        max-height: 80%;
        padding: 10px;
    }

    .modal-content img {
        max-height: 50vh;
    }

    .modal-gallery-nav button {
        background: linear-gradient(145deg, #ff69b4, #ff1493);
        color: white;
        border: none;
        padding: 12px 18px;
        margin: 0 15px;
        border-radius: 50%;
        font-size: 1.4em;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(255, 105, 180, 0.4);
        transition: background 0.4s ease, transform 0.2s ease, box-shadow 0.3s ease;
    }
    
    .close-button {
        font-size: 1.3em;
    }
}

/* טבלטים (עד 768px) */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 75%;
        padding: 15px;
    }

    .modal-content img {
        max-height: 55vh;
    }

    .modal-gallery-nav button {
        font-size: 1.1em;
    }
}
