/* ========================================
   무진장 전문상담연구소 - 차량고사 기도문
   가운데 정렬 + 1장 업로드 AI 10방위 자동 생성
======================================== */

:root {
    --gold: #FFD700;
    --purple: #8B5CF6;
    --green: #22C55E;
    --orange: #FF8C42;
    --white: #FFFFFF;
    --black: #1F2937;
    --gray: #6B7280;
    --light-gray: #F3F4F6;
    --bg-dark: #111827;
    --text-dark: #E5E7EB;
}

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

body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    line-height: 1.7;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    color: var(--black);
    transition: all 0.3s ease;
}

body.dark-mode {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
    color: var(--text-dark);
}

/* ★ 가운데 정렬 컨테이너 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 햄버거 메뉴 */
.hamburger-menu {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    width: 40px;
    height: 40px;
    background: var(--purple);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.hamburger-menu span {
    width: 24px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

.off-canvas {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--purple) 0%, #7C3AED 100%);
    z-index: 9998;
    padding: 3rem 1.5rem;
    transition: right 0.4s ease;
}

.off-canvas.open {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.off-canvas ul {
    list-style: none;
    margin-top: 3rem;
}

.off-canvas ul li {
    margin-bottom: 1.5rem;
}

.off-canvas ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.off-canvas ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Hero 섹션 */
.hero {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, var(--purple) 0%, var(--green) 100%);
    color: var(--white);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

#themeToggle {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

/* ★ 생성 폼 섹션 */
.generator-section {
    padding: 3rem 0;
    text-align: center;
}

.generator-section h2 {
    color: var(--purple);
    font-size: 2rem;
    margin-bottom: 1rem;
}

body.dark-mode .generator-section h2 {
    color: var(--gold);
}

.generator-intro {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.prayer-form {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: left;
}

body.dark-mode .prayer-form {
    background: #1e293b;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--purple);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

body.dark-mode .form-section h3 {
    color: var(--gold);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--black);
}

body.dark-mode .form-group label {
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

body.dark-mode .form-group input {
    background: #0f172a;
    border-color: #334155;
    color: var(--text-dark);
}

.form-group input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* ★ 사진 업로드 UI (1장 업로드) */
.photo-guide {
    text-align: center;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.guide-detail {
    font-size: 0.9rem;
    color: var(--gray);
}

.single-photo-upload {
    max-width: 600px;
    margin: 0 auto;
}

.upload-label {
    display: block;
    cursor: pointer;
}

.upload-box {
    border: 3px dashed var(--purple);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: var(--green);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    transform: translateY(-4px);
}

.upload-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.upload-text {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--purple);
    margin-bottom: 0.5rem;
}

.upload-subtext {
    display: block;
    font-size: 1rem;
    color: var(--gray);
}

/* 원본 사진 미리보기 */
.original-preview {
    margin-top: 2rem;
    text-align: center;
}

.original-preview h4 {
    color: var(--purple);
    margin-bottom: 1rem;
}

.original-preview img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
}

.btn-remove {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* AI 로딩 */
.ai-loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid var(--light-gray);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.ai-loading p {
    color: var(--purple);
    font-weight: 600;
    font-size: 1.1rem;
}

/* 생성된 10방위 사진 그리드 */
.generated-photos {
    margin-top: 2rem;
}

.generated-photos h4 {
    color: var(--purple);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.direction-photo-card {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

body.dark-mode .direction-photo-card {
    background: #0f172a;
}

.direction-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.direction-photo-card h5 {
    color: var(--purple);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.direction-photo-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.direction-label {
    font-size: 0.9rem;
    color: var(--gray);
}

/* 생성 버튼 */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-generate {
    background: linear-gradient(135deg, var(--purple) 0%, var(--green) 100%);
    color: var(--white);
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.btn-generate:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

/* 생성된 기도문 */
.generated-prayer {
    padding: 3rem 0;
    text-align: center;
}

.generated-prayer h2 {
    color: var(--purple);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.prayer-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-action {
    background: linear-gradient(135deg, var(--purple) 0%, var(--green) 100%);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.prayer-content {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: left;
    line-height: 1.9;
}

body.dark-mode .prayer-content {
    background: #1e293b;
}

/* 기도문 원문 섹션 */
.prayer-original {
    padding: 3rem 0;
    background: var(--white);
    text-align: center;
}

body.dark-mode .prayer-original {
    background: #0f172a;
}

.prayer-original h2 {
    color: var(--purple);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.original-intro {
    color: var(--gray);
    margin-bottom: 1rem;
}

/* 기도문 원문 액션 버튼 */
.prayer-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.prayer-actions .btn-action {
    background: linear-gradient(135deg, var(--purple) 0%, var(--green) 100%);
    color: var(--white);
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prayer-actions .btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.prayer-actions .btn-action:active {
    transform: translateY(0);
}

/* ✨ v7.1 공유 버튼 특별 스타일 */
.btn-share {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFD93D 100%) !important;
    animation: pulse-share 2s ease-in-out infinite;
}

.btn-share:hover {
    background: linear-gradient(135deg, #FF5252 0%, #FFC107 100%) !important;
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.5) !important;
}

@keyframes pulse-share {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    }
}

@media (max-width: 480px) {
    .prayer-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .prayer-actions .btn-action {
        width: 100%;
    }
}

.original-content {
    text-align: left;
}

.prayer-block {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

body.dark-mode .prayer-block {
    background: #1e293b;
}

/* 다크모드에서 sutra-text 더 밝고 진하게 */
body.dark-mode .sutra-text {
    color: #A78BFA;  /* 다크모드용 밝은 보라 */
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.prayer-block h3 {
    color: var(--purple);
    text-align: center;
    margin-bottom: 1rem;
}

.prayer-block h4 {
    color: var(--green);
    margin: 1.5rem 0 1rem;
}

.sutra-text {
    color: #6B21A8;  /* 더 진한 보라색 (기존 #8B5CF6 → #6B21A8) */
    font-weight: 700;  /* 더 굵게 (기존 600 → 700) */
    margin: 0.5rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);  /* 텍스트 그림자 추가로 가독성 향상 */
}

.meaning {
    color: var(--green);
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

/* 챗봇 섹션 */
.chatbot-section {
    padding: 3rem 0;
    text-align: center;
}

.chatbot-section h2 {
    color: var(--purple);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.chatbot-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.chatbot-btn {
    background: linear-gradient(135deg, var(--purple) 0%, var(--green) 100%);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.chatbot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.chatbot-btn.active {
    background: linear-gradient(135deg, var(--green) 0%, var(--gold) 100%);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
    transform: scale(1.05);
}

.chatbot-response {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    min-height: 150px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

body.dark-mode .chatbot-response {
    background: #1e293b;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* 연락처 */
.contact-section {
    background: linear-gradient(135deg, var(--purple) 0%, #7C3AED 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--gold);
    text-decoration: none;
}

.copyright,
.license {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 구글 번역 */
#google_translate_element {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9997;
    background: var(--white);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 반응형 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chatbot-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .photos-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   NEW: 10방위 실제 관점 변환 스타일
======================================== */

/* AI 생성 중 로딩 (새로운 스타일) */
.generating-loader {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(255, 215, 0, 0.1));
    border-radius: 16px;
    margin-top: 2rem;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.generating-loader p {
    color: var(--purple);
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.loader-subtext {
    font-size: 0.9rem !important;
    color: var(--gray) !important;
    font-weight: 400 !important;
}

body.dark-mode .generating-loader {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(255, 215, 0, 0.15));
}

body.dark-mode .generating-loader p {
    color: var(--gold);
}

/* 10방위 생성 결과 */
.directional-views {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(255, 215, 0, 0.05));
    border-radius: 16px;
}

.directional-views h4 {
    color: var(--purple);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

body.dark-mode .directional-views {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(255, 215, 0, 0.1));
}

body.dark-mode .directional-views h4 {
    color: var(--gold);
}

/* 10방위 그리드 */
.views-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .views-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

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

/* 개별 방위 카드 */
.view-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
}

body.dark-mode .view-card {
    background: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.view-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.4);
}

.view-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.view-label {
    padding: 0.75rem 1rem;
    text-align: center;
}

.view-label strong {
    display: block;
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 0.25rem;
}

body.dark-mode .view-label strong {
    color: var(--text-dark);
}

.view-label span {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
}

body.dark-mode .view-label span {
    color: #94a3b8;
}

/* ========================================
   NEW: 10방위 직접 업로드 스타일
======================================== */

/* 10방위 업로드 그리드 */
.direction-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .direction-upload-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .direction-upload-grid {
        grid-template-columns: 1fr;
    }
}

/* 개별 방위 업로드 카드 */
.direction-upload-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

body.dark-mode .direction-upload-card {
    background: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.direction-upload-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* 방위 헤더 */
.direction-header {
    padding: 0.75rem;
    text-align: center;
    color: white;
    font-weight: 600;
}

.direction-name {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.direction-deity {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* 사진 업로드 박스 */
.photo-upload-box {
    display: block;
    width: 100%;
    height: 180px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: var(--light-gray);
}

body.dark-mode .photo-upload-box {
    background: #1e293b;
}

.photo-upload-box:hover .upload-placeholder {
    background: rgba(139, 92, 246, 0.1);
}

/* 업로드 플레이스홀더 */
.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.upload-placeholder .upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.upload-placeholder span:last-child {
    font-size: 0.85rem;
    color: var(--gray);
    text-align: center;
    padding: 0 0.5rem;
}

body.dark-mode .upload-placeholder span:last-child {
    color: #94a3b8;
}

/* 사진 미리보기 */
.photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 파일 입력 숨기기 */
.direction-photo-input {
    display: none;
}

/* 사진 삭제 버튼 */
.btn-remove-photo {
    position: absolute;
    top: 50px;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-remove-photo:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
}

/* 업로드 진행 상황 */
.upload-progress {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(34, 197, 94, 0.1));
    border-radius: 12px;
    text-align: center;
}

body.dark-mode .upload-progress {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(34, 197, 94, 0.15));
}

.upload-progress p {
    color: var(--purple);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

body.dark-mode .upload-progress p {
    color: var(--gold);
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple) 0%, var(--green) 100%);
    border-radius: 12px;
    transition: width 0.5s ease;
    width: 0%;
}

/* 기도문 내 사진 그리드 */
.prayer-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .prayer-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .prayer-photos-grid {
        grid-template-columns: 1fr;
    }
}

.prayer-photo-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
}

body.dark-mode .prayer-photo-card {
    background: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.prayer-photo-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.prayer-photo-label {
    padding: 0.5rem;
    text-align: center;
    color: white;
}

.prayer-photo-label strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.prayer-photo-label span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* ========================================
   NEW: 10방위 황금 법륜 로고 + 언어 선택기
======================================== */

/* Hero 로고 컨테이너 */
.hero-logo {
    margin-bottom: 2rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

/* 황금 법륜 회전 애니메이션 */
.dharma-wheel {
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

#dharmaWheelGroup {
    transform-origin: 50% 50%;
    transform-box: fill-box;
}

/* 로고 텍스트 */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.logo-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    opacity: 0.9;
}

body.dark-mode .logo-subtitle {
    color: var(--text-dark);
}

/* Hero 액션 버튼 영역 */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* 언어 선택기 */
.language-selector select {
    background: rgba(255, 255, 255, 0.9);
    color: var(--black);
    border: 2px solid var(--gold);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.language-selector select:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

body.dark-mode .language-selector select {
    background: rgba(31, 41, 55, 0.9);
    color: var(--text-dark);
    border-color: var(--gold);
}

body.dark-mode .language-selector select:hover {
    background: var(--gold);
    color: var(--black);
}

/* Google Translate 위젯 숨기기 */
#google_translate_element {
    display: none !important;
}

.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* 반응형: 모바일 */
@media (max-width: 768px) {
    .hero-logo .dharma-wheel {
        width: 50px;
        height: 50px;
    }
    
    .logo-title {
        font-size: 1.5rem;
    }
    
    .logo-subtitle {
        font-size: 0.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .language-selector select {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-logo .dharma-wheel {
        width: 45px;
        height: 45px;
    }
    
    .logo-title {
        font-size: 1.3rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }
}

