/* General Styles */
:root {
    --bg-color: #FFF0F5; /* Lavender Blush */
    --primary-color: #FFDDE1; /* Pastel Pink */
    --secondary-color: #FFB6C1; /* Light Pink */
    --text-color: #5D4037; /* Dark Brown */
    --accent-color: #F08080; /* Light Coral */
    --font-family: 'Gowun Dodum', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '🌈';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40vmax;
    color: white;
    opacity: 0.1;
    z-index: -1;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
}

h1, h2, p {
    margin: 0.5rem 0;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Header and Navigation */
header {
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Language Toggle Button */
.lang-toggle-btn {
    font-family: var(--font-family);
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: none;
    margin-left: 1rem;
}

.lang-toggle-btn:hover {
    background-color: var(--text-color);
    color: white;
    transform: none;
}

/* Footer */
footer {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    margin-top: auto;
    z-index: 2;
}

/* Start Screen */
.start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.main-image {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

button {
    font-family: var(--font-family);
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Question Container */
.question-container {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.progress-bar {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: bold;
}

.answer-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-btn {
    font-family: var(--font-family);
    background-color: white;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    padding: 1.5rem;
    font-size: 1.3rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.answer-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.answer-btn.selected {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: scale(1.02);
}


/* Result Container */
.result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
    animation: fadeIn 1s;
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

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

.result-image {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.result-container p {
    font-size: 1.3rem;
    line-height: 1.8;
}

.result-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Results Grid Page */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.result-card {
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(2px);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Policy Pages */
.page-content {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 15px;
    max-width: 800px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    line-height: 1.8;
    backdrop-filter: blur(5px);
}

.page-content h1 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Responsive - Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .page-content {
        max-width: 900px;
    }

    .results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive - Desktop (992px - 1199px) */
@media (max-width: 1199px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive - Tablet/iPad (768px - 991px) */
@media (max-width: 991px) {
    nav {
        padding: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav ul li a {
        font-size: 1rem;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.7rem;
    }
}

/* Responsive - Small Tablet (576px - 767px) */
@media (max-width: 767px) {
    nav {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem;
    }

    nav .logo {
        font-size: 1.5rem;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    nav ul li a {
        font-size: 0.95rem;
    }

    .lang-toggle-btn {
        margin-left: 0;
        margin-top: 0.5rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }

    main {
        padding: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .start-screen,
    .question-container,
    .result-container,
    .page-content {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .answer-btn {
        font-size: 1.1rem;
        padding: 1rem;
    }

    .result-buttons {
        flex-direction: column;
        width: 100%;
    }

    .result-buttons button {
        width: 100%;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .result-container p {
        font-size: 1.1rem;
    }
}

/* Responsive - Mobile (max-width: 575px) */
@media (max-width: 575px) {
    nav .logo {
        font-size: 1.3rem;
    }

    nav ul {
        gap: 0.5rem;
    }

    nav ul li a {
        font-size: 0.85rem;
    }

    main {
        padding: 0.8rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .start-screen,
    .question-container,
    .result-container,
    .page-content {
        padding: 1rem;
        border-radius: 12px;
    }

    button {
        padding: 0.8rem 1.5rem;
        font-size: 1.2rem;
    }

    .answer-btn {
        font-size: 1rem;
        padding: 0.9rem;
        border-radius: 12px;
    }

    .main-image,
    .result-image {
        max-width: 100%;
        border-radius: 10px;
    }

    .result-container p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .page-content {
        line-height: 1.6;
    }

    .progress-bar {
        font-size: 1rem;
    }

    footer {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Share Section Styles */
.share-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    text-align: center;
}

.share-label {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-weight: bold;
}

.a2a_kit {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-share-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: rgba(255, 221, 225, 0.3);
    border-radius: 15px;
    text-align: center;
}

.blog-share-section .share-label {
    margin-bottom: 1rem;
}

/* Blog Styles */
.blog-page {
    max-width: 1000px;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.blog-card {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.blog-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.blog-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.8rem;
}

.blog-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.blog-link:hover {
    color: var(--secondary-color);
}

/* Blog Post Page */
.blog-post {
    max-width: 800px;
    text-align: left;
}

.blog-post h1 {
    text-align: left;
    margin-bottom: 0.5rem;
}

.blog-post-meta {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--primary-color);
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.9;
}

.blog-post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.blog-post-content p {
    margin-bottom: 1.2rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-back-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s;
}

.blog-back-link:hover {
    background-color: var(--accent-color);
}

@media (max-width: 767px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card h2 {
        font-size: 1.2rem;
    }

    .blog-post-content {
        font-size: 1rem;
    }
}

/* Responsive - Very Small Mobile (max-width: 375px) */
@media (max-width: 375px) {
    nav ul li a {
        font-size: 0.8rem;
    }

    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .answer-btn {
        font-size: 0.95rem;
        padding: 0.8rem;
    }
}