/* Critical above-fold styles for Soul Scrolls page */
/* Essential styles that must load immediately for initial render */

/* ===== INSCRIBE SCROLL BUTTON ===== */
.inscribe-scroll-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.inscribe-scroll-btn {
    background: linear-gradient(45deg, rgba(255, 94, 120, 0.2), rgba(255, 202, 40, 0.15));
    border: 2px solid rgba(255, 94, 120, 0.5);
    color: var(--text);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
}

.inscribe-scroll-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 94, 120, 0.3), transparent);
    transition: left 0.5s ease;
}

.inscribe-scroll-btn:hover::before {
    left: 100%;
}

.inscribe-scroll-btn:hover {
    background: linear-gradient(45deg, rgba(255, 94, 120, 0.3), rgba(255, 202, 40, 0.25));
    border-color: rgba(255, 94, 120, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 94, 120, 0.3);
}

.inscribe-scroll-btn i {
    font-size: 1.5rem;
    color: var(--accent);
}

.inscribe-scroll-btn small {
    font-size: 0.75rem;
    opacity: 0.8;
    font-style: italic;
}

/* ===== AUTHOR'S OTHER SCROLLS ===== */
.author-other-scrolls {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 94, 120, 0.3);
}

.author-other-scrolls h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    text-align: center;
}

.other-scrolls-list {
    display: grid;
    gap: 1rem;
}

.other-scroll-item {
    background: rgba(26, 26, 51, 0.6);
    border: 1px solid rgba(255, 94, 120, 0.2);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.other-scroll-item:hover {
    background: rgba(26, 26, 51, 0.8);
    border-color: rgba(255, 94, 120, 0.5);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.other-scroll-item h4 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.other-scroll-item .scroll-date {
    color: rgba(240, 230, 255, 0.6);
    font-size: 0.85rem;
}

.no-other-scrolls, .error-loading {
    text-align: center;
    color: rgba(240, 230, 255, 0.6);
    font-style: italic;
    padding: 1rem;
}

/* ===== CATEGORY BADGE ===== */
.category-badge {
    display: inline-block;
    background: rgba(255, 202, 40, 0.2);
    border: 1px solid rgba(255, 202, 40, 0.5);
    color: rgba(255, 202, 40, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-left: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Parchment Theme Variables */
:root {
    --parchment: #f9f6ef;
    --parchment-light: #fefcf7;
    --ink: #3a2e28;
    --ink-light: #5d4e43;
    --gold: #d4af37;
    --gold-light: #e6c96f;
    --gold-dark: #b8941f;
    --aged-border: #e0d6c3;
    --aged-border-dark: #d4c3a6;
    --shadow: rgba(58, 46, 40, 0.1);
    --shadow-heavy: rgba(58, 46, 40, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-quick: all 0.2s ease;
}

/* Blog-specific container */
.scroll-archive {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 200px);
}

/* ===== EPIC SOUL SCROLLS HEADER ===== */
.soul-scrolls-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0 4rem 0;
    position: relative;
    overflow: hidden;
    padding: 2rem 1rem;
}

.soul-scrolls-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, 
        rgba(255, 94, 120, 0.1) 0%,
        rgba(255, 202, 40, 0.05) 30%,
        transparent 70%);
    animation: headerGlow 4s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes headerGlow {
    0% { opacity: 0.3; transform: scale(0.95); }
    100% { opacity: 0.7; transform: scale(1.05); }
}

.header-ornament {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--accent);
    opacity: 0.8;
    animation: ornamentPulse 3s ease-in-out infinite;
}

.header-ornament-left {
    animation-delay: 0s;
}

.header-ornament-right {
    animation-delay: 1.5s;
}

@keyframes ornamentPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.infinity-symbol {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 94, 120, 0.5);
    animation: infinityRotate 8s linear infinite;
}

@keyframes infinityRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mystic-runes {
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
    color: rgba(255, 202, 40, 0.8);
    text-shadow: 0 0 8px rgba(255, 202, 40, 0.4);
}

.main-title-container {
    position: relative;
    text-align: center;
    z-index: 2;
}

.title-backdrop {
    position: absolute;
    top: -20px;
    left: -40px;
    right: -40px;
    bottom: -20px;
    background: linear-gradient(135deg,
        rgba(26, 26, 51, 0.3),
        rgba(42, 64, 102, 0.2),
        rgba(26, 26, 51, 0.3)
    );
    border-radius: 20px;
    border: 1px solid rgba(255, 94, 120, 0.2);
    backdrop-filter: blur(10px);
    z-index: -1;
    animation: backdropShimmer 6s ease-in-out infinite;
}

@keyframes backdropShimmer {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 94, 120, 0.1);
        border-color: rgba(255, 94, 120, 0.2);
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 94, 120, 0.3);
        border-color: rgba(255, 94, 120, 0.5);
    }
}

.soul-scrolls-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin: 0;
    position: relative;
    letter-spacing: 0.1em;
    line-height: 1.1;
}

.title-word {
    display: inline-block;
    margin: 0 0.2em;
    position: relative;
}

.title-word.soul {
    background: linear-gradient(45deg, 
        #ff5e78, 
        #ffca28, 
        #ff8f00, 
        #ff5722);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: soulGlow 3s ease-in-out infinite alternate;
}

.title-word.scrolls {
    background: linear-gradient(45deg, 
        #4fc3f7, 
        #29b6f6, 
        #03a9f4, 
        #0288d1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: scrollsGlow 3s ease-in-out infinite alternate;
    animation-delay: 1s;
}

@keyframes soulGlow {
    0% { 
        filter: drop-shadow(0 0 5px rgba(255, 94, 120, 0.5));
        transform: translateY(0px);
    }
    100% { 
        filter: drop-shadow(0 0 15px rgba(255, 94, 120, 0.8));
        transform: translateY(-2px);
    }
}

@keyframes scrollsGlow {
    0% { 
        filter: drop-shadow(0 0 5px rgba(79, 195, 247, 0.5));
        transform: translateY(0px);
    }
    100% { 
        filter: drop-shadow(0 0 15px rgba(79, 195, 247, 0.8));
        transform: translateY(-2px);
    }
}

.subtitle {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: rgba(240, 230, 255, 0.8);
    margin-top: 0.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(255, 94, 120, 0.3);
}

/* Responsive Header Styles */
@media (max-width: 768px) {
    .soul-scrolls-header {
        flex-direction: column;
        gap: 1.5rem;
        margin: 2rem 0 3rem 0;
        padding: 1.5rem 0.5rem;
    }
    
    .header-ornament {
        flex-direction: row;
        gap: 2rem;
    }
    
    .infinity-symbol {
        font-size: 2rem;
    }
    
    .mystic-runes {
        font-size: 1rem;
        letter-spacing: 0.3rem;
    }
    
    .soul-scrolls-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .title-backdrop {
        top: -15px;
        left: -20px;
        right: -20px;
        bottom: -15px;
    }
}

@media (max-width: 480px) {
    .soul-scrolls-header {
        margin: 1.5rem 0 2.5rem 0;
        padding: 1rem 0.5rem;
    }
    
    .header-ornament {
        gap: 1.5rem;
    }
    
    .infinity-symbol {
        font-size: 1.5rem;
    }
    
    .mystic-runes {
        font-size: 0.9rem;
        letter-spacing: 0.2rem;
    }
    
    .soul-scrolls-title {
        font-size: clamp(1.5rem, 10vw, 2.5rem);
    }
    
    .subtitle {
        font-size: clamp(0.8rem, 3vw, 1rem);
        letter-spacing: 0.1em;
    }
}

/* Enhanced Scroll Grid - Basic Layout */
.scroll-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0;
    align-items: start;
}

/* Essential responsive grid - first breakpoint only */
@media (min-width: 640px) {
    .scroll-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Enhanced Empty and Error Messages */
.empty-message, .error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.1));
    border: 2px solid var(--aged-border);
    border-radius: 16px;
    margin: 3rem 0;
    color: var(--ink-light);
    font-size: 1.1rem;
    line-height: 1.6;
    box-shadow: 0 4px 12px var(--shadow);
}

.empty-message::before {
    content: '📜';
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.1));
    border-left: 6px solid #ef4444;
    color: #dc2626;
}

.error-message::before {
    content: '⚠️';
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Basic loading styles for immediate display */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--ink-light);
    font-size: 1.1rem;
}

.loading i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

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