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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #5D4E37;
    background: linear-gradient(135deg, #F4E5D9 0%, #EBDFCE 100%);
    min-height: 100vh;
}

/* Static Pages (About/Privacy/Terms) */
.page-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 110px 24px 80px;
}

.page-hero {
    background: linear-gradient(180deg, rgba(178,189,163,0.18) 0%, rgba(248,211,187,0.18) 100%);
    border: 1px solid rgba(178,189,163,0.35);
    border-radius: 18px;
    padding: 28px 28px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.page-title {
    font-size: 2.4rem;
    line-height: 1.15;
    font-weight: 800;
    color: #5D4E37;
    margin-bottom: 8px;
}

.page-subtitle,
.last-updated {
    color: #8B7355;
    font-size: 0.98rem;
}

.page-card {
    background: #EBDFCE;
    border: 1px solid #D4C4B0;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.page-card h2 {
    font-size: 1.6rem;
    margin: 10px 0 14px;
    color: #5D4E37;
    font-weight: 700;
}

.page-card h3 {
    font-size: 1.25rem;
    margin: 20px 0 10px;
    color: #5D4E37;
    font-weight: 600;
}

.page-card p {
    margin-bottom: 14px;
}

.page-card ul {
    padding-left: 20px;
    margin: 10px 0 16px;
}

.page-card li { margin-bottom: 8px; }

/* Inline links on static pages */
.page-card a {
    color: #5D4E37;
    font-weight: 600;
    text-decoration: none;
    background-image: linear-gradient(rgba(178,189,163,0.45), rgba(178,189,163,0.45));
    background-size: 100% 30%;
    background-repeat: no-repeat;
    background-position: 0 85%;
    padding: 0 2px;
    border-radius: 2px;
    transition: background-size 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.page-card a:visited { color: #5D4E37; }

.page-card a:hover {
    background-size: 100% 55%;
    color: #4A3D2A;
}

.page-card a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(178,189,163,0.35);
    border-radius: 6px;
}

/* Navigation Bar */
.navbar {
    background: #EBDFCE;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 20px;
    color: #5D4E37;
}

.logo-icon {
    background: linear-gradient(135deg, #B2BDA3 0%, #F8D3BB 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #5D4E37;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: #B2BDA3;
}

.dropdown-icon {
    font-size: 12px;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(178, 189, 163, 0.3);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: #5D4E37;
}

.theme-toggle:hover {
    background: rgba(248, 211, 187, 0.3);
    border-color: rgba(178, 189, 163, 0.5);
    transform: translateY(-1px);
    color: #B2BDA3;
}

.theme-toggle:active {
    transform: translateY(0);
}

.theme-toggle svg {
    transition: transform 0.2s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg) scale(1.05);
}

/* Welcome Screen - Hero Section */
#welcome-screen {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    max-width: 500px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #5D4E37;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.2rem;
    color: #8B7355;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #B2BDA3 0%, #98A688 100%);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(178, 189, 163, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(178, 189, 163, 0.4);
    background: linear-gradient(135deg, #C5D0B1 0%, #B2BDA3 100%);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(178, 189, 163, 0.3);
}

.secondary-button {
    background: rgba(248, 211, 187, 0.8);
    color: #5D4E37;
    border: 1px solid rgba(178, 189, 163, 0.3);
    padding: 18px 36px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.secondary-button:hover {
    background: rgba(248, 211, 187, 0.95);
    border-color: #B2BDA3;
    color: #B2BDA3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.secondary-button:active {
    transform: translateY(0);
}

/* Button Icons */
.button-icon {
    transition: transform 0.2s ease;
}

.cta-button:hover .button-icon {
    transform: scale(1.1);
}

.secondary-button:hover .button-icon {
    transform: scale(1.1);
}

/* Hero Illustration */
.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration {
    position: relative;
    width: 100%;
    height: 100%;
}

.phone-mockup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 350px;
    background: linear-gradient(135deg, #B2BDA3 0%, #98A688 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: background 0.3s ease;
}

.dot.active {
    background: #B2BDA3;
}

/* Floating Elements */
.floating-people {
    position: absolute;
    width: 100%;
    height: 100%;
}

.person {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #B2BDA3 0%, #98A688 100%);
    animation: float 3s ease-in-out infinite;
}

.person-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.person-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
    background: linear-gradient(135deg, #F8D3BB 0%, #E6C4A6 100%);
}

.person-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
    background: linear-gradient(135deg, #EBDFCE 0%, #D4C4B0 100%);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(178, 189, 163, 0.15);
    animation: bubble 4s ease-in-out infinite;
}

.bubble-1 {
    top: 10%;
    right: 20%;
    width: 40px;
    height: 40px;
    animation-delay: 0.5s;
}

.bubble-2 {
    bottom: 30%;
    left: 5%;
    width: 60px;
    height: 60px;
    animation-delay: 1.5s;
}

.bubble-3 {
    top: 40%;
    right: 5%;
    width: 30px;
    height: 30px;
    animation-delay: 2.5s;
}

.bubble-4 {
    bottom: 10%;
    right: 30%;
    width: 50px;
    height: 50px;
    animation-delay: 3.5s;
}

/* Test Screen */
#test-screen {
    padding-top: 100px;
    min-height: 100vh;
    background: #F4E5D9;
}

.test-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
}

.progress-header {
    text-align: center;
    margin-bottom: 50px;
}

.progress-header h2 {
    font-size: 1.75rem;
    color: #5D4E37;
    margin-bottom: 8px;
    font-weight: 600;
}

.progress-info {
    color: #8B7355;
    font-size: 1rem;
    font-weight: 400;
}

#progress-bar {
    width: 100%;
    height: 4px;
    background: #E6D7C3;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 80px;
}

#progress-fill {
    height: 100%;
    background: #B2BDA3;
    transition: width 0.4s ease;
    border-radius: 2px;
}

/* Question Card - Apple Style */
.question-card {
    background: #EBDFCE;
    border-radius: 18px;
    padding: 40px 50px;
    margin: 0 auto;
    max-width: 900px;
    border: 1px solid #D4C4B0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.question-header {
    text-align: left;
    margin-bottom: 32px;
}

.question-title {
    font-size: 1.5rem;
    color: #5D4E37;
    line-height: 1.3;
    font-weight: 600;
    margin: 0;
}

.question-number {
    color: #B2BDA3;
    font-weight: 600;
    margin-right: 8px;
}

.answer-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.answer-btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 12px;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    min-height: 54px;
    position: relative;
    overflow: hidden;
}

.answer-btn:active {
    transform: scale(0.98);
}

.yes-btn {
    background: #B2BDA3;
    color: white;
}

.yes-btn:hover {
    background: #98A688;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(178, 189, 163, 0.25);
}

.no-btn {
    background: #F8D3BB;
    color: #5D4E37;
    border: 1px solid #E6C4A6;
}

.no-btn:hover {
    background: #F4C7A8;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Button Icons - Smaller and more refined */
.btn-icon {
    transition: transform 0.15s ease;
    width: 16px;
    height: 16px;
}

.answer-btn:hover .btn-icon {
    transform: scale(1.05);
}

/* Result Screen */
#result-screen {
    padding-top: 100px;
    min-height: 100vh;
    background: #F4E5D9;
    display: flex;
    align-items: center;
}

.result-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.result-header {
    text-align: left;
}

.result-title {
    font-size: 3rem;
    color: #5D4E37;
    margin-bottom: 30px;
    font-weight: 800;
}

.score-display h2 {
    font-size: 4rem;
    color: #B2BDA3;
    margin-bottom: 20px;
    font-weight: 900;
}

.result-description {
    font-size: 1.2rem;
    color: #8B7355;
    margin-bottom: 40px;
    line-height: 1.6;
}

.result-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Score Circle */
.result-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.score-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #B2BDA3 0%, #98A688 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(178, 189, 163, 0.3);
    position: relative;
}

.score-inner {
    width: 220px;
    height: 220px;
    background: #EBDFCE;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #5D4E37;
    line-height: 1;
}

.score-label {
    font-size: 1rem;
    color: #8B7355;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .phone-mockup {
        width: 150px;
        height: 250px;
    }
    
    /* Test Screen Mobile */
    .test-container {
        padding: 40px 20px;
        max-width: 100%;
    }
    
    .question-card {
        padding: 32px 20px;
        border-radius: 16px;
        margin: 0 16px;
    }
    
    .question-header {
        margin-bottom: 28px;
    }
    
    .question-title {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    .answer-buttons {
        gap: 12px;
        max-width: 100%;
    }
    
    .answer-btn {
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .result-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 0 20px;
    }
    
    .result-title {
        font-size: 2.5rem;
    }
    
    .score-circle {
        width: 250px;
        height: 250px;
    }
    
    .score-inner {
        width: 180px;
        height: 180px;
    }
    
    .score-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-button, .secondary-button {
        width: 100%;
        justify-content: center;
    }
    
    /* Test Screen Extra Small */
    .test-container {
        padding: 30px 16px;
    }
    
    .question-card {
        padding: 28px 16px;
        margin: 0 8px;
    }
    
    .question-header {
        margin-bottom: 24px;
    }
    
    .question-title {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    .answer-buttons {
        flex-direction: column;
        gap: 12px;
        max-width: 280px;
    }
    
    .answer-btn {
        width: 100%;
        min-height: 44px;
    }
    
    .result-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-button, .secondary-button {
        width: 100%;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bubble {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-10px) scale(1.1);
        opacity: 0.8;
    }
}

/* Fade Transitions */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Hide old content */
.text-content {
    display: block;
}

/* Content Sections */
.content-sections {
    background: #EBDFCE;
    padding: 80px 0;
}

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

.text-content .text-section {
    margin-bottom: 3rem;
}

.text-content .text-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #5D4E37;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #B2BDA3;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.text-content .text-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #6B5B4B;
    margin-bottom: 1.5rem;
}

.text-content .text-section strong {
    color: #B2BDA3;
    font-weight: 600;
}

/* FAQ Styles */
.faq-container {
    margin-top: 2rem;
}

.faq-item {
    border: 1px solid #E5DDD5;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FAFAF9;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #F4E5D9;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #5D4E37;
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #B2BDA3;
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #E5DDD5;
}

.faq-item.active .faq-question {
    border-bottom: 1px solid #E5DDD5;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: #B2BDA3;
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #FFFFFF;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p,
.faq-answer ul {
    padding: 0 1.5rem;
    margin: 1rem 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #6B5B4B;
}

.faq-answer p:first-child {
    padding-top: 1rem;
}

.faq-answer p:last-child,
.faq-answer ul:last-child {
    padding-bottom: 1.5rem;
}

.faq-answer ul {
    list-style-type: none;
    padding-left: 2.5rem;
}

.faq-answer ul li {
    position: relative;
    margin-bottom: 0.5rem;
}

.faq-answer ul li:before {
    content: "•";
    color: #B2BDA3;
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

/* Recommended reading (FAQ related links) */
.faq-related {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(178,189,163,0.35);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0 24px;
}

.related-title {
    color: #8B9C87;
    font-weight: 700;
    margin-bottom: 10px;
}

.related-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.related-links a {
    display: block;
    background: #EBDFCE;
    color: #5D4E37;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(178,189,163,0.25);
    font-weight: 600;
    transition: transform 0.15s ease, background 0.2s ease;
}

.related-links a:hover {
    background: #F4E5D9;
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .related-links { grid-template-columns: 1fr 1fr; }
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #5D4E37 0%, #4A3D2A 100%);
    color: #E6D7C3;
    padding: 60px 0 30px;
    margin-top: auto;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #B2BDA3;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #B2BDA3;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #C4B5A0;
    max-width: 300px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-link {
    color: #C4B5A0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-block;
}

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

.footer-bottom {
    border-top: 1px solid #6B5B4B;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: #C4B5A0;
}

.footer-disclaimer-text {
    font-size: 0.85rem;
    color: #A8998A;
    font-style: italic;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 20px;
}

.age-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(178, 189, 163, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(178, 189, 163, 0.3);
}

.age-badge {
    background: #B2BDA3;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.age-text {
    font-size: 0.85rem;
    color: #C4B5A0;
}

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

.modal-content {
    background: #EBDFCE;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid #D4C4B0;
}

.modal-header h2 {
    color: #5D4E37;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    color: #8B7355;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(139, 115, 85, 0.1);
}

.modal-close:hover {
    color: #5D4E37;
    background: rgba(139, 115, 85, 0.2);
}

.modal-body {
    padding: 20px 30px 30px;
    color: #6B5B4B;
}

.modal-body h3 {
    color: #5D4E37;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 25px 0 15px 0;
    border-left: 3px solid #B2BDA3;
    padding-left: 12px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.modal-update {
    color: #8B7355;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #E5DDD5;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .modal-header {
        padding: 20px 20px 15px;
    }
    
    .modal-body {
        padding: 15px 20px 20px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .age-notice {
        padding: 6px 12px;
    }
    
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
}

/* Modal Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Blog Styles */
.blog-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    color: #5D4E37;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #5D4E37 0%, #B2BDA3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-description {
    font-size: 1.2rem;
    color: #8B7355;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(93, 78, 55, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(178, 189, 163, 0.2);
    display: flex;
    align-items: center;
    min-height: 200px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(93, 78, 55, 0.15);
}

.blog-card.placeholder {
    opacity: 0.7;
}

.blog-card-image {
    flex: 0 0 250px;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #F4E5D9 0%, #EBDFCE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 80px;
    height: 80px;
    background: rgba(178, 189, 163, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image::after {
    content: "📝";
    font-size: 2rem;
    opacity: 0.6;
}

.article-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.purity-badge {
    position: relative;
    width: 120px;
    height: 140px;
    background: linear-gradient(135deg, #5D4E37 0%, #8B7355 50%, #B2BDA3 100%);
    border-radius: 12px 12px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(93, 78, 55, 0.3);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.blog-card:hover .purity-badge {
    transform: rotate(0deg) scale(1.05);
}

.badge-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.badge-score {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.badge-shield {
    position: absolute;
    bottom: -10px;
    width: 30px;
    height: 25px;
    background: linear-gradient(135deg, #B2BDA3 0%, #F8D3BB 100%);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    border-radius: 4px 4px 0 0;
}

.average-badge {
    position: relative;
    width: 120px;
    height: 140px;
    background: linear-gradient(135deg, #F8D3BB 0%, #B2BDA3 50%, #8B7355 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(248, 211, 187, 0.3);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
    padding: 15px 10px;
}

.blog-card:hover .average-badge {
    transform: rotate(0deg) scale(1.05);
}

.average-header, .average-footer {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.average-score {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    margin: 8px 0;
}

.score-analysis-badge {
    position: relative;
    width: 120px;
    height: 140px;
    background: linear-gradient(135deg, #8B7355 0%, #B2BDA3 50%, #F8D3BB 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: white;
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.3);
    transform: rotate(3deg);
    transition: transform 0.3s ease;
    padding: 15px 10px;
}

.blog-card:hover .score-analysis-badge {
    transform: rotate(0deg) scale(1.05);
}

.analysis-header, .analysis-footer {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.score-bars {
    display: flex;
    align-items: end;
    gap: 6px;
    height: 50px;
}

.score-bar {
    width: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.bar-1 {
    height: 25px;
}

.bar-2 {
    height: 40px;
}

.bar-3 {
    height: 30px;
}

.blog-card:hover .bar-1 {
    height: 30px;
}

.blog-card:hover .bar-2 {
    height: 45px;
}

.blog-card:hover .bar-3 {
    height: 35px;
}

.blog-card-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.blog-date {
    color: #8B7355;
    font-weight: 500;
}

.blog-category {
    background: linear-gradient(135deg, #B2BDA3 0%, #F8D3BB 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #5D4E37;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: #8B7355;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(178, 189, 163, 0.2);
}

.read-time {
    color: #8B7355;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Blog list byline (index) */
.blog-card-meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-byline {
    color: #8B7355;
    font-size: 0.9rem;
    font-weight: 500;
}

.meta-sep {
    color: rgba(93, 78, 55, 0.35);
}

.read-more {
    color: #B2BDA3;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

/* Inline CTA link used in paragraphs */
.inline-cta {
    display: inline;
    background: transparent;
    color: #5D4E37;
    text-decoration: none;
    padding: 0;
    border-radius: 0;
    border: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.inline-cta:hover {
    color: #4A3D2A;
    background: transparent;
}

.read-more:hover {
    color: #5D4E37;
}

.placeholder-text {
    color: #CCCCCC;
    cursor: default;
}

.nav-link.active {
    color: #B2BDA3;
    font-weight: 600;
}

/* Blog Article Styles */
.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5D4E37;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 1rem;
    color: #8B7355;
}

.article-meta .article-byline {
    font-style: italic;
    opacity: 0.95;
}

.article-category {
    background: linear-gradient(135deg, #B2BDA3 0%, #F8D3BB 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #5D4E37;
}

.article-content h2 {
    font-size: 1.8rem;
    color: #5D4E37;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.article-content h3 {
    font-size: 1.4rem;
    color: #5D4E37;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    background: rgba(178, 189, 163, 0.1);
    border-left: 4px solid #B2BDA3;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #B2BDA3;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: #5D4E37;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2.2rem;
    }
    
    .blog-grid {
        gap: 20px;
        padding: 0 15px;
    }
    
    .blog-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .blog-card-image {
        flex: none;
        width: 100%;
        height: 180px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-content {
        font-size: 1rem;
        padding: 0 25px;
    }
}

/* Article-specific styles */
.score-table {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(93, 78, 55, 0.1);
    border: 1px solid rgba(178, 189, 163, 0.2);
}

.score-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(178, 189, 163, 0.1);
}

.score-row:last-child {
    border-bottom: none;
}

.score-row:nth-child(even) {
    background: rgba(244, 229, 217, 0.3);
}

.score-range {
    flex: 0 0 120px;
    font-weight: 700;
    color: #5D4E37;
    background: linear-gradient(135deg, #B2BDA3 0%, #F8D3BB 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.score-meaning {
    flex: 1;
    padding-left: 20px;
    color: #8B7355;
    font-size: 1rem;
}

.faq-section {
    margin: 30px 0;
}

.faq-item {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(178, 189, 163, 0.2);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(93, 78, 55, 0.1);
}

.faq-item p:last-child {
    margin-bottom: 0;
}

.inline-test-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #B2BDA3 0%, #F8D3BB 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(178, 189, 163, 0.3);
    position: relative;
    top: -1px;
}

.inline-test-button:hover {
    background: linear-gradient(135deg, #5D4E37 0%, #8B7355 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 78, 55, 0.4);
    color: white !important;
}

.inline-test-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .score-row {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .score-range {
        flex: none;
    }
    
    .score-meaning {
        padding-left: 0;
        text-align: center;
    }
}

/* Comparison Badge */
.comparison-badge {
    position: relative;
    width: 120px;
    height: 140px;
    background: linear-gradient(135deg, #8B7355 0%, #5D4E37 50%, #B2BDA3 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.3);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    padding: 12px 8px;
    overflow: hidden;
}

.blog-card:hover .comparison-badge {
    transform: rotate(0deg) scale(1.05);
}

.badge-header, .badge-footer {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

.badge-middle {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.comparison-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

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

/* Trend Badge */
.trend-badge {
    position: relative;
    width: 120px;
    height: 140px;
    background: linear-gradient(135deg, #B2BDA3 0%, #8B7355 50%, #5D4E37 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(178, 189, 163, 0.3);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
    padding: 12px 8px;
    overflow: hidden;
}

.blog-card:hover .trend-badge {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 12px 35px rgba(178, 189, 163, 0.4);
}

.trend-header, .trend-footer {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

.trend-middle {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.trend-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shine 2.5s infinite;
}

/* Social Badge */
.social-badge {
    position: relative;
    width: 120px;
    height: 140px;
    background: linear-gradient(135deg, #F8D3BB 0%, #B2BDA3 50%, #8B7355 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(248, 211, 187, 0.3);
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
    padding: 12px 8px;
    overflow: hidden;
}

.blog-card:hover .social-badge {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 12px 35px rgba(248, 211, 187, 0.4);
}

.social-header, .social-footer {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

.social-middle {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.social-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

/* Meaning Badge */
.meaning-badge {
    position: relative;
    width: 120px;
    height: 140px;
    background: linear-gradient(135deg, #5D4E37 0%, #8B7355 50%, #F8D3BB 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(93, 78, 55, 0.3);
    transform: rotate(1deg);
    transition: transform 0.3s ease;
    padding: 12px 8px;
    overflow: hidden;
}

.blog-card:hover .meaning-badge {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 12px 35px rgba(93, 78, 55, 0.4);
}

.meaning-header, .meaning-footer {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

.meaning-middle {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.meaning-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shine 3.5s infinite;
}

/* Emotion Badge */
.emotion-badge {
    position: relative;
    width: 120px;
    height: 140px;
    background: linear-gradient(135deg, #B2BDA3 0%, #F8D3BB 50%, #5D4E37 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(178, 189, 163, 0.3);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    padding: 12px 8px;
    overflow: hidden;
}

.blog-card:hover .emotion-badge {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 12px 35px rgba(178, 189, 163, 0.4);
}

.emotion-header, .emotion-footer {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

.emotion-middle {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.emotion-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shine 4s infinite;
}

/* Popularity Badge - "Still Popular in 2025" */
.popularity-badge {
    position: relative;
    width: 120px;
    height: 140px;
    background: linear-gradient(135deg, #8B7355 0%, #B2BDA3 50%, #F8D3BB 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.3);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    overflow: hidden;
}

.blog-card:hover .popularity-badge {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 12px 35px rgba(139, 115, 85, 0.4);
}

.popularity-badge .badge-header,
.popularity-badge .badge-footer {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

.popularity-badge .badge-middle {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.popularity-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shine 2.8s infinite;
}

/* Digital Badge - "Digital Identity in 2025" */
.digital-badge {
    position: relative;
    width: 120px;
    height: 140px;
    background: linear-gradient(135deg, #5D4E37 0%, #8B7355 50%, #B2BDA3 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(93, 78, 55, 0.3);
    transform: rotate(2deg);
    transition: all 0.3s ease;
    overflow: hidden;
}

.blog-card:hover .digital-badge {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 12px 35px rgba(93, 78, 55, 0.4);
}

.digital-badge .badge-header,
.digital-badge .badge-footer {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

.digital-badge .badge-middle {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 3px;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.digital-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shine 3.2s infinite;
}

/* Personality Badge - "What Does Your Score Say About You" */
.personality-badge {
    position: relative;
    width: 120px;
    height: 140px;
    background: linear-gradient(135deg, #F8D3BB 0%, #B2BDA3 50%, #5D4E37 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(248, 211, 187, 0.3);
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    overflow: hidden;
}

.blog-card:hover .personality-badge {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 12px 35px rgba(248, 211, 187, 0.4);
}

.personality-badge .badge-header,
.personality-badge .badge-footer {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

.personality-badge .badge-middle {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.personality-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shine 3.5s infinite;
}

/* Share Modal Styles */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.share-modal.show {
    display: block;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.share-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 320px;
    max-width: 500px;
    width: 90vw;
    animation: slideUp 0.3s ease-out;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #5D4E37;
    font-weight: 600;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.share-modal-close:hover {
    background: #f5f5f5;
    color: #666;
}

.share-platforms {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 25px 30px;
}

.platform-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
}

.platform-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.platform-icon svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
}

.platform-icon:hover svg {
    transform: scale(1.1);
}

.platform-icon span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

/* Platform-specific colors */
.platform-icon.twitter {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
}

.platform-icon.instagram {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: white;
}

.platform-icon.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
    color: white;
}

.platform-icon.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #20b954 100%);
    color: white;
}

.platform-icon.tiktok {
    background: linear-gradient(135deg, #000000 0%, #ff0050 50%, #00f2ea 100%);
    color: white;
}

.platform-icon.reddit {
    background: linear-gradient(135deg, #ff4500 0%, #e63900 100%);
    color: white;
}

.platform-icon.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    color: white;
}

.platform-icon.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
}

.share-modal-footer {
    padding: 15px 30px 25px;
    border-top: 1px solid #f0f0f0;
}

.share-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.copy-link-btn, .copy-score-btn {
    padding: 10px 20px;
    border: 2px solid #5D4E37;
    background: transparent;
    color: #5D4E37;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.copy-link-btn:hover, .copy-score-btn:hover {
    background: #5D4E37;
    color: white;
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .share-modal-content {
        width: 95vw;
        min-width: unset;
    }
    
    .share-modal-header {
        padding: 20px 20px 15px;
    }
    
    .share-platforms {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 20px 20px;
    }
    
    .platform-icon {
        padding: 15px 10px;
    }
    
    .platform-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .platform-icon span {
        font-size: 0.8rem;
    }
    
    .share-modal-footer {
        padding: 15px 20px 20px;
    }
    
    .share-actions {
        flex-direction: column;
    }
    
    .copy-link-btn, .copy-score-btn {
        width: 100%;
        text-align: center;
    }
}

/* Enhanced button styles for share result button */
#share-result-btn {
    background: linear-gradient(135deg, #B2BDA3 0%, #98A688 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
}

#share-result-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 189, 163, 0.4);
    background: linear-gradient(135deg, #98A688 0%, #8B9A7A 100%);
}
