/* WIP Page Specific Styles */

/* CSS Variables for Scrapbook Theme */
:root {
    --retro-pink: #D95B84;
    --retro-teal: #008080;
    --retro-beige: #FDF4E3;
    --retro-gold: #F4A22B;
    --retro-orange: #DD6031;
    --paper-texture-url: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
}

/* Base style for nav links */
.nav-link {
    transition: all 0.3s ease;
    text-shadow: 1px 1px var(--retro-orange);
    letter-spacing: 1px;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--retro-teal); /* Sets the default dark teal color */
}

/* General hover effect: scales up, text becomes white */
.nav-link:hover, .nav-link.active {
    transform: scale(1.1); /* Pop effect */
    color: white; /* White text for contrast */
    text-shadow: none; /* Remove shadow on hover for cleaner look */
}

/* Individual hover background colors */
.hover-bg-pink:hover, .nav-link.active.hover-bg-pink { background-color: var(--retro-pink); }
.hover-bg-teal:hover, .nav-link.active.hover-bg-teal { background-color: var(--retro-teal); }
.hover-bg-gold:hover, .nav-link.active.hover-bg-gold { background-color: var(--retro-gold); }
.hover-bg-orange:hover, .nav-link.active.hover-bg-orange { background-color: var(--retro-orange); }

/* Body styling for scrapbook theme */
body {
    background-color: var(--retro-beige);
    background-image: var(--paper-texture-url);
    font-family: 'Inter', sans-serif;
    color: #333;
}

.font-lobster {
    font-family: 'Lobster', cursive;
}

.font-knewave {
    font-family: 'Knewave', system-ui;
}

/* The main clickable container */
.scrapbook-entry {
    display: block; /* Make the <a> tag behave like a div */
    background-color: transparent; /* Transparent background to show paper texture */
    padding: 2rem; /* Padding inside the container */
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Softer shadow */
}

/* Only apply hover effect to entries that are actual links */
a.scrapbook-entry:hover {
    transform: scale(1.02) rotate(-1deg); /* Added slight rotation on hover */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

a.scrapbook-entry:hover .photo-stack {
    transform: rotate(-1deg);
}

/* The photo stack effect */
.photo-stack {
    position: relative;
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

/* The paper behind the photo */
.photo-stack::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #f7f7f7;
    border-radius: 4px;
    transform: rotate(2deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* The polaroid containing the image */
.polaroid {
    position: relative;
    background: transparent;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 2px;
}

/* The tape effect */
.polaroid::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 25px;
    background-color: rgba(244, 162, 43, 0.5); /* Semi-transparent gold */
    box-shadow: 0 1px 1px rgba(0,0,0,0.2);
    border-left: 1px dashed rgba(0,0,0,0.1);
    border-right: 1px dashed rgba(0,0,0,0.1);
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(4deg);
}

/* Title style from your screenshot */
.retro-title {
    text-shadow: 3px 3px var(--retro-orange);
}

/* Legacy Polaroid Container Styles (for backwards compatibility) */
.polaroid-container {
    max-width: 400px;
    margin: 2rem auto;
}

.polaroid-container:hover {
    transform: rotate(0deg) scale(1.05);
}

/* Polaroid shadow effect */
.polaroid-container > div {
    background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 3px;
    position: relative;
}

.polaroid-container > div::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(145deg, #e0e0e0, #ffffff);
    border-radius: 3px;
    z-index: -1;
    opacity: 0.5;
}

/* Text color overrides for better readability - Updated to match site standard */
h1, h2, h3, h4, h5, h6 {
    color: #333 !important;
    text-shadow: 2px 2px 0px var(--retro-gold, #F4A22B);
}

p {
    color: #333 !important;
}

/* Override Tailwind gray text classes */
.text-gray-600,
.text-gray-700 {
    color: #333 !important;
}

/* Loading Screen Styles */
#loadingScreen {
    background: linear-gradient(135deg, #FDF4E3 0%, #F5F5DC 50%, #FFFFFF 100%);
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-sticker {
    background: linear-gradient(135deg, #FDF4E3 0%, #F5F5DC 100%);
    border: 3px solid #DD6031;
    border-radius: 25px;
    box-shadow: 
        0 8px 32px rgba(221, 96, 49, 0.3),
        inset 0 2px 8px rgba(255, 255, 255, 0.5);
    transform: rotate(-2deg);
    position: relative;
    max-width: 600px;
}

.loading-sticker::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: rgba(255, 223, 0, 0.8);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 200, 0, 0.6);
}

/* Blog Content Styles */
#blogContent {
    min-height: 100vh;
}

.blog-post {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #D95B84, #008080, #DD6031) border-box;
    position: relative;
}

.blog-post:hover {
    transform: scale(1.02) rotate(0.5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-post::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: #F4A22B;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.blog-post:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

/* Blog header gradient text effect */
.text-shadow-dark {
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

/* Blog post icons */
.blog-post .w-12 {
    background: linear-gradient(135deg, var(--bg-color-1, #D95B84), var(--bg-color-2, #F4A22B));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Tag styling */
.blog-post span {
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-post span:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* WIP Sticker styling (for backwards compatibility) */
.wip-sticker {
    background: linear-gradient(135deg, #FDF4E3 0%, #F5F5DC 100%);
    border: 3px solid #DD6031;
    border-radius: 25px;
    box-shadow: 
        0 8px 32px rgba(221, 96, 49, 0.3),
        inset 0 2px 8px rgba(255, 255, 255, 0.5);
    transform: rotate(-2deg);
    position: relative;
    max-width: 800px;
}

.wip-sticker::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: rgba(255, 223, 0, 0.8);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 200, 0, 0.6);
}

/* Loading dots animation */
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #D95B84;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot-1 {
    background: #D95B84;
    animation-delay: -0.32s;
}

.dot-2 {
    background: #008080;
    animation-delay: -0.16s;
}

.dot-3 {
    background: #DD6031;
    animation-delay: 0s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Progress bar styling */
.progress-container {
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #FDF4E3;
    border: 3px solid #008080;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #D95B84 0%, #DD6031 50%, #F4A22B 100%);
    border-radius: 12px;
    transition: width 0.3s ease;
    width: 0%;
    animation: progressPulse 2s infinite;
    box-shadow: 
        0 0 10px rgba(217, 91, 132, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

@keyframes progressPulse {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(217, 91, 132, 0.5),
            inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(217, 91, 132, 0.8),
            inset 0 2px 4px rgba(255, 255, 255, 0.5);
    }
}

.progress-text {
    font-size: 1.5rem;
    color: #DD6031;
    text-shadow: 2px 2px 0px #FDF4E3;
}

/* Fun fact card */
.fun-fact-card {
    background: linear-gradient(135deg, rgba(253, 244, 227, 0.9) 0%, rgba(245, 245, 220, 0.9) 100%);
    border: 2px solid #008080;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0, 128, 128, 0.2);
    backdrop-filter: blur(10px);
    transform: rotate(1deg);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.fun-fact-card::before {
    content: '🍄';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 2rem;
    background: #F4A22B;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(244, 162, 43, 0.4);
}

/* Secondary button styling */
.funky-btn-secondary {
    background: linear-gradient(135deg, #008080 0%, #20B2AA 100%);
    border: 3px solid #006666;
    color: white;
}

.funky-btn-secondary:hover {
    background: linear-gradient(135deg, #20B2AA 0%, #008080 100%);
    transform: rotate(-2deg) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.4);
}

/* Active nav link styling - Updated to use retro gold for WIP navigation */
.nav-link.active {
    background: var(--retro-gold, #F4A22B);
    color: white !important;
    border-radius: 15px;
    padding: 8px 16px;
    box-shadow: 0 4px 15px rgba(244, 162, 43, 0.3);
    transform: rotate(-1deg);
}

/* Responsive adjustments for blog layout */
@media (max-width: 768px) {
    .loading-sticker {
        padding: 2rem 1.5rem;
        transform: rotate(-1deg);
        max-width: 90vw;
    }
    
    .blog-post {
        margin-left: 1rem;
        margin-right: 1rem;
        border-radius: 20px;
    }
    
    .blog-post .p-8 {
        padding: 1.5rem;
    }
    
    .blog-post h2 {
        font-size: 1.875rem; /* text-3xl -> smaller */
        line-height: 1.2;
    }
    
    .floating-svg-2 {
        display: none; /* Hide decorative mushroom on mobile */
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
    
    .progress-bar {
        height: 16px;
    }
    
    .fun-fact-card {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .funky-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Additional blog-specific responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .blog-post .flex.items-center {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .blog-post .w-12.h-12 {
        width: 3rem;
        height: 3rem;
        margin-right: 0;
    }
}

/* Additional mushroom animations for WIP page */
.floating-svg {
    animation-duration: 8s;
}

.floating-svg-1 {
    animation-delay: 0s;
}

.floating-svg-3 {
    animation-delay: 2s;
}

/* Hover effects for interactive elements */
.fun-fact-card:hover {
    transform: rotate(0deg) scale(1.02);
    transition: all 0.3s ease;
}

.loading-dots:hover .dot {
    animation-duration: 0.8s;
}

/* Text selection styling */
::selection {
    background: rgba(217, 91, 132, 0.3);
    color: inherit;
}

::-moz-selection {
    background: rgba(217, 91, 132, 0.3);
    color: inherit;
}
