/* Share Page Specific Styles */

/* Hormone Info Section */
.hormone-info-section {
    margin-bottom: 48px;
}

.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.info-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.info-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #4a5568;
    margin-top: 32px;
    margin-bottom: 16px;
}

.info-description {
    font-size: 16px;
    line-height: 1.7;
    color: #718096;
    margin-bottom: 24px;
}

.hormone-effects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.hormone-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.hormone-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hormone-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.hormone-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.hormone-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 16px;
}

.hormone-card ul {
    list-style: none;
    padding: 0;
}

.hormone-card li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #718096;
}

.hormone-card li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #ff6b6b;
    font-weight: bold;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
}

.info-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
    font-size: 18px;
}

/* Additional Info Section */
.additional-info-section {
    margin-top: 48px;
    margin-bottom: 32px;
}

.type-list {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

.type-list h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
    margin-top: 20px;
}

.type-list h4:first-child {
    margin-top: 0;
}

.type-list ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.type-list li {
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
}

.type-list li strong {
    color: #2d3748;
    font-weight: 600;
}

.type-list p {
    margin-top: 12px;
    font-size: 15px;
    color: #4a5568;
}

/* Share Header */
.share-header {
    text-align: center;
    padding: 20px 0 24px 0;
    margin-bottom: 16px;
}

.mystery-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff9ff3 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.badge-icon {
    font-size: 16px;
    animation: mystery-pulse 2s ease-in-out infinite;
}

@keyframes mystery-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.share-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.share-subtitle {
    font-size: 18px;
    color: #718096;
    font-weight: 500;
}

/* Mystery Section */
.mystery-section {
    margin-bottom: 24px;
    position: relative;
}

.mystery-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 24px;
    padding: 40px 24px;
    text-align: center;
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mystery-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 107, 0.05), transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.mystery-content {
    position: relative;
    z-index: 1;
}

.mystery-emoji {
    font-size: 72px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

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

.mystery-question {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.mystery-description {
    font-size: 16px;
    color: #718096;
    margin-bottom: 24px;
    line-height: 1.5;
}

.reveal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff9ff3 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.reveal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.reveal-btn .btn-icon {
    font-size: 20px;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

/* Result Reveal */
.result-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.result-reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.result-reveal.hidden {
    display: none;
}

.reveal-card {
    background: linear-gradient(135deg, #fff5f5 0%, #fef5e7 100%);
    border-radius: 24px;
    padding: 40px 24px;
    text-align: center;
    border: 2px solid #fed7d7;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.1);
    position: relative;
    overflow: hidden;
}

.reveal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 107, 0.05), transparent);
    animation: celebration-shimmer 2s ease-in-out;
    pointer-events: none;
}

@keyframes celebration-shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.reveal-emoji {
    font-size: 80px;
    margin-bottom: 16px;
    animation: celebration-bounce 0.8s ease-out;
}

@keyframes celebration-bounce {
    0% { transform: scale(0) rotate(-180deg); }
    50% { transform: scale(1.2) rotate(-90deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.reveal-title {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.reveal-subtitle {
    font-size: 18px;
    color: #ff6b6b;
    font-weight: 600;
    margin-bottom: 16px;
}

.reveal-description {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    word-break: keep-all;
}

.reveal-stats {
    display: inline-block;
    background: rgba(255, 107, 107, 0.1);
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
}

.stat-value {
    font-size: 16px;
    color: #ff6b6b;
    font-weight: 700;
}

/* Friend Info Section */
.friend-info {
    margin-bottom: 24px;
}

.friend-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.friend-details {
    flex: 1;
}

.friend-name {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.friend-test-type {
    font-size: 14px;
    color: #718096;
    background: rgba(255, 107, 107, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

.friend-emoji {
    font-size: 32px;
    opacity: 0.8;
}

/* Action Section */
.action-section {
    margin: 0 8px 24px 8px;
    padding: 0 8px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff9ff3 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.secondary-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.secondary-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 18px;
}

/* Curiosity Section */
.curiosity-section {
    margin-bottom: 24px;
}

.curiosity-card {
    background: linear-gradient(135deg, #fff5f5 0%, #f7fafc 100%);
    border-radius: 20px;
    padding: 28px 24px;
    border: 2px solid #fed7d7;
    text-align: center;
}

.curiosity-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
}

.curiosity-icon {
    font-size: 24px;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.curiosity-text {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 24px;
    word-break: keep-all;
}

.type-previews {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.type-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-preview:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.type-emoji {
    font-size: 24px;
}

.type-name {
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
}

/* Share Footer */
.share-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.footer-text {
    font-size: 14px;
    color: #718096;
    margin-bottom: 16px;
    line-height: 1.5;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-link {
    background: none;
    border: none;
    color: #718096;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #4a5568;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.loading-screen.hidden {
    display: none;
}

.loading-content {
    text-align: center;
    max-width: 300px;
    padding: 32px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.loading-content p {
    font-size: 14px;
    color: #718096;
}

/* Animation Classes */
.mystery-card.revealing {
    transform: scale(0.95);
    opacity: 0.7;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .mystery-card,
    .reveal-card {
        padding: 48px 32px;
    }
    
    .mystery-emoji,
    .reveal-emoji {
        font-size: 96px;
    }
    
    .mystery-question,
    .reveal-title {
        font-size: 28px;
    }
    
    .action-buttons {
        flex-direction: row;
        gap: 16px;
    }
    
    .action-btn {
        flex: 1;
    }
    
    .type-previews {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .type-preview {
        padding: 20px 16px;
    }
    
    .type-emoji {
        font-size: 28px;
    }
    
    .type-name {
        font-size: 14px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .mystery-card,
    .reveal-card {
        padding: 56px 40px;
    }
    
    .curiosity-card {
        padding: 36px 32px;
    }
    
    .share-title {
        font-size: 32px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .mystery-emoji,
    .reveal-emoji,
    .badge-icon,
    .curiosity-icon,
    .mystery-card::before,
    .reveal-card::before,
    .action-btn:hover,
    .type-preview:hover {
        animation: none;
        transform: none;
    }
}

/* Focus Styles */
.reveal-btn:focus,
.action-btn:focus,
.type-preview:focus,
.footer-link:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}