/**
 * KSP.CITY Cognitive Layer Styles (A-64)
 * 都市の思考断片 - 視覚表現
 */

.cognitive-reflection {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);

    /* Typography */
    color: rgba(240, 245, 255, 0.9);
    font-family: 'Shippori Mincho', 'Noto Serif JP', 'Yu Mincho', serif;
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    font-weight: 500;
    line-height: 1.9;
    letter-spacing: 0.12em;
    text-align: center;

    /* Glow Effect */
    text-shadow:
        0 0 10px rgba(0, 255, 255, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2),
        0 0 40px rgba(0, 180, 255, 0.1);

    /* Layout */
    max-width: 95%;
    width: auto;
    white-space: nowrap;
    padding: 1rem 2rem;

    /* Animation */
    opacity: 0;
    transition: opacity 4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Interaction */
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;

    /* Layering */
    z-index: 50;
}

.cognitive-reflection.visible {
    opacity: 1;
}

/* Blur background for better readability */
.cognitive-reflection::before {
    content: "";
    position: absolute;
    inset: -10px;
    background: radial-gradient(
        ellipse at center,
        rgba(10, 20, 35, 0.4) 0%,
        transparent 70%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    z-index: -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cognitive-reflection {
        bottom: 15%;
        font-size: clamp(1rem, 3.8vw, 1.3rem);
        max-width: 94%;
        padding: 0.75rem 1.5rem;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 480px) {
    .cognitive-reflection {
        bottom: 18%;
        font-size: clamp(0.95rem, 4.2vw, 1.2rem);
        max-width: 96%;
        padding: 0.5rem 1rem;
        line-height: 1.7;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cognitive-reflection {
        color: #ffffff;
        text-shadow:
            0 0 5px rgba(0, 255, 255, 0.5),
            0 0 10px rgba(0, 212, 255, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cognitive-reflection {
        transition: opacity 1s linear;
    }
}

/* Print styles */
@media print {
    .cognitive-reflection {
        display: none;
    }
}
