/* ============================================================
   ERA COMMON STYLES
   Shared styles for Era 1, Era 2, and Era 3
   ============================================================ */

/* 1. Custom Scrollbar (Global & Sectional) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}

/* 2. Global Resets & Layout Defaults */
html {
    scroll-behavior: smooth;
    width: 100%;
}

body {
    -webkit-tap-highlight-color: transparent;
}

/* 3. Typography & Responsive Font Sizes */
* {
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: anywhere;
}

@media (max-width: 639px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 1.6rem !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    .text-xl {
        font-size: 1.1rem !important;
    }

    .text-2xl {
        font-size: 1.3rem !important;
    }

    .text-3xl {
        font-size: 1.5rem !important;
    }

    .text-4xl {
        font-size: 1.7rem !important;
    }

    .text-6xl {
        font-size: 2.1rem !important;
    }

    .text-lg {
        font-size: 0.95rem !important;
    }
}

/* 4. Historical Content Decoration */
.historical-content p {
    margin-bottom: 1.5rem;
    line-height: 2;
}

.historical-dropcap::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 1;
    padding-right: 0.75rem;
    color: var(--color-primary);
    font-weight: 800;
}

.historical-border {
    border: 1px solid #d4b711;
    padding: 4px;
    background-color: white;
}

.grayscale-archive {
    filter: grayscale(100%) contrast(1.1);
}

/* 5. Utility Classes */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.justified-text {
    text-align: justify;
}

/* 6. Interactive Image Effects */
.interactive-image {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.interactive-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 20;
}