/* Communication Style Quiz - Expressive & Social Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Communication Background Elements */
.communication-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.speech-bubble {
    position: absolute;
    top: 15%;
    left: 10%;
    width: 40px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    animation: float 8s ease-in-out infinite;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 15px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.1);
}

.communication-wave {
    position: absolute;
    top: 30%;
    right: 15%;
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: ripple 4s infinite;
}

.communication-wave::before,
.communication-wave::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: ripple 4s infinite;
}

.communication-wave::before {
    animation-delay: 1s;
}

.communication-wave::after {
    animation-delay: 2s;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

.message-flow {
    position: absolute;
    bottom: 20%;
    left: 20%;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 2px;
    animation: messageFlow 6s linear infinite;
}

@keyframes messageFlow {
    0% { transform: translateX(-100px) scaleX(0.5); }
    50% { transform: translateX(100px) scaleX(1); }
    100% { transform: translateX(200px) scaleX(0.5); }
}

.dialogue-icon {
    position: absolute;
    top: 60%;
    right: 8%;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    animation: float 7s ease-in-out infinite reverse;
}

.dialogue-icon::before {
    content: '"';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.logo i {
    font-size: 28px;
    color: #4fc3f7;
}

.home-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.home-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Quiz Content */
.quiz-content {
    text-align: center;
}

.quiz-intro {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.quiz-icon {
    font-size: 80px;
    margin-bottom: 30px;
    display: block;
    animation: bounce 3s infinite;
}

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

h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.quiz-description {
    font-size: 1.2em;
    color: #5a6c7d;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quiz-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #667eea;
    font-weight: 600;
}

.stat i {
    font-size: 20px;
    color: #4fc3f7;
}

.start-btn {
    background: linear-gradient(135deg, #4fc3f7 0%, #667eea 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.3);
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(79, 195, 247, 0.4);
}

.start-btn i {
    font-size: 1.1em;
}

/* Quiz Screen Styles */
.quiz-screen {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.quiz-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(79, 195, 247, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #667eea);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    font-weight: 600;
    color: #2c3e50;
    min-width: 60px;
    text-align: right;
}

.question-container {
    margin-bottom: 30px;
}

.question-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.question-number {
    color: #4fc3f7;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
    line-height: 1.4;
}

.answers-container {
    display: grid;
    gap: 15px;
}

.answer-option {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(79, 195, 247, 0.2);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 500;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
}

.answer-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.1), transparent);
    transition: left 0.5s ease;
}

.answer-option:hover {
    border-color: #4fc3f7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 195, 247, 0.2);
}

.answer-option:hover::before {
    left: 100%;
}

.answer-option.selected {
    background: linear-gradient(135deg, #4fc3f7 0%, #667eea 100%);
    color: white;
    border-color: #4fc3f7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 195, 247, 0.3);
}

.quiz-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.action-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    justify-content: center;
}

.action-btn.primary {
    background: linear-gradient(135deg, #4fc3f7 0%, #667eea 100%);
    color: white;
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #4fc3f7;
    border: 2px solid rgba(79, 195, 247, 0.3);
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results Screen */
.results-screen {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.results-container {
    display: flex;
    justify-content: center;
}

.results-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 50px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.results-header {
    margin-bottom: 30px;
}

.result-icon {
    font-size: 100px;
    margin-bottom: 20px;
    display: block;
    animation: celebration 2s ease-out;
}

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

.result-title {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.result-type {
    font-size: 2.2em;
    color: #4fc3f7;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.result-description {
    font-size: 1.2em;
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 30px;
}

.result-traits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.trait-tag {
    background: linear-gradient(135deg, #4fc3f7 0%, #667eea 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9em;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.result-actions .action-btn {
    text-decoration: none;
}

/* Share button styling */
#shareBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#shareBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

#shareBtn:active {
    transform: translateY(0);
}

/* Beautiful Share Modal Styles */
.share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.share-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.share-modal h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.share-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.share-btn.facebook {
    background: linear-gradient(45deg, #4267B2, #365899);
    color: white;
}

.share-btn.tiktok {
    background: linear-gradient(45deg, #ff0050, #000000);
    color: white;
}

.share-btn.x {
    background: linear-gradient(45deg, #1DA1F2, #0d8bd9);
    color: white;
}

.share-btn.instagram {
    background: linear-gradient(45deg, #E4405F, #833AB4, #F77737);
    color: white;
}

.share-btn.reddit {
    background: linear-gradient(45deg, #FF4500, #CC3600);
    color: white;
}

.share-btn.native {
    background: linear-gradient(45deg, #32CD32, #228B22);
    color: white;
}

.close-share {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.close-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .share-modal {
        padding: 20px;
        margin: 20px;
    }

    .share-buttons-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .share-btn {
        padding: 14px;
        font-size: 13px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .quiz-intro {
        padding: 30px 25px;
    }

    h1 {
        font-size: 2em;
    }

    .quiz-stats {
        gap: 20px;
    }

    .question-card {
        padding: 25px 20px;
    }

    .question-text {
        font-size: 1.2em;
    }

    .quiz-actions {
        flex-direction: column;
    }

    .results-card {
        padding: 30px 20px;
        margin: 10px;
    }

    .result-type {
        font-size: 1.8em;
    }

    .result-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .quiz-intro {
        padding: 25px 20px;
    }

    .quiz-icon {
        font-size: 60px;
    }

    h1 {
        font-size: 1.7em;
    }

    .quiz-description {
        font-size: 1em;
    }

    .start-btn {
        padding: 15px 30px;
        font-size: 1em;
    }
}