/* ========================================
   MOONPRISM MAGAZINE THEME STYLES
   Based on sample layouts
======================================== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Sacramento&family=Montserrat:wght@300;400;600&display=swap');

:root {
    --mp-pink: #ff69b4;
    --mp-soft-pink: #ffb6c1;
    --mp-cream: #faf8f5;
    --mp-white: #ffffff;
    --mp-text: #333333;
    --mp-script: 'Sacramento', cursive;
    --mp-serif: 'Playfair Display', Georgia, serif;
    --mp-sans: 'Montserrat', sans-serif;
}

/* ========== MAGAZINE CONTAINER ========== */
.mp-magazine {
    width: 100%;
    background: var(--mp-cream);
    min-height: 100vh;
}

/* ========== COVER SECTION ========== */
.mp-cover {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e9 50%, #fff0f5 100%);
    overflow: hidden;
}

.mp-cover .cover-bg {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="20" y="50" font-size="30" opacity="0.05">❀</text></svg>') repeat;
    background-size: 80px;
}

.mp-cover .cover-content {
    text-align: center;
    z-index: 2;
    padding: 40px;
}

.mp-cover .cover-logo {
    font-family: var(--mp-serif);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 400;
    color: var(--mp-pink);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    text-shadow: 3px 3px 0 rgba(255,255,255,0.8);
}

.mp-cover .cover-tagline {
    font-family: var(--mp-script);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--mp-text);
    margin: 20px 0;
}

.mp-cover .cover-date {
    font-family: var(--mp-sans);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mp-pink);
    margin-top: 30px;
}

.mp-cover .cover-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mp-cover .deco {
    position: absolute;
    font-size: 2rem;
    color: var(--mp-soft-pink);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.mp-cover .deco-1 { top: 15%; left: 10%; animation-delay: 0s; }
.mp-cover .deco-2 { top: 25%; right: 15%; animation-delay: 2s; }
.mp-cover .deco-3 { bottom: 20%; left: 20%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ========== POSTS SECTION ========== */
.mp-posts-section {
    padding: 80px 20px;
    background: var(--mp-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--mp-script);
    font-size: 3rem;
    color: var(--mp-pink);
    margin: 0;
}

.title-decoration {
    color: var(--mp-soft-pink);
    font-size: 1.2rem;
    margin-top: 10px;
    letter-spacing: 0.5em;
}

/* ========== POLAROID GRID ========== */
.polaroid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.polaroid-card {
    background: var(--mp-white);
    padding: 15px 15px 60px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.polaroid-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 15px 40px rgba(255,105,180,0.2);
    z-index: 10;
}

.polaroid-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.polaroid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tape removed per user request */
.polaroid-image .tape {
    display: none;
}

.polaroid-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff5f5, #ffe4e9);
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.polaroid-caption {
    padding-top: 15px;
    text-align: center;
}

.polaroid-caption .post-title {
    font-family: var(--mp-script);
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.3;
}

.polaroid-caption .post-title a {
    color: var(--mp-text);
    text-decoration: none;
}

.polaroid-caption .post-title a:hover {
    color: var(--mp-pink);
}

.polaroid-caption .post-date {
    font-family: var(--mp-sans);
    font-size: 0.75rem;
    color: var(--mp-soft-pink);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-top: 8px;
}

/* ========== PAGINATION ========== */
.mp-pagination {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
}

.mp-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.mp-pagination a,
.mp-pagination span {
    font-family: var(--mp-sans);
    font-size: 0.9rem;
    padding: 10px 20px;
    background: var(--mp-white);
    border: 2px solid var(--mp-soft-pink);
    color: var(--mp-text);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.mp-pagination a:hover,
.mp-pagination .current {
    background: var(--mp-pink);
    border-color: var(--mp-pink);
    color: white;
}

/* ========== WELCOME SECTION ========== */
.mp-welcome {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mp-white);
    padding: 60px 20px;
}

.welcome-content {
    text-align: center;
}

.welcome-content h2 {
    font-family: var(--mp-script);
    font-size: 3rem;
    color: var(--mp-pink);
    margin: 0 0 20px;
}

.welcome-content p {
    font-family: var(--mp-sans);
    color: var(--mp-text);
    margin-bottom: 30px;
}

.btn-cute {
    display: inline-block;
    font-family: var(--mp-sans);
    font-size: 0.9rem;
    padding: 15px 30px;
    background: var(--mp-pink);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-cute:hover {
    background: #ff1493;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,105,180,0.3);
}

/* ========== EDITORIAL HEADER (Single Post) ========== */
.mp-editorial-header {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    background: var(--mp-cream);
    overflow: hidden;
}

.mp-editorial-header .header-image {
    position: absolute;
    inset: 0;
}

.mp-editorial-header .header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-editorial-header .header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
}

.mp-editorial-header .header-content {
    position: relative;
    z-index: 2;
    padding: 60px;
    max-width: 800px;
}

.mp-editorial-header .category-badge {
    font-family: var(--mp-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--mp-pink);
    margin-bottom: 20px;
}

.mp-editorial-header .category-badge a {
    color: inherit;
    text-decoration: none;
}

.mp-editorial-header .article-title {
    font-family: var(--mp-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--mp-text);
    margin: 0;
    line-height: 1.2;
}

.mp-editorial-header .article-meta {
    font-family: var(--mp-sans);
    font-size: 0.9rem;
    color: #666;
    margin-top: 25px;
}

.mp-editorial-header .article-meta .author {
    font-style: italic;
}

.mp-editorial-header .article-meta .date::before {
    content: '•';
    margin: 0 15px;
    color: var(--mp-soft-pink);
}

/* ========== ARTICLE CONTENT ========== */
.mp-article {
    position: relative;
    padding: 80px 20px;
    background: var(--mp-white);
}

.mp-article .article-wrapper {
    max-width: 750px;
    margin: 0 auto;
}

.mp-article .article-content {
    font-family: var(--mp-serif);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--mp-text);
}

/* Drop Cap First Paragraph */
.mp-article .article-content.drop-cap-first > p:first-of-type::first-letter {
    font-size: 5rem;
    float: left;
    line-height: 0.8;
    margin-right: 15px;
    margin-top: 8px;
    color: var(--mp-pink);
    font-family: var(--mp-serif);
    font-weight: 400;
}

.mp-article .article-content p {
    margin-bottom: 1.5em;
}

.mp-article .article-content h2,
.mp-article .article-content h3,
.mp-article .article-content h4 {
    font-family: var(--mp-serif);
    margin: 2em 0 1em;
    color: var(--mp-text);
}

.mp-article .article-content img {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
}

.mp-article .article-content blockquote {
    border-left: 4px solid var(--mp-pink);
    padding-left: 30px;
    margin: 2em 0;
    font-style: italic;
    color: #666;
}

.mp-article .article-content a {
    color: var(--mp-pink);
    text-decoration: underline;
}

/* Tags */
.mp-article .article-tags {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--mp-soft-pink);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mp-article .tag-sticker {
    display: inline-block;
    font-family: var(--mp-sans);
    font-size: 0.8rem;
    padding: 8px 18px;
    background: var(--mp-soft-pink);
    color: #880E4F;
    border-radius: 20px;
    text-decoration: none;
}

.mp-article .tag-sticker a {
    color: inherit;
    text-decoration: none;
}

/* Article Decorations */
.mp-article .article-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.mp-article .flower-deco {
    position: absolute;
    font-size: 3rem;
    color: var(--mp-soft-pink);
    opacity: 0.3;
}

.mp-article .flower-deco.top {
    top: 40px;
    right: 10%;
}

.mp-article .flower-deco.bottom {
    bottom: 40px;
    left: 10%;
}

/* ========== POST NAVIGATION ========== */
.mp-post-nav {
    padding: 80px 20px;
    background: linear-gradient(135deg, #fff5f5, #ffe4e9);
}

.mp-post-nav .nav-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.mp-post-nav .nav-card {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    text-decoration: none;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.mp-post-nav .nav-card:hover {
    transform: translateY(-10px);
}

.mp-post-nav .nav-card.next {
    margin-left: auto;
}

.mp-post-nav .nav-label {
    display: block;
    font-family: var(--mp-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--mp-pink);
    margin-bottom: 15px;
}

.mp-post-nav .nav-polaroid {
    background: white;
    padding: 10px 10px 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    display: inline-block;
}

.mp-post-nav .nav-polaroid img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.mp-post-nav .nav-placeholder {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-size: 2rem;
}

.mp-post-nav .nav-title {
    display: block;
    font-family: var(--mp-script);
    font-size: 1.3rem;
    color: var(--mp-text);
    margin-top: 15px;
}

/* ========== PAGE HEADER ========== */
.mp-page-header {
    position: relative;
    padding: 120px 20px 60px;
    text-align: center;
    background: var(--mp-white);
}

.mp-page-header .header-tape {
    position: absolute;
    width: 100px;
    height: 30px;
    background: rgba(255,182,193,0.6);
    top: 80px;
}

.mp-page-header .tape-left {
    left: 20%;
    transform: rotate(-5deg);
}

.mp-page-header .tape-right {
    right: 20%;
    transform: rotate(5deg);
}

.mp-page-header .page-title {
    font-family: var(--mp-script);
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--mp-pink);
    margin: 0;
}

.mp-page-header .title-underline {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--mp-soft-pink), var(--mp-pink));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ========== PAGE CONTENT ========== */
.mp-page-content {
    position: relative;
    padding: 60px 20px 100px;
    background: var(--mp-cream);
    overflow: hidden;
}

.mp-page-content .content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.mp-page-content .featured-polaroid {
    position: relative;
    display: inline-block;
    background: white;
    padding: 15px 15px 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 50px;
    transform: rotate(-2deg);
}

.mp-page-content .featured-polaroid img {
    max-width: 100%;
    display: block;
}

.mp-page-content .page-article {
    font-family: var(--mp-serif);
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--mp-text);
}

.mp-page-content .page-article p {
    margin-bottom: 1.5em;
}

.mp-page-content .page-flower {
    position: absolute;
    font-size: 4rem;
    color: var(--mp-soft-pink);
    opacity: 0.2;
    pointer-events: none;
}

.mp-page-content .f1 { top: 10%; right: 5%; }
.mp-page-content .f2 { bottom: 20%; left: 3%; }
.mp-page-content .f3 { bottom: 10%; right: 10%; }

/* ========== ARCHIVE HEADER ========== */
.mp-archive-header {
    padding: 120px 20px 60px;
    text-align: center;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e9 100%);
}

.mp-archive-header .archive-decoration {
    color: var(--mp-soft-pink);
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    margin-bottom: 20px;
}

.mp-archive-header .archive-title {
    font-family: var(--mp-script);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--mp-pink);
    margin: 0;
}

.mp-archive-header .archive-desc {
    font-family: var(--mp-sans);
    font-size: 1rem;
    color: var(--mp-text);
    max-width: 500px;
    margin: 20px auto 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .polaroid-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 25px;
    }
    
    .polaroid-card {
        transform: none !important;
    }
    
    .mp-post-nav .nav-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .mp-post-nav .nav-card {
        max-width: 300px;
    }
    
    .mp-editorial-header {
        min-height: 50vh;
    }
    
    .mp-editorial-header .header-content {
        padding: 30px;
    }
}
