/* girl.css - Розовая тема для девочки */
:root {
    --primary-color: #F8BBD0; /* Светло-розовый */
    --secondary-color: #FCE4EC; /* Очень светлый розовый */
    --accent-color: #F06292; /* Яркий розовый */
    --text-color: #AD1457; /* Темно-розовый */
    --light-text: #C2185B; /* Средний розовый */
    --success-color: #F48FB1; /* Розовый успеха */
    --warning-color: #FFA726; /* Оранжевый для предупреждений */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #FCE4EC, #F8BBD0);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23F06292" opacity="0.1"/></svg>');
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(173, 20, 87, 0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

h1 {
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.subtitle {
    color: var(--text-color);
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(173, 20, 87, 0.08);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(252, 228, 236, 0.5);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(173, 20, 87, 0.12);
}

.progress-section {
    grid-column: 1 / -1;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .progress-info {
        flex-direction: column;
        gap: 10px;
    }
}

.progress-bar-container {
    height: 30px;
    background-color: #FCE4EC;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 5px rgba(173, 20, 87, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 15px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(173, 20, 87, 0.2);
}

.timer {
    font-size: 2rem;
    text-align: center;
    margin: 20px 0;
    color: var(--accent-color);
    text-shadow: 1px 1px 2px rgba(173, 20, 87, 0.1);
}

.week-info {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 20px;
}

.week-box {
    background: var(--secondary-color);
    padding: 15px;
    border-radius: 10px;
    flex: 1;
    margin: 0 10px;
    box-shadow: 0 2px 5px rgba(173, 20, 87, 0.1);
}

.week-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.trimester-info {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(173, 20, 87, 0.1);
}

.development-info {
    line-height: 1.8;
}

.development-info h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.milestones {
    margin-top: 30px;
}

.milestone-list {
    list-style-type: none;
}

.milestone-list li {
    padding: 10px 0;
    border-bottom: 1px solid #FCE4EC;
    display: flex;
    align-items: center;
}

.milestone-list li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 10px;
}

.completed {
    text-decoration: line-through;
    opacity: 0.7;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--light-text);
    font-size: 0.9rem;
}

.baby-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.baby-size {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(173, 20, 87, 0.05);
    border: 1px solid rgba(252, 228, 236, 0.3);
}

.size-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(173, 20, 87, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.size-emoji {
    font-size: 4rem;
    line-height: 1;
}

.size-image:hover {
    transform: scale(1.05);
}

.size-info {
    text-align: center;
}

.size-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.size-description {
    color: var(--light-text);
}

.heartbeat {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.heartbeat i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 0 5px;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    background: rgba(248, 187, 208, 0.2);
    border-radius: 50%;
    animation: floatAround 15s linear infinite;
}

@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, 50px) rotate(90deg); }
    50% { transform: translate(40px, 0) rotate(180deg); }
    75% { transform: translate(20px, -50px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

.current-milestones {
    margin-top: 15px;
    padding: 10px;
    background: var(--secondary-color);
    border-radius: 8px;
}

.current-milestones h4 {
    color: var(--accent-color);
    margin-bottom: 8px;
}

.current-milestones ul {
    list-style-type: none;
    padding-left: 0;
}

.current-milestones li {
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.current-milestones li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 8px;
}

/* Стили для голосования */
.voting-section {
    margin-top: 30px;
}

.voting-stats {
    margin-bottom: 30px;
}

.stat-row {
    margin-bottom: 15px;
}

.stat-item {
    background: var(--secondary-color);
    padding: 15px;
    border-radius: 10px;
}

.stat-label {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.stat-bar {
    height: 20px;
    background: #FCE4EC;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.stat-bar-fill.boy {
    background: #4FC3F7; /* Голубой для мальчика */
}

.stat-bar-fill.girl {
    background: #AD1457; /* Темно-розовый для девочки */
}

.stat-numbers {
    font-size: 0.9rem;
    color: var(--light-text);
}

.total-votes {
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #F8BBD0;
}

.gender-select {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.gender-option {
    cursor: pointer;
}

.gender-option input {
    display: none;
}

.gender-card {
    padding: 20px;
    border: 2px solid #F8BBD0;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.gender-option input:checked + .gender-card {
    border-color: var(--accent-color);
    background: var(--secondary-color);
    transform: scale(1.05);
}

.gender-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.gender-text {
    font-weight: bold;
}

.email-input {
    margin-bottom: 20px;
}

.email-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.email-input input {
    width: 100%;
    padding: 12px;
    border: 1px solid #F8BBD0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.email-input input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(240, 98, 146, 0.2);
}

.vote-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: bold;
}

.vote-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.message.success {
    background: #FCE4EC;
    color: #AD1457;
    border: 1px solid #F8BBD0;
}

.message.error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

.message.info {
    background: #FCE4EC;
    color: #AD1457;
    border: 1px solid #F8BBD0;
}

@media (max-width: 768px) {
    .gender-select {
        flex-direction: column;
    }
}