/* Explain: Styles CSS for various components, including badges, cards, input fields, and modals, with a glass effect applied to modals and input fields. */
.atlas-shell {
    border: 1px solid var(--border-color);
    background: rgba(17, 17, 17, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
}

.atlas-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: #000000;
    font-weight: 800;
    padding: 0.85rem 1.2rem;
    white-space: nowrap;
    box-shadow: 0 14px 28px rgba(255, 215, 0, 0.15);
}

.atlas-button:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
}

.atlas-button-secondary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(17, 17, 17, 0.8);
    color: var(--primary-color);
    font-weight: 800;
    padding: 0.85rem 1.2rem;
    white-space: nowrap;
}

.atlas-button-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.destination-card {
    overflow: hidden;
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    box-shadow: var(--shadow-card);
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 54px rgba(255, 215, 0, 0.08);
}

.category-pill {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(17, 17, 17, 0.72);
    color: var(--primary-color);
    font-weight: 800;
    padding: 0.75rem 1rem;
}

.category-pill:hover {
    border-color: var(--accent-color);
    background: var(--surface-color);
    color: var(--accent-color);
}

.category-filter-btn.is-active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #000000;
}

.category-filter-btn.is-active:hover {
    background: var(--primary-hover);
    color: #000000;
}

.layered-frame {
    position: relative;
    isolation: isolate;
}

.layered-frame::before,
.layered-frame::after {
    content: '';
    position: absolute;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    inset: 16px -16px -16px 16px;
    z-index: -1;
}

.layered-frame::after {
    border-color: rgba(255, 215, 0, 0.35);
    inset: -14px 18px 18px -14px;
}

.map-card {
    border: 1px solid rgba(47, 111, 94, 0.18);
    border-radius: var(--radius-medium);
    background:
        linear-gradient(135deg, rgba(234, 215, 183, 0.72), rgba(255, 255, 255, 0.84)),
        repeating-linear-gradient(45deg, rgba(15, 61, 74, 0.08) 0 1px, transparent 1px 18px);
    box-shadow: var(--shadow-card);
}

.tip-box {
    border-left: 5px solid var(--accent-color);
    border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
    background: rgba(234, 215, 183, 0.38);
}

.article-prose p {
    margin-top: 1.15rem;
    color: #243F46;
    font-size: 1.075rem;
}

.article-prose h2 {
    margin-top: 2.4rem;
    color: var(--primary-color);
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.02;
}

.form-input {
    min-height: 48px;
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    padding: 0.85rem 1rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
    outline: none;
}

.book-3d-container {
    width: 160px;
    height: 240px;
    perspective: 1000px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .book-3d-container {
        width: 200px;
        height: 300px;
    }
}
.book-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: rotateY(-15deg);
    cursor: pointer;
}
.book-3d:hover {
    transform: rotateY(-30deg) scale(1.03);
}
.book-front {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: left;
    border-radius: 2px 10px 10px 2px;
    box-shadow: inset 4px 0 10px rgba(0,0,0,0.4), 8px 8px 20px rgba(0,0,0,0.5);
    background-color: #111;
    overflow: hidden;
    border: 1px solid rgba(255,215,0,0.2);
    z-index: 2;
}
.book-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.book-spine {
    position: absolute;
    width: 30px;
    height: 100%;
    left: -30px;
    top: 0;
    background: linear-gradient(90deg, #111, #222, #000);
    transform-origin: right;
    transform: rotateY(90deg);
    border: 1px solid rgba(255,215,0,0.2);
    border-right: none;
    border-radius: 4px 0 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset -2px 0 5px rgba(0,0,0,0.5);
}
.book-spine span {
    color: var(--primary-color);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.65rem;
    transform: rotate(-90deg);
    white-space: nowrap;
    width: 200px;
    text-align: center;
    letter-spacing: 2px;
    opacity: 0.8;
}
.book-pages {
    position: absolute;
    width: 100%;
    height: 98%;
    top: 1%;
    left: 2px;
    background: #f5f5f5;
    border-radius: 0 8px 8px 0;
    transform: translateZ(-15px);
    background-image: repeating-linear-gradient(90deg, #e5e5e5 0px, #e5e5e5 1px, #f5f5f5 1px, #f5f5f5 2px);
    z-index: 1;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

@keyframes creatorShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

[contenteditable]:empty::before {
    content: attr(placeholder);
    color: #666666;
    pointer-events: none;
    display: block;
}

.creator-text-gradient {
    background: linear-gradient(to right, #FFD700, #CD7F32, #FFF8DC, #FFD700);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: creatorShimmer 3s linear infinite;
    display: inline-block;
}

.cero-step {
    width: 32%;
    max-width: 220px;
    position: relative;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 1rem;
    transition: all 0.5s ease;
}
@media (min-width: 640px) {
    .cero-step {
        padding-top: 1.5rem;
    }
}
.cero-step-1 { height: 100%; background: linear-gradient(180deg, rgba(255,215,0,0.2) 0%, rgba(255,215,0,0.02) 100%); border: 1px solid rgba(255,215,0,0.4); border-bottom: none; }
.cero-step-2 { height: 75%; background: linear-gradient(180deg, rgba(192,192,192,0.2) 0%, rgba(192,192,192,0.02) 100%); border: 1px solid rgba(192,192,192,0.4); border-bottom: none; }
.cero-step-3 { height: 55%; background: linear-gradient(180deg, rgba(205,127,50,0.2) 0%, rgba(205,127,50,0.02) 100%); border: 1px solid rgba(205,127,50,0.4); border-bottom: none; }

.cero-glass-comment {
    position: absolute;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.85rem;
    border-radius: 16px;
    color: rgba(255,255,255,0.9);
    width: 220px;
    pointer-events: none;
    animation: float-glass 6s ease-in-out infinite;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
@keyframes float-glass {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes confetti-fall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
.cero-confetti {
    position: absolute;
    width: 8px;
    height: 16px;
    background: #FFD700;
    opacity: 0.8;
    animation: confetti-fall linear infinite;
    z-index: 0;
    border-radius: 2px;
}
.ceremony-top-user {
    animation: creatorShimmer 4s linear infinite;
    background-size: 200% auto;
}

@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes counter-spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}
.animate-spin-slow {
    animation: spin-slow 45s linear infinite;
}
.animate-counter-spin-slow {
    animation: counter-spin-slow 45s linear infinite;
}
