.container {
    max-width:1200px;
    margin:auto;
    padding:20px;
}

.content-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.flag-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
    flex-shrink: 0;
}

.flag-icon svg {
    width: 60px;
    height: 50px;
    border-radius: 3px;
}

.header-text h1 {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1;
}

.header-text h2 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 5px 0 0 0;
    line-height: 1;
}

.description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.description p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 10px 0;
}

.description p:last-child {
    margin: 0;
}

.subtitle {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

.gender-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    background: #f0f0f0;
    padding: 8px;
    border-radius: 50px;
}

.radio-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid transparent;
}

.radio-label input {
    display: none;
}

.radio-label .radio-text {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
}

.radio-label input:checked + .radio-text {
    color: white;
}

.radio-label input:checked ~ * {
    color: white;
}

.radio-label:has(input:checked) {
    background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
    box-shadow: 0 4px 15px rgba(251, 14, 118, 0.3);
}

.radio-label:has(input:checked) .radio-text {
    color: white;
}

.generate-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
    border: none;
    border-radius: 50px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(251, 14, 118, 0.3);
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(251, 14, 118, 0.4);
}

.generate-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 18px;
    display: inline-block;
}

.results {
    background: #fafafa;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 30px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.placeholder-text {
    text-align: center;
    color: #999;
    font-size: 15px;
}

.names-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.name-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.name-item:hover {
    background: #f8f8f8;
    border-color: #FB0E76;
    transform: translateX(5px);
}

.name-star {
    font-size: 20px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.name-star:hover {
    transform: scale(1.2);
}

.name-star.active {
    color: #FFD700;
}

.name-text {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

.regenerate-text {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-top: 15px;
}

@media (max-width: 600px) {
    .content-wrapper {
        padding: 25px;
    }

    .header-top {
        gap: 15px;
    }

    .flag-icon {
        width: 70px;
        height: 70px;
    }

    .flag-icon svg {
        width: 52px;
        height: 43px;
    }

    .header-text h1 {
        font-size: 26px;
    }

    .header-text h2 {
        font-size: 32px;
    }

    .description p {
        font-size: 14px;
    }

    .gender-selector {
        flex-direction: column;
        gap: 10px;
    }

    .radio-label {
        padding: 14px 16px;
    }

    .generate-btn {
        font-size: 15px;
        padding: 14px 20px;
    }

    .names-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .name-item {
        padding: 14px 12px;
    }

    .results {
        min-height: 200px;
        padding: 20px;
    }
}

@media (max-width: 400px) {
    .content-wrapper {
        padding: 20px;
        border-radius: 15px;
    }

    .header-text h1 {
        font-size: 22px;
    }

    .header-text h2 {
        font-size: 18px;
    }

    .flag-icon {
        width: 60px;
        height: 60px;
    }

    .description {
        padding: 15px;
    }

    .description p {
        font-size: 13px;
    }

    .radio-label .radio-text {
        font-size: 14px;
    }

    .name-text {
        font-size: 15px;
    }
}
