/* ============================================================================
   INTRODUCE.CSS - All styles for introduce.html
   Includes fixes for confetti visibility
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;500;600&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary-gold: #ffd700;
    --light-gold: #f8e49b;
    --warm-cream: #e5c98d;
    --bg-dark: #0d0d0d;
    --card-dark: #161616;
    --card-elevated: #1a1a1a;
    --border-gold: rgba(255, 215, 0, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --text-white: #ffffff;
    --text-muted: #888;
    --accent-green: #4ade80;
    --accent-blue: #60a5fa;
    --accent-purple: #a78bfa;
}

.judean-inline {
    font-family: 'Manakahthey' !important;
    direction: rtl;
    display: inline-block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--warm-cream);
    min-height: 100vh;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    border: none;
    color: var(--primary-gold);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--warm-cream);
}

.header-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.2s;
}

.header-tab.active {
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary-gold);
}

.audio-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--primary-gold);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.audio-toggle-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

.audio-toggle-btn.off {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    opacity: 0.6;
}

.progress-indicator {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 215, 0, 0.1);
    z-index: 99;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gold);
    transition: width 0.3s;
}

.card-container {
    position: fixed;
    top: 59px;
    left: 0;
    right: 0;
    bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.word-card {
    width: 100%;
    max-width: 480px;
    height: 100%;
    max-height: 700px;
    background: var(--card-dark);
    border-radius: 24px;
    border: 2px solid var(--border-gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    position: relative;
}

.card-audio-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--primary-gold);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.card-audio-btn:hover {
    background: rgba(255, 215, 0, 0.25);
    transform: scale(1.05);
}

.card-audio-btn.playing {
    background: var(--primary-gold);
    color: var(--bg-dark);
    animation: audio-pulse 1s ease-in-out infinite;
}

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

.word-hero {
    text-align: center;
    padding: 20px 0 30px;
}

.word-judean {
    font-family: 'Manakahthey';
    font-size: clamp(4rem, 20vw, 6rem);
    color: var(--primary-gold);
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 0 0 60px rgba(255, 215, 0, 0.3);
    direction: rtl;
}

.word-ipa {
    font-family: monospace;
    font-size: 1rem;
    color: #7dd3fc;
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.85;
}

.word-english {
    font-family: 'Manakahthey', 'Crimson Pro', Georgia, serif;
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: var(--text-white);
    font-weight: 500;
}

.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.stat-box {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.symbolic-section {
    margin: 20px 0;
    padding: 16px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
}

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

.symbolic-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.symbolic-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.symbolic-text {
    color: var(--text-white);
    line-height: 1.6;
}

.symbolic-text .judean-inline {
    color: var(--primary-gold);
    font-size: 1.1em;
}

.commentary-section {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.02));
    border: 1px solid var(--border-gold);
    border-radius: 12px;
}

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

.commentary-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.commentary-author {
    font-family: 'Manakahthey', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.commentary-role {
    font-family: 'Manakahthey', serif;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.commentary-text {
    font-family: 'Manakahthey', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-white);
}

.commentary-text .judean-inline {
    color: var(--primary-gold);
    font-size: 1.1em;
}

.meanings-section {
    margin: 20px 0;
}

.meanings-title {
    font-family: 'Manakahthey', serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.meaning-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.meaning-item:last-child {
    border-bottom: none;
}

.meaning-num {
    font-family: 'Manakahthey', serif;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary-gold);
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.meaning-text {
    font-family: 'Manakahthey', serif;
    color: var(--text-white);
    line-height: 1.4;
}

.usage-section {
    margin: 20px 0;
    padding: 12px;
    background: var(--card-elevated);
    border-radius: 10px;
}

.usage-label {
    font-family: 'Manakahthey', serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.usage-text {
    font-family: 'Manakahthey', serif;
    color: var(--warm-cream);
    line-height: 1.5;
    font-size: 0.95rem;
}

.word-image-container {
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    display: none;
}

.word-image-container.loaded {
    display: block;
}

.word-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
}

.word-video-container {
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    display: none;
}

.word-video-container.loaded {
    display: block;
}

.word-video {
    width: 100%;
    max-height: 300px;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    background: #000;
}

.audio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    color: var(--primary-gold);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin: 16px 0;
}

.audio-btn:hover {
    background: rgba(255, 215, 0, 0.2);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.nav-btn.secondary {
    background: var(--card-dark);
    border: 1px solid var(--border-subtle);
    color: var(--warm-cream);
}

.nav-btn.primary {
    background: linear-gradient(135deg, #ff6b4a 0%, #ff8566 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 107, 74, 0.3);
}

.nav-btn.primary:hover {
    background: linear-gradient(135deg, #ff8566 0%, #ff9980 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 74, 0.5);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.card-counter {
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 60px;
    text-align: center;
}

.review-container {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 20px;
}

.review-container.active {
    display: block;
}

.review-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    padding-bottom: 40px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding-bottom: 40px;
}

.rule-card {
    background: var(--card-dark);
    border: 2px solid rgba(167, 139, 250, 0.3);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.rule-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.rule-symbol {
    font-family: 'Manakahthey', serif;
    font-size: 2.5rem;
    color: var(--accent-purple);
    direction: rtl;
    margin-bottom: 10px;
}

.rule-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.rule-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.rule-example {
    font-family: 'Manakahthey', serif;
    font-size: 1.2rem;
    color: var(--primary-gold);
    direction: rtl;
    margin-bottom: 15px;
}

.rule-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.rule-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.rule-btn.review {
    background: rgba(167, 139, 250, 0.2);
    color: var(--accent-purple);
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.rule-btn.review:hover {
    background: rgba(167, 139, 250, 0.3);
}

.rule-btn.practice {
    background: var(--accent-purple);
    color: var(--bg-dark);
}

.rule-btn.practice:hover {
    transform: scale(1.02);
}

.no-rules {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-rules-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.review-word-card {
    background: var(--card-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.review-word-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
}

.review-word-card.mastered {
    border-color: var(--accent-green);
}

.review-word-card .card-audio-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 14px;
}

.review-word-text {
    font-family: 'Manakahthey', serif;
    font-size: 1.8rem;
    color: var(--primary-gold);
    direction: rtl;
    margin-bottom: 6px;
}

.review-word-def {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.review-word-status {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
}

.review-word-status.learning {
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary-gold);
}

.review-word-status.mastered {
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent-green);
}

.loading-state, .completion-state, .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    height: 100%;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.state-title {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.state-subtitle {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.completion-words {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.completion-word {
    font-family: 'Manakahthey', serif;
    font-size: 1.5rem;
    color: var(--primary-gold);
    padding: 8px 14px;
    background: var(--card-elevated);
    border-radius: 10px;
    border: 1px solid var(--border-gold);
    direction: rtl;
}

.state-btn {
    padding: 14px 32px;
    background: var(--primary-gold);
    border: none;
    border-radius: 12px;
    color: var(--bg-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

@media (min-width: 768px) {
    .word-card {
        max-width: 520px;
    }
    
    .review-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ============================================================================
   CONFETTI CANVAS - FIXED FOR VISIBILITY
   ============================================================================ */
#confettiCanvas, .confetti-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 100001 !important; /* Above stone celebration (1000) */
    display: block !important;
}

/* ============================================================================
   STONE CELEBRATION - FIXED FOR CONFETTI VISIBILITY
   ============================================================================ */
.stone-celebration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.95); /* Semi-transparent to show confetti */
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
}

.stone-celebration::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(90, 80, 60, 0.15) 0%, transparent 60%);
    transform: translateX(-50%);
    pointer-events: none;
}

.stone-tablet-container {
    max-width: 600px;
    width: 100%;
    position: relative;
    animation: riseUp 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

@keyframes riseUp {
    from {
        opacity: 0;
        transform: translateY(80px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stone-tablet {
    background: linear-gradient(135deg, #3a3630 0%, #2d2b26 50%, #3a3630 100%);
    padding: 50px 40px;
    position: relative;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), inset 0 1px 2px rgba(255, 255, 255, 0.03), inset 0 -1px 2px rgba(0, 0, 0, 0.5);
    clip-path: polygon(3% 0%, 97% 0%, 100% 3%, 100% 97%, 97% 100%, 3% 100%, 0% 97%, 0% 3%);
}

.stone-tablet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 30%), radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.15) 0%, transparent 30%), radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.01) 0%, transparent 20%);
    opacity: 0.6;
    pointer-events: none;
}

.stone-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #c4b8a0;
}

.stone-symbol {
    font-family: 'Manakahthey', serif;
    font-size: 64px;
    margin-bottom: 30px;
    opacity: 0;
    animation: symbolAppear 1s ease-out 0.5s forwards;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    direction: rtl;
    display: inline-block;
    color: #e8a5c0;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.8), 0 4px 12px rgba(232, 165, 192, 0.4);
}

@keyframes symbolAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    60% {
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        opacity: 0.9;
        transform: scale(1) translateY(0);
    }
}

.stone-inscription {
    margin-bottom: 40px;
}

.stone-title {
    font-family: 'Manakahthey', 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    color: #ffd700;
    margin-bottom: 15px;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8), 0 2px 8px rgba(255, 215, 0, 0.5);
    opacity: 0;
    animation: inscriptionCarve 1s ease-out 0.8s forwards;
}

@keyframes inscriptionCarve {
    from {
        opacity: 0;
        letter-spacing: 2px;
    }
    to {
        opacity: 1;
        letter-spacing: 6px;
    }
}

.stone-level-text {
    font-family: 'Manakahthey', serif;
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9a8f7a;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1.1s forwards;
}

.stone-number-display {
    margin: 40px 0;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1.3s forwards;
}

.stone-number {
    font-family: 'Manakahthey', serif;
    font-size: 120px;
    font-weight: 600;
    color: #e8dcc4;
    line-height: 1;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.stone-number::after {
    content: 'words';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-family: 'Manakahthey', serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #7a7060;
    text-shadow: none;
}

.stone-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, #5a5040, transparent);
    margin: 50px auto 40px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1.5s forwards;
}

.stone-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.stone-btn {
    font-family: 'Manakahthey', serif;
    padding: 16px 40px;
    border: none;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
    background: none;
    position: relative;
}

.stone-btn-primary {
    color: #e8dcc4;
    border: 2px solid #6a6050;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1.7s forwards;
}

.stone-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(106, 96, 80, 0.2);
    transition: width 0.4s ease;
    z-index: -1;
}

.stone-btn-primary:hover::before {
    width: 100%;
}

.stone-btn-primary:hover {
    border-color: #8a7a6a;
    color: #f4e8d0;
    box-shadow: 0 0 20px rgba(106, 96, 80, 0.3);
}

.stone-btn-secondary {
    color: #9a8f7a;
    border: 1px solid rgba(154, 143, 122, 0.3);
    font-size: 13px;
    padding: 14px 35px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1.9s forwards;
}

.stone-btn-secondary:hover {
    color: #c4b8a0;
    border-color: rgba(154, 143, 122, 0.6);
    background: rgba(154, 143, 122, 0.05);
}

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

@media (max-width: 768px) {
    .stone-tablet {
        padding: 40px 30px;
    }
    .stone-title {
        font-size: 28px;
        letter-spacing: 4px;
    }
    .stone-number {
        font-size: 100px;
    }
    .stone-symbol {
        font-size: 52px;
    }
}

.social-share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.social-share-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.social-share-modal h3 {
    color: #ffd700;
    font-size: 24px;
    margin-bottom: 10px;
    font-family: 'Cormorant Garamond', serif;
}

.social-share-modal p {
    color: #9a8f7a;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.social-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.social-close-btn:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-icon.facebook {
    background: linear-gradient(135deg, #4267B2 0%, #3b5998 100%);
}

.social-icon.twitter {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

.social-icon.instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.tiktok {
    background: linear-gradient(135deg, #000 0%, #25F4EE 50%, #FE2C55 100%);
}

.social-icon.linkedin {
    background: linear-gradient(135deg, #0077B5 0%, #005582 100%);
}

.social-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.social-tip {
    color: #7a7060 !important;
    font-size: 12px !important;
    margin-top: 15px;
    margin-bottom: 0 !important;
}

/* ============================================================================
   LEARN MORE SECTION - Links to Lexical and MorfConcordance
   ============================================================================ */

.learn-more-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(20, 184, 166, 0.08) 100%);
    border-radius: 16px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.1);
}

.learn-more-title {
    font-family: 'Manakahthey', serif;
    font-size: 18px;
    font-weight: 700;
    color: #06b6d4;
    margin-bottom: 18px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
}

.learn-more-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.learn-more-link {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.learn-more-link:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.learn-more-link:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .learn-more-link {
        flex: 1 1 100%;
    }
}
