/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

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

.main-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
.header {
    text-align: center;
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.header-emoji {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.header-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.header-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Description Section */
.description {
    padding: 30px;
}

.description-card {
    text-align: center;
    padding: 25px;
    background: #f8f9ff;
    border-radius: 15px;
    border: 1px solid #e1e8ff;
}

.description-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.description-sub {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

/* Test Info Section */
.test-info {
    padding: 0 30px 20px;
}

.test-types {
    display: flex;
    gap: 15px;
}

.type-card {
    flex: 1;
    text-align: center;
    padding: 20px 15px;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.type-card.testosterone {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    border-color: #ff6b6b;
}

.type-card.estrogen {
    background: linear-gradient(135deg, #ff9ff3 0%, #ffc3f7 100%);
    color: white;
    border-color: #ff9ff3;
}

.type-emoji {
    font-size: 2rem;
    margin-bottom: 8px;
}

.type-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.type-card p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Form Section */
.form-section {
    padding: 20px 30px 40px;
}

.input-group {
    margin-bottom: 30px;
}

.input-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.name-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ff;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.name-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-error {
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

/* Gender Selection */
.gender-group {
    margin-bottom: 30px;
}

.gender-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.gender-options {
    display: flex;
    gap: 15px;
}

.gender-btn {
    flex: 1;
    background: white;
    border: 2px solid #e1e8ff;
    border-radius: 12px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.gender-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.gender-btn.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.gender-btn .btn-emoji {
    font-size: 2rem;
    margin-bottom: 8px;
}

.gender-btn .btn-title {
    font-size: 1rem;
    font-weight: 600;
}

/* Start Section */
.start-section {
    text-align: center;
}

.start-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.start-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.start-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.start-btn .btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.start-btn:hover:not(:disabled) .btn-arrow {
    transform: translateX(3px);
}

.start-notice {
    font-size: 0.9rem;
    color: #666;
}

/* Info Section Styles */
.info-section {
    padding: 30px;
    background: #f8f9fa;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e9ecef;
}

.info-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 16px;
    text-align: center;
}

.info-description {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 24px;
    text-align: center;
}

.hormone-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.hormone-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.hormone-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hormone-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.hormone-traits {
    list-style: none;
    padding: 0;
    text-align: left;
}

.hormone-traits li {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.hormone-traits li:before {
    content: "•";
    position: absolute;
    left: 6px;
    color: #667eea;
    font-weight: bold;
}

.info-highlight {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.info-highlight p {
    font-size: 0.9rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

.info-link-section {
    text-align: center;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.info-link:hover {
    gap: 12px;
    color: #5a67d8;
}

/* Footer */
.footer {
    padding: 30px;
    background: #f8f9ff;
    text-align: center;
    border-top: 1px solid #e1e8ff;
}

.footer-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 30px 20px 25px;
    }
    
    .header-title {
        font-size: 1.6rem;
    }
    
    .description, .form-section {
        padding: 20px;
    }
    
    .test-types {
        flex-direction: column;
        gap: 10px;
    }
    
    .gender-options {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animation classes */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}