/* The Daily Prophet - Newspaper Theme */

:root {
    --paper: #E8DCC8;
    --paper-dark: #D4C4A8;
    --ink: #1A1614;
    --ink-faded: #5A5044;
    --accent: #8B0000;
    --gold: #B8860B;
    --border-color: #E5E2DC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', Georgia, serif;
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.02em;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Paper Texture Background */
.paper-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.08;
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 69, 19, 0.03) 2px,
            rgba(139, 69, 19, 0.03) 4px
        );
}

/* Newspaper Container */
.newspaper-container {
    max-width: 1100px;
    margin: 40px auto;
    background: var(--paper);
    border: 3px double var(--ink);
    padding: 30px;
    box-shadow: 
        0 0 0 1px var(--paper-dark),
        0 0 0 4px var(--paper),
        0 0 0 5px var(--ink-faded),
        0 10px 40px rgba(0,0,0,0.3);
    position: relative;
}

.newspaper-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 69, 19, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

/* Magic Cursor */
.magic-wand {
    position: fixed;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.magic-wand svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}

/* Sparkle Particles */
.sparkle-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    font-size: 14px;
    animation: sparkle-fade 1s ease-out forwards;
}

@keyframes sparkle-fade {
    0% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2) rotate(180deg); opacity: 0.8; }
    100% { transform: translate(-50%, -150%) scale(0.5) rotate(360deg); opacity: 0; }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .newspaper-container {
        margin: 20px auto;
        padding: 20px;
    }
    
    .magic-wand {
        display: none;
    }
    
    body {
        cursor: auto;
    }
}
