/* Scrap Arcana Custom Styles */

@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&family=Patrick+Hand&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --paper-color: #fdfbf7;
    --paper-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --accent-gold: #d4af37;
    --accent-lavender: #e6e6fa;
    --text-ink: #2c3e50;
}

body {
    background-color: #f0f4f8;
    background-image: 
        radial-gradient(#e2e8f0 1px, transparent 1px),
        radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    color: var(--text-ink);
    font-family: 'Patrick Hand', cursive; /* Default handwriting style */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif; /* Mystical headers */
}

/* The Desk / Main Container */
.scrapbook-desk {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* The Journal Page Container */
.journal-page {
    background-color: var(--paper-color);
    width: 100%;
    max-width: 1000px;
    min-height: 85vh;
    box-shadow: 
        1px 1px 0 rgba(0,0,0,0.1),
        3px 3px 0 rgba(0,0,0,0.1),
        5px 5px 0 rgba(0,0,0,0.1),
        10px 10px 20px rgba(0,0,0,0.15);
    padding: 3rem;
    position: relative;
    transform: rotate(-0.5deg);
    transition: transform 0.3s ease;
}

/* Paper Texture Overlay */
.journal-page::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("https://www.transparenttextures.com/patterns/cream-paper.png");
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

/* Content wrapper to sit above texture */
.page-content {
    position: relative;
    z-index: 1;
}

/* Sidebar Navigation (Binder Tabs) */
.binder-tabs {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 50;
    padding-right: 10px;
}

.binder-tab {
    padding: 12px 25px 12px 15px;
    background: white;
    font-family: 'Indie Flower', cursive;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-ink);
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    border-left: 4px solid transparent;
}

.binder-tab:hover {
    transform: translateX(-5px);
}

.binder-tab.active {
    transform: translateX(-10px);
    background: var(--paper-color);
    border-left: 4px solid var(--accent-gold);
}

/* Washi Tape Effect */
.washi-tape {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(255, 200, 200, 0.5);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transform: rotate(-2deg);
    margin-bottom: 1rem;
    position: relative;
}

.washi-tape::after {
    content: '';
    position: absolute;
    left: -5px; right: -5px; top: 0; bottom: 0;
    background: rgba(255,255,255,0.2);
    z-index: -1;
    transform: rotate(1deg);
}

.washi-top-center {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(1deg);
    width: 120px;
    height: 30px;
    background-color: rgba(220, 220, 255, 0.6);
    opacity: 0.8;
    z-index: 10;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1; 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; 
}

/* Tool Cards */
.tool-card {
    background: white;
    border: 1px solid #eee;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-3px) rotate(1deg);
    box-shadow: 4px 4px 12px rgba(0,0,0,0.1);
}

.sticker {
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.1));
}
