/* Google Fonts - Playful Paws 컨셉 폰트 */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&display=swap');

/* ==================== Playful Paws 컬러 변수 ==================== */
:root {
    --color-pink: #FF6B9D;
    --color-pink-light: #FFB8D0;
    --color-pink-dark: #E5547F;
    --color-mint: #7FDBCA;
    --color-mint-light: #B8F0E5;
    --color-mint-dark: #5CC4B0;
    --color-yellow: #FFE066;
    --color-yellow-light: #FFF0A8;
    --color-yellow-dark: #F5C842;
    --color-purple: #B8A9E8;
    --color-bg: #FFF9F0;
    --color-card: #FFFFFF;
    --color-text: #4A4A4A;
    --color-text-light: #7A7A7A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-pink), var(--color-mint));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-pink-dark), var(--color-mint-dark));
}

/* 텍스트 선택 스타일 */
::selection {
    background: var(--color-pink-light);
    color: var(--color-text);
}

::-moz-selection {
    background: var(--color-pink-light);
    color: var(--color-text);
}

body {
    font-family: 'Baloo 2', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--color-bg);
    background-image:
        radial-gradient(circle at 10% 20%, var(--color-pink-light) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, var(--color-mint-light) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, var(--color-yellow-light) 0%, transparent 30%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    color: var(--color-text);
}

/* 배경 장식 - 물방울/별 패턴 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, var(--color-pink) 2px, transparent 2px),
        radial-gradient(circle, var(--color-mint) 2px, transparent 2px),
        radial-gradient(circle, var(--color-yellow) 1.5px, transparent 1.5px);
    background-size: 80px 80px, 60px 60px, 40px 40px;
    background-position: 0 0, 30px 30px, 15px 15px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatPaw {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(20px) rotate(-5deg);
    }
}

/* Navigation Styles */
.site-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.15);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    border: 2px solid var(--color-pink-light);
}

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

/* Mobile Header Bar - 데스크탑에서는 숨김 */
.mobile-header-bar {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4em;
    color: var(--color-pink);
    cursor: pointer;
    padding: 8px 12px;
    transition: transform 0.3s ease;
    line-height: 1;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--color-pink);
    outline-offset: 2px;
    border-radius: 4px;
}

.site-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.site-nav li {
    margin: 0;
}

.site-nav a {
    color: var(--color-pink-dark);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: block;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.site-nav a:hover {
    background: linear-gradient(135deg, var(--color-pink), var(--color-mint));
    color: white;
    transform: translateY(-2px);
}

.site-nav a:focus {
    outline: 2px solid var(--color-pink);
    outline-offset: 2px;
}

.site-nav a.active {
    background: linear-gradient(135deg, var(--color-pink), var(--color-mint));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

/* Navigation Badge Styles */
.nav-badge {
    display: inline-block;
    font-size: 0.65em;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    animation: badgePulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-badge-hot {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
}

.nav-badge-new {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Language Selector Styles */
.language-selector {
    display: flex;
    align-items: center;
}

.language-selector select {
    padding: 10px 15px;
    border-radius: 20px;
    border: 2px solid var(--color-mint);
    background: white;
    color: var(--color-mint-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FDBCA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 35px;
    min-height: 44px;
}

.language-selector select:hover {
    background: linear-gradient(135deg, var(--color-mint), var(--color-mint-dark));
    color: white;
    border-color: var(--color-mint);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.language-selector select:focus {
    outline: 2px solid var(--color-mint);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(127, 219, 202, 0.3);
}

/* Promo Banner Styles */
.promo-banner {
    background: linear-gradient(135deg, var(--color-pink), var(--color-mint));
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
    animation: slideDown 0.6s ease-out;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

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

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.promo-icon {
    font-size: 2em;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-10deg);
    }
    75% {
        transform: scale(1.2) rotate(10deg);
    }
}

.promo-text {
    flex: 1;
    color: white;
    font-size: 1.1em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.promo-text strong {
    background: var(--color-yellow);
    color: var(--color-text);
    padding: 4px 12px;
    border-radius: 15px;
    margin-right: 10px;
    font-weight: 700;
    display: inline-block;
    animation: pulse 2s infinite;
    text-shadow: none;
}

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

.promo-btn {
    background: var(--color-yellow);
    color: var(--color-text);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.promo-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 224, 102, 0.5);
    background: white;
    color: var(--color-pink);
}

.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.container {
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.15);
    max-width: 1200px;
    width: 100%;
    padding: 40px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in;
    border: 3px solid var(--color-pink-light);
    position: relative;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

header h1 {
    color: var(--color-text);
    font-size: 2.4em;
    margin-bottom: 10px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-pink), var(--color-mint), var(--color-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-pink), var(--color-mint), var(--color-yellow));
    border-radius: 3px;
}

header p {
    color: var(--color-text-light);
    font-size: 1.1em;
    margin-top: 18px;
}

.loading {
    color: var(--color-pink);
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    display: none;
}

.loading.show {
    display: block;
}

.cat-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

/* Desktop: 3 columns for large screens */
@media (min-width: 1200px) {
    .cat-gallery {
        gap: 30px;
    }
}

.cat-card {
    position: relative;
    background: var(--color-bg);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.15);
    animation: slideIn 0.5s ease-out;
    will-change: transform;
    border: 3px solid transparent;
}

.cat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 107, 157, 0.25);
    border-color: var(--color-pink-light);
}

.cat-card:focus {
    outline: 3px solid var(--color-pink);
    outline-offset: 3px;
}

.cat-card:active {
    transform: scale(0.98);
}

.cat-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(255, 107, 157, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.cat-card:hover::before {
    opacity: 1;
}

.cat-card::after {
    content: 'Click!';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--color-pink), var(--color-mint));
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(-10px);
    z-index: 2;
}

.cat-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

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

.button-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn {
    flex: 1;
    padding: 15px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

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

.btn:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 3px;
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-pink), var(--color-pink-dark));
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-pink-dark), var(--color-pink));
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-mint), var(--color-mint-dark));
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--color-mint-dark), var(--color-mint));
    box-shadow: 0 8px 25px rgba(127, 219, 202, 0.4);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.info {
    text-align: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--color-yellow-light), var(--color-mint-light));
    border-radius: 20px;
    margin-bottom: 20px;
    border: 2px dashed var(--color-mint);
    position: relative;
}

.info::before {
    content: '💡';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
}

.info p {
    color: var(--color-text);
    font-size: 0.95em;
    font-weight: 600;
    padding-left: 25px;
}

footer {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.9em;
    padding: 30px 20px;
    margin-top: 30px;
    background: linear-gradient(180deg, transparent, rgba(255, 107, 157, 0.05));
    border-top: 3px solid;
    border-image: linear-gradient(90deg, transparent, var(--color-pink), var(--color-mint), var(--color-yellow), transparent) 1;
    position: relative;
}

footer::before {
    content: '🐾';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    background: white;
    padding: 0 15px;
}

footer a {
    color: var(--color-pink);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--color-mint-dark);
    text-decoration: none;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(127, 219, 202, 0.1));
    border-radius: 20px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: linear-gradient(135deg, var(--color-pink), var(--color-mint));
    color: white;
    transform: translateY(-2px);
}

/* Content Page Styles */
.content-page {
    line-height: 1.8;
}

.content-page h1 {
    font-size: 2.2em;
    margin-bottom: 25px;
    padding-bottom: 20px;
    text-align: center;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-pink), var(--color-mint), var(--color-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.content-page h1::after {
    content: '🐾';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5em;
    -webkit-text-fill-color: initial;
}

.content-page h2 {
    color: var(--color-pink);
    font-size: 1.6em;
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-page h2::before {
    content: '🐱';
    font-size: 0.9em;
}

.content-page h3 {
    color: var(--color-mint-dark);
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 600;
    padding-left: 15px;
    border-left: 4px solid var(--color-mint);
}

.content-page p {
    color: var(--color-text);
    margin-bottom: 15px;
    text-align: justify;
}

.content-page ul, .content-page ol {
    margin-left: 30px;
    margin-bottom: 15px;
    color: var(--color-text);
}

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

.content-page a {
    color: var(--color-pink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.content-page a:hover {
    border-bottom-color: var(--color-pink);
}

.content-page .date {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.content-page .last-updated {
    color: #999;
    font-size: 0.85em;
    font-style: italic;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Blog List Styles */
.blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

@media (max-width: 968px) {
    .blog-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.blog-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid var(--color-pink-light);
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-pink), var(--color-mint), var(--color-yellow));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-pink);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.2);
}

.blog-card h3 {
    color: var(--color-text);
    margin-bottom: 12px;
    font-size: 1.2em;
    font-weight: 700;
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: var(--color-pink);
}

.blog-card .date {
    font-size: 0.85em;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.blog-card .excerpt {
    color: var(--color-text);
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 0.95em;
}

.blog-card .read-more {
    color: white;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, var(--color-pink), var(--color-mint));
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-block;
    transition: all 0.3s ease;
}

.blog-card .read-more:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 30px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-pink);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    background: linear-gradient(135deg, var(--color-pink-light), var(--color-mint-light));
    padding: 20px;
    border-radius: 20px;
    margin-top: 30px;
    border: 2px dashed var(--color-mint);
}

.contact-info h3 {
    color: var(--color-pink);
    margin-bottom: 15px;
}

/* Personality Test Styles */
.test-screen {
    animation: fadeIn 0.5s ease-in;
}

.test-header {
    text-align: center;
    margin-bottom: 40px;
}

.test-header h1 {
    color: #333;
    font-size: 2.2em;
    margin-bottom: 15px;
}

.test-header p {
    color: #666;
    font-size: 1.1em;
}

.test-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.cat-illustration {
    padding: 40px;
}

.cat-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.cat-images-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cat-images-grid img:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

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

.btn-large {
    padding: 20px 50px;
    font-size: 1.3em;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--color-pink), var(--color-mint));
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--color-pink);
    font-weight: 600;
    margin-bottom: 30px;
}

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

.question-text {
    color: #333;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 30px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    padding: 20px 30px;
    font-size: 1.1em;
    text-align: left;
    background: #f8f9ff;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    color: #333;
}

.option-btn:hover {
    background: var(--color-pink-light);
    border-color: var(--color-pink);
    transform: translateX(5px);
}

.option-btn.selected {
    background: linear-gradient(135deg, var(--color-pink), var(--color-mint));
    color: white;
    border-color: var(--color-pink);
    font-weight: 600;
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.result-card {
    background: linear-gradient(135deg, var(--color-pink-light), var(--color-mint-light));
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    width: 100%;
    max-width: 700px;
    animation: scaleIn 0.5s ease-out;
    border: 3px solid var(--color-pink-light);
}

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

.result-emoji {
    font-size: 5em;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.result-cat-image-container {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: white;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#resultCatImage {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

.image-loading {
    color: var(--color-pink);
    font-size: 1.2em;
    padding: 40px;
    text-align: center;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.result-type {
    color: var(--color-pink);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.result-description {
    color: #555;
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
}

.result-traits {
    margin-bottom: 30px;
}

.result-traits h3 {
    color: var(--color-mint-dark);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.traits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.trait-tag {
    background: white;
    color: var(--color-pink);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    border: 2px solid var(--color-pink);
}

.result-recommendation {
    background: white;
    padding: 20px;
    border-radius: 20px;
    border-left: 4px solid var(--color-mint);
}

.result-recommendation h3 {
    color: var(--color-mint-dark);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.result-recommendation p {
    color: #555;
    font-size: 1.1em;
}

.share-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px dashed #e0e0e0;
}

.share-section h3 {
    color: var(--color-pink);
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 130px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn:active {
    transform: translateY(0);
}

.twitter-btn {
    background: #1DA1F2;
    color: white;
}

.twitter-btn:hover {
    background: #1a8cd8;
}

.facebook-btn {
    background: #4267B2;
    color: white;
}

.facebook-btn:hover {
    background: #365899;
}

.link-btn {
    background: #10b981;
    color: white;
}

.link-btn:hover {
    background: #059669;
}

@media (max-width: 900px) {
    .cat-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .option-btn {
        padding: 15px 20px;
        font-size: 1em;
    }

    .result-card {
        padding: 30px 20px;
    }

    .result-emoji {
        font-size: 4em;
    }

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

@media (max-width: 768px) {
    .site-nav {
        padding: 0;
        border-radius: 15px;
        overflow: hidden;
    }

    .nav-content {
        flex-direction: column;
        align-items: stretch;
    }

    /* 모바일 헤더 바 표시 */
    .mobile-header-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
        background: linear-gradient(135deg, var(--color-pink), var(--color-mint));
    }

    .mobile-site-title {
        font-size: 1.1em;
        font-weight: 700;
        color: white;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }

    /* Show mobile menu toggle on small screens */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 12px;
        color: white;
        font-size: 1.3em;
        border: 2px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        padding: 0;
    }

    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.4);
        transform: scale(1.05);
    }

    /* 언어 선택기 */
    .language-selector {
        width: 100%;
        justify-content: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    }

    .site-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 5px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
        padding: 0;
        margin-top: 0;
    }

    .site-nav ul.mobile-menu-open {
        max-height: 500px;
        padding: 15px;
    }

    /* 메뉴가 열릴 때 언어 선택기도 함께 표시 */
    .site-nav ul.mobile-menu-open ~ .language-selector {
        max-height: 100px;
        padding: 0 15px 15px;
    }

    .site-nav li {
        width: 100%;
    }

    .site-nav a {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        justify-content: center;
        background: var(--color-bg);
        border-radius: 12px;
    }

    .site-nav a.active {
        background: linear-gradient(135deg, var(--color-pink), var(--color-mint));
    }

    .language-selector select {
        width: 100%;
        max-width: 250px;
    }
}

/* Age Calculator Styles */
.calculator-container {
    max-width: 600px;
    margin: 40px auto;
    background: linear-gradient(135deg, var(--color-pink), var(--color-mint));
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.3);
}

.calculator-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
}

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

.input-group label {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.age-input {
    width: 100%;
    padding: 15px;
    font-size: 1.3em;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.age-input:focus {
    outline: none;
    border-color: var(--color-pink);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

.calculate-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.2em;
    font-weight: bold;
    background: linear-gradient(135deg, var(--color-pink), var(--color-mint));
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    min-height: 44px;
}

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

.calculate-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.calculate-btn:active {
    transform: translateY(0);
}

.result-container {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, var(--color-yellow-light), var(--color-mint-light));
    border-radius: 20px;
    display: none;
    animation: fadeIn 0.5s ease;
    border: 2px dashed var(--color-mint);
}

.result-container.show {
    display: block;
}

.result-age {
    font-size: 3em;
    font-weight: bold;
    color: var(--color-pink);
    text-align: center;
    margin-bottom: 10px;
}

.result-label {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.life-stage {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.life-stage h3 {
    color: var(--color-mint-dark);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.life-stage-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--color-pink), var(--color-mint));
    color: white;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

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

.tips-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li:before {
    content: "✓ ";
    color: var(--color-pink);
    font-weight: bold;
    margin-right: 8px;
}

.info-section {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
}

.info-section h2 {
    color: var(--color-pink);
    margin-bottom: 20px;
}

.age-chart {
    margin: 30px 0;
    overflow-x: auto;
}

.age-chart table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.age-chart th, .age-chart td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.age-chart th {
    background: linear-gradient(135deg, var(--color-pink), var(--color-mint));
    color: white;
    font-weight: 600;
}

.age-chart tr:last-child td {
    border-bottom: none;
}

.age-chart tr:hover {
    background: var(--color-pink-light);
}

@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 20px 18px;
    }

    .site-nav {
        padding: 15px 20px;
    }

    header h1 {
        font-size: 1.6em;
        line-height: 1.3;
    }

    header p {
        font-size: 1em;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .cat-gallery {
        grid-template-columns: 1fr;
    }

    .cat-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 300px;
    }

    .cat-images-grid img {
        height: 140px;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    .test-header h1 {
        font-size: 1.6em;
    }

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

    .navigation-buttons .btn {
        width: 100%;
    }

    /* 프로모 배너 모바일 최적화 */
    .promo-banner {
        padding: 15px 18px;
    }

    .promo-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .promo-icon {
        display: none; /* 모바일에서 이모티콘 숨김 */
    }

    .promo-text {
        font-size: 0.95em;
        width: 100%;
    }

    .promo-text strong {
        display: block;
        margin-bottom: 8px;
        margin-right: 0;
    }

    .promo-btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        margin-top: 0;
    }

    /* Age Calculator 모바일 최적화 */
    .calculator-container {
        padding: 25px 20px;
        margin: 20px auto;
    }

    .calculator-box {
        padding: 20px;
    }

    .result-age {
        font-size: 2.2em;
    }

    .age-chart {
        font-size: 0.9em;
    }

    .age-chart th, .age-chart td {
        padding: 10px 8px;
    }
}

/* ===== 방명록 스타일 ===== */
.guestbook-form {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.guestbook-form .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.guestbook-form input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    font-size: 1em;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

.guestbook-form input[type="text"]:focus {
    outline: none;
    border-color: var(--color-pink);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

.guestbook-form select {
    padding: 12px 15px;
    font-size: 1.3em;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    background: white;
}

.guestbook-form textarea {
    width: 100%;
    padding: 15px;
    font-size: 1em;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.guestbook-form textarea:focus {
    outline: none;
    border-color: var(--color-pink);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

.guestbook-entries {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guestbook-entry {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.guestbook-entry:hover {
    transform: translateY(-2px);
}

.entry-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.entry-emoji {
    font-size: 1.5em;
}

.entry-name {
    font-weight: 600;
    color: var(--color-pink);
}

.entry-date {
    margin-left: auto;
    font-size: 0.85em;
    color: #999;
}

.entry-message {
    color: #555;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
}

.no-entries {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

.guestbook-info {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 0.9em;
}

@media (max-width: 600px) {
    .guestbook-form .form-row {
        flex-direction: column;
    }

    .guestbook-form select {
        width: 100%;
    }
}

/* ==================== Statistics Page Styles ==================== */

.stats-header {
    text-align: center;
    margin-bottom: 40px;
}

.stats-header h1 {
    color: #333;
    margin-bottom: 15px;
}

.stats-header p {
    color: #666;
    font-size: 1.1em;
}

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

.summary-card {
    background: white;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 200px;
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
}

.summary-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.summary-number {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.summary-label {
    color: #666;
    font-size: 0.95em;
}

.stats-chart-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.stats-chart-container h2 {
    color: #764ba2;
    margin-bottom: 25px;
    text-align: center;
}

.chart-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.chart-bar-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.chart-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.chart-emoji {
    font-size: 1.5em;
}

.chart-type-name {
    font-size: 0.9em;
    color: #333;
    white-space: nowrap;
}

.chart-bar-wrapper {
    flex: 1;
    background: #f0f0f0;
    border-radius: 10px;
    height: 30px;
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
    min-width: 5px;
}

.chart-percentage {
    min-width: 50px;
    text-align: right;
    font-weight: bold;
    color: #333;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

.stats-details {
    margin-bottom: 40px;
}

.stats-details h2 {
    color: #764ba2;
    margin-bottom: 25px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.stats-type-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stats-type-card:hover {
    transform: translateY(-5px);
}

.stats-type-header {
    padding: 20px;
    text-align: center;
    color: white;
}

.stats-type-emoji {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
}

.stats-type-name {
    font-size: 1.1em;
    margin: 0;
}

.stats-type-body {
    padding: 20px;
    text-align: center;
}

.stats-count {
    margin-bottom: 10px;
}

.count-number {
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

.count-label {
    font-size: 0.9em;
    color: #666;
    margin-left: 5px;
}

.stats-percentage {
    font-size: 1.2em;
    color: #764ba2;
    font-weight: bold;
    margin-bottom: 15px;
}

.stats-traits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.trait-mini {
    background: linear-gradient(135deg, #667eea22, #764ba222);
    color: #764ba2;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
}

.stats-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-radius: 15px;
    margin-bottom: 30px;
}

.stats-cta p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.stats-info {
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .stats-summary {
        flex-direction: column;
        align-items: center;
    }

    .summary-card {
        width: 100%;
        max-width: 300px;
    }

    .chart-bar-container {
        flex-direction: column;
        align-items: stretch;
    }

    .chart-label {
        min-width: auto;
        justify-content: center;
        margin-bottom: 5px;
    }

    .chart-percentage {
        text-align: center;
        margin-top: 5px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== Mini Stats (성향 테스트 페이지 내 통계) ==================== */

.mini-stats {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, var(--color-pink-light), var(--color-mint-light));
    border-radius: 25px;
    border: 3px dashed var(--color-pink);
}

.mini-stats h3 {
    text-align: center;
    color: var(--color-pink);
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 700;
}

.mini-stats-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.mini-stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mini-stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.mini-stat-emoji {
    font-size: 1.2em;
}

.mini-stat-name {
    flex: 1;
    color: #555;
    font-weight: 500;
}

.mini-stat-percent {
    color: var(--color-pink);
    font-weight: 700;
    min-width: 40px;
    text-align: right;
}

.mini-stat-bar-bg {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.mini-stat-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 2px;
}

.mini-stats-total {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 0.95em;
}

.mini-stats-total span:first-child {
    font-weight: 700;
    color: var(--color-pink);
    font-size: 1.3em;
}

/* 차원별 통계 (16 유형 시스템) */
.mini-stat-dimension {
    margin-bottom: 20px;
}

.dimension-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.dimension-bar-container {
    width: 100%;
}

.dimension-bar-dual {
    display: flex;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dimension-bar-left,
.dimension-bar-right {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 15%;
}

.dimension-label-text {
    color: white;
    font-size: 0.8em;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* TOP 3 인기 유형 */
.top-types-title {
    text-align: center;
    color: var(--color-pink);
    margin: 30px 0 15px;
    font-size: 1.1em;
    font-weight: 700;
}

.mini-stat-top-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.mini-stat-top-item:hover {
    transform: translateX(5px);
}

.top-item-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.top-item-medal {
    font-size: 1.3em;
}

.top-item-name {
    color: #555;
    font-weight: 500;
    font-size: 0.95em;
}

.top-item-percent {
    color: var(--color-pink);
    font-weight: 700;
    font-size: 1.1em;
}

@media (max-width: 480px) {
    .mini-stats {
        padding: 20px 15px;
    }

    .mini-stat-name {
        font-size: 0.85em;
    }

    .dimension-label-text {
        font-size: 0.7em;
    }

    .dimension-bar-left,
    .dimension-bar-right {
        min-width: 20%;
    }

    .top-item-name {
        font-size: 0.85em;
    }

    .top-item-medal {
        font-size: 1.1em;
    }
}

/* ========================================
   Product Recommendations (Coupang Partners)
   ======================================== */

.product-recommendations {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid #e1e8ed;
}

.product-recommendations h3 {
    text-align: center;
    color: var(--color-purple);
    margin-bottom: 10px;
    font-size: 1.3em;
}

.product-recommendations-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 25px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--color-pink);
}

.product-card-image {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-placeholder {
    font-size: 3em;
    opacity: 0.3;
}

.product-card-title {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 2.8em;
}

.product-card-description {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
    flex-grow: 1;
}

.product-card-price {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-pink);
    margin-bottom: 12px;
}

.product-card-button {
    background: linear-gradient(135deg, var(--color-pink), var(--color-pink-dark));
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.product-card-button:hover {
    background: linear-gradient(135deg, var(--color-pink-dark), var(--color-pink));
    transform: scale(1.02);
}

.affiliate-note {
    text-align: center;
    font-size: 0.75em;
    color: #999;
    margin-top: 15px;
    font-style: italic;
}

/* Result page product recommendations */
.result-products {
    margin: 30px 0 20px;
    padding: 25px;
    background: linear-gradient(135deg, #fef3f5 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid #ffe0e6;
}

.result-products h3 {
    text-align: center;
    color: var(--color-purple);
    margin-bottom: 20px;
    font-size: 1.2em;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-recommendations {
        padding: 20px 15px;
    }

    .result-products {
        padding: 20px 15px;
    }

    .product-card-image {
        height: 180px;
    }
}
