/* Контейнер */
.zs-container {
    width: 100%;
    max-width: 100%;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    position: relative;
}

/* Группа ввода */
.zs-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

/* Обертка для поля ввода с подписью */
.zs-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Подписи полей ввода */
.zs-input-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 5px;
}

/* Поля ввода */
.zs-input {
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    background: white;
    padding: 15px;
    font-size: 18px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 52px;
}

.zs-input:focus {
    border-color: #4CAF50;
    outline: none;
}

.zs-input.error {
    border-color: #e74c3c;
}

/* Стили для выпадающего списка */
.zs-month-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Сообщение об ошибке */
.zs-day-error {
    display: none;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
    font-weight: bold;
}

/* Блок результата */
.zs-result {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.zs-zodiac-sign {
    font-size: 48px;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.15);
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1.2;
    letter-spacing: 1px;
}

/* Стиль для отдельного вывода результата */
.zs-result-only {
    font-size: 48px;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.15);
    display: inline-block;
    padding: 10px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    line-height: 1.2;
    letter-spacing: 1px;
}

/* Кнопки поделиться */
.zs-share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding: 10px 0;
}

.zs-share-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    color: white;
    flex-shrink: 0;
}

.zs-vk { background: #4a76a8; }
.zs-tg { background: #0088cc; }
.zs-wa { background: #25d366; }
.zs-copy { background: #666; }

.zs-share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Уведомления - ГЛОБАЛЬНЫЕ ДЛЯ ВСЕЙ СТРАНИЦЫ */
.zs-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    background: #4CAF50;
    color: white;
    padding: 25px 35px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    display: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zs-notification.show {
    display: block;
    opacity: 1;
}

/* Адаптивные стили */

/* Desktop */
@media (max-width: 1024px) {
    .zs-zodiac-sign {
        font-size: 42px;
        min-height: 60px;
    }
    
    .zs-result-only {
        font-size: 42px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .zs-container {
        padding: 15px;
    }
    
    .zs-zodiac-sign {
        font-size: 36px;
        min-height: 55px;
    }
    
    .zs-result-only {
        font-size: 36px;
        padding: 8px 16px;
    }
    
    .zs-input {
        padding: 12px;
        font-size: 16px;
        height: 48px;
    }
    
    .zs-input-label {
        font-size: 14px;
    }
    
    .zs-result {
        margin: 25px 0;
        padding: 15px;
    }
    
    .zs-share-buttons {
        gap: 10px;
    }
    
    .zs-share-btn {
        width: 55px;
        height: 55px;
        font-size: 14px;
    }
    
    .zs-notification {
        padding: 20px 30px;
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .zs-container {
        padding: 12px;
    }
    
    .zs-input-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .zs-zodiac-sign {
        font-size: 32px;
        min-height: 50px;
        letter-spacing: 0.5px;
    }
    
    .zs-result-only {
        font-size: 32px;
        padding: 6px 12px;
    }
    
    .zs-input {
        padding: 10px;
        font-size: 16px;
        height: 46px;
    }
    
    .zs-input-label {
        font-size: 14px;
    }
    
    .zs-share-buttons {
        gap: 8px;
        padding: 5px 0;
    }
    
    .zs-share-btn {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }
    
    .zs-result {
        margin: 20px 0;
        padding: 12px;
    }
    
    .zs-notification {
        padding: 18px 25px;
        font-size: 16px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .zs-zodiac-sign {
        font-size: 28px;
        min-height: 45px;
    }
    
    .zs-result-only {
        font-size: 28px;
    }
    
    .zs-notification {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .zs-input {
        padding: 8px;
        font-size: 16px;
        height: 44px;
    }
    
    .zs-share-buttons {
        gap: 6px;
    }
    
    .zs-share-btn {
        width: 48px;
        height: 48px;
        font-size: 12px;
    }
}

/* Отключение увеличения на мобильных */
.zs-input {
    font-size: 16px !important;
}

/* Анимация для результата */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zs-zodiac-sign {
    animation: fadeInScale 0.5s ease-out;
}

.zs-result-only {
    animation: fadeInScale 0.5s ease-out;
}

/* Анимация для динамических элементов */
.zs-dynamic-date,
.zs-dynamic-zodiac {
    animation: fadeInScale 0.3s ease-out;
}

/* Скрытие скроллбара для кнопок поделиться на мобильных */
.zs-share-buttons::-webkit-scrollbar {
    display: none;
}

.zs-share-buttons {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Убираем лишние отступы и границы у контейнера поделиться */
.zs-share-buttons:empty {
    display: none !important;
}

/* Убираем возможные артефакты отображения */
.zs-container *:last-child {
    margin-bottom: 0;
}