/* Zine-specific styles */
.zine-content {
    margin-top: 80px;
    padding: 0;
}

/* Zine Header */
.zine-header {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.zine-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0,0 Q50,25 100,0 T100,50 Q50,75 0,50 Z' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.zine-header.dark {
    background: linear-gradient(135deg, #1a1a1a, #333333);
}

.zine-number {
    font-family: var(--font-display);
    font-size: 8rem;
    position: absolute;
    top: 1rem;
    right: 2rem;
    opacity: 0.3;
    transform: rotate(-15deg);
}

.zine-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.title-part-1 {
    display: block;
    transform: rotate(-2deg);
    margin-left: -2rem;
}

.title-part-2 {
    display: block;
    transform: rotate(3deg);
    margin-left: 2rem;
}

.zine-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.zine-date {
    font-size: 1.2rem;
    opacity: 0.9;
}

.zine-tags {
    display: flex;
    gap: 1rem;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Zine Scenes */
.zine-scene {
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.zine-scene:nth-child(even) {
    background: var(--surface-color);
}

/* Scene Titles */
.scene-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--primary-color);
    margin-bottom: 2rem;
    transform: skew(-2deg);
}

.scene-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transform: rotate(-1deg);
}

/* Content Blocks */
.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.zine-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.zine-text.large {
    font-size: 1.5rem;
    text-align: center;
}

.zine-text.centered {
    text-align: center;
}

.highlight {
    background: var(--accent-color);
    color: var(--text-color);
    padding: 0.2rem 0.4rem;
    transform: skew(-2deg);
    display: inline-block;
}

/* Scene 1 - Digital Rebellion */
.scene-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.scene-visual {
    position: relative;
    height: 400px;
}

.glitch-box {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glitchBox 3s infinite;
}

.floating-text {
    position: absolute;
    top: 20%;
    right: 10%;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--secondary-color);
    animation: float-text 4s ease-in-out infinite;
    transform: rotate(-10deg);
}

@keyframes glitchBox {
    0%, 100% { 
        transform: translate(-50%, -50%);
        background: var(--primary-color);
    }
    25% { 
        transform: translate(-48%, -52%);
        background: var(--secondary-color);
    }
    50% { 
        transform: translate(-52%, -48%);
        background: var(--accent-color);
    }
    75% { 
        transform: translate(-49%, -51%);
        background: var(--primary-color);
    }
}

@keyframes float-text {
    0%, 100% { transform: rotate(-10deg) translateY(0); }
    50% { transform: rotate(-10deg) translateY(-20px); }
}

/* Scene 2 - Asymmetric Layout */
.asymmetric {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
    transform: skew(-1deg);
}

.content-column {
    transform: skew(1deg);
}

.visual-column {
    transform: skew(1deg);
    position: relative;
    height: 300px;
}

.zine-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--primary-color);
    border-left: 5px solid var(--secondary-color);
    padding-left: 2rem;
    margin: 2rem 0;
    transform: rotate(-1deg);
}

.quote-author {
    text-align: right;
    font-size: 1rem;
    opacity: 0.8;
    transform: skew(-3deg);
}

.rotating-square {
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    position: absolute;
    top: 2rem;
    right: 2rem;
    animation: spin 8s linear infinite;
}

.code-snippet {
    position: absolute;
    bottom: 2rem;
    left: 0;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border: 2px solid var(--primary-color);
    transform: rotate(2deg);
}

.code-comment { color: #888; }
.code-function { color: var(--secondary-color); }
.code-name { color: var(--accent-color); }
.code-return { color: var(--primary-color); }
.code-string { color: #ffa500; }

/* Scene 3 - Full Width Visual */
.scene-3 {
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.full-width-visual {
    flex: 1;
    position: relative;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visual-layers {
    position: relative;
}

.layer {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 12rem);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.layer-1 {
    color: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%) rotate(-5deg);
    z-index: 3;
}

.layer-2 {
    color: rgba(255, 255, 255, 0.6);
    transform: translate(-45%, -45%) rotate(2deg);
    z-index: 2;
}

.layer-3 {
    color: rgba(255, 255, 255, 0.3);
    transform: translate(-55%, -55%) rotate(-3deg);
    z-index: 1;
}

.scene-content.centered {
    background: var(--bg-color);
    padding: 3rem;
    text-align: center;
}

.content-scatter {
    position: relative;
    height: 200px;
    margin-top: 3rem;
}

.scattered-word {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.pos-1 {
    top: 20%;
    left: 10%;
    transform: rotate(-10deg);
    color: var(--primary-color);
}

.pos-2 {
    top: 60%;
    right: 20%;
    transform: rotate(8deg);
    color: var(--secondary-color);
}

.pos-3 {
    bottom: 10%;
    left: 50%;
    transform: rotate(-5deg);
    color: var(--accent-color);
}

/* Scene 4 - Manifesto */
.conclusion {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.conclusion-title {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--primary-color);
    transform: rotate(-2deg);
    margin-bottom: 3rem;
}

.manifesto-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.point {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.point-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--secondary-color);
    min-width: 40px;
}

.point p {
    font-size: 1.1rem;
    margin: 0;
}

/* Manifesto Styling */
.manifesto-style {
    text-align: left;
}

.large-quote {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--primary-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 2rem;
    margin: 2rem 0 3rem 0;
    transform: rotate(-1deg);
    background: rgba(255, 224, 102, 0.1);
    padding: 1.5rem 2rem;
}

.manifesto-point {
    display: flex;
    align-items: flex-start;
    margin: 1.5rem 0;
    transform: rotate(0.5deg);
}

.point-marker {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1rem;
    font-family: var(--font-mono);
}

.manifesto-point p {
    font-size: 1.1rem;
    margin: 0;
    font-style: italic;
}

/* Poem Layout */
.poem-layout {
    background: var(--surface-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poem-block {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    line-height: 2;
    text-align: left;
    max-width: 600px;
}

.poem-line {
    margin: 0.8rem 0;
    color: var(--text-color);
    animation: typewriter 0.5s ease-in-out;
}

.indent-1 {
    margin-left: 2rem;
    color: var(--secondary-color);
}

.indent-2 {
    margin-left: 4rem;
    color: var(--primary-color);
}

.poem-break {
    text-align: center;
    margin: 2rem 0;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.glow-text {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(215, 38, 56, 0.3);
    font-weight: 500;
}

.glow-text:hover {
    text-shadow: 0 0 20px rgba(215, 38, 56, 0.6);
    animation: glow 1s ease-in-out;
}

@keyframes typewriter {
    0% { opacity: 0; transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(215, 38, 56, 0.3); }
    50% { text-shadow: 0 0 25px rgba(215, 38, 56, 0.8); }
}

/* Zine 2 Specific Styles */
.zine-2 .scene-1.night-theme {
    background: linear-gradient(135deg, #001122, #002244);
    color: white;
    position: relative;
}

.time-display {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.7;
}

.moon-phases {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.moon-phase {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    position: relative;
}

.phase-1::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 60px;
    background: #001122;
    border-radius: 0 60px 60px 0;
}

.phase-2::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: #001122;
    border-radius: 50%;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.3;
}

.diagonal {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    transform: skew(-2deg);
}

.content-diagonal,
.visual-diagonal {
    transform: skew(2deg);
}

.thought-bubbles {
    position: relative;
    height: 300px;
}

.thought-bubble {
    position: absolute;
    background: var(--accent-color);
    color: var(--text-color);
    padding: 1rem;
    border-radius: 20px;
    max-width: 200px;
    font-size: 0.9rem;
    transform: rotate(-2deg);
}

.bubble-1 {
    top: 10%;
    left: 0;
}

.bubble-2 {
    top: 40%;
    right: 0;
    transform: rotate(3deg);
}

.bubble-3 {
    bottom: 10%;
    left: 20%;
    transform: rotate(-1deg);
}

.spinning-vinyl {
    width: 120px;
    height: 120px;
    background: #000;
    border-radius: 50%;
    position: relative;
    animation: spin 3s linear infinite;
}

.spinning-vinyl::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.sound-waves {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    align-items: end;
}

.wave {
    width: 4px;
    background: var(--secondary-color);
    animation: wave 1s ease-in-out infinite;
}

.wave-1 {
    height: 20px;
    animation-delay: 0s;
}

.wave-2 {
    height: 35px;
    animation-delay: 0.2s;
}

.wave-3 {
    height: 25px;
    animation-delay: 0.4s;
}

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

/* Chaotic Layout */
.chaotic-layout {
    position: relative;
    height: 80vh;
    max-width: 1000px;
    margin: 0 auto;
}

.chaos-element {
    position: absolute;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    animation: chaosFloat 6s ease-in-out infinite;
}

.elem-1 {
    top: 10%;
    left: 10%;
    color: var(--primary-color);
    transform: rotate(-15deg);
    animation-delay: 0s;
}

.elem-2 {
    top: 20%;
    right: 20%;
    color: var(--secondary-color);
    transform: rotate(10deg);
    animation-delay: 1s;
}

.elem-3 {
    bottom: 30%;
    left: 20%;
    color: var(--accent-color);
    transform: rotate(-8deg);
    animation-delay: 2s;
}

.elem-4 {
    bottom: 20%;
    right: 10%;
    color: var(--primary-color);
    transform: rotate(12deg);
    animation-delay: 3s;
}

.chaos-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-color);
    padding: 2rem;
    border: 3px solid var(--border-color);
    max-width: 400px;
    text-align: center;
}

@keyframes chaosFloat {
    0%, 100% { transform: translateY(0) rotate(var(--initial-rotation, 0deg)); }
    33% { transform: translateY(-20px) rotate(calc(var(--initial-rotation, 0deg) + 5deg)); }
    66% { transform: translateY(10px) rotate(calc(var(--initial-rotation, 0deg) - 3deg)); }
}

/* Mirror Section */
.mirror-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.mirror-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.mirror-list {
    list-style: none;
    font-size: 1.1rem;
}

.mirror-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.left {
    text-align: right;
    opacity: 0.7;
}

.right {
    text-align: left;
}

.right .mirror-list li {
    color: var(--secondary-color);
    font-weight: bold;
}

.mirror-divider {
    width: 2px;
    height: 300px;
    background: var(--border-color);
    position: relative;
}

.cracked-mirror {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    clip-path: polygon(50% 0%, 0% 50%, 50% 100%, 100% 50%);
    animation: crack 2s ease-in-out infinite;
}

@keyframes crack {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Dawn Section */
.dawn-breaking {
    text-align: center;
    position: relative;
    padding: 4rem 2rem;
}

.sunrise-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, 
        #ff6b35 0%, 
        #ffa500 25%, 
        #ffff00 50%, 
        rgba(255, 255, 255, 0) 100%);
    opacity: 0.3;
}

.final-thoughts {
    position: relative;
    z-index: 2;
}

.dawn-title {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    transform: rotate(-1deg);
}

.signature {
    margin-top: 3rem;
    font-style: italic;
}

.sign-text {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.sign-author {
    font-size: 1rem;
    opacity: 0.8;
}

/* Zine Footer */
.zine-footer {
    background: var(--surface-color);
    padding: 2rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.footer-btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: skew(-5deg);
}

/* Reactions Section */
.reactions-section {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(244, 233, 240, 0.1);
    border-radius: 15px;
    border: 2px dashed var(--secondary-color);
}

.reactions-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transform: rotate(-1deg);
}

.reaction-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.reaction-btn {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reaction-btn:hover {
    background: var(--secondary-color);
    transform: rotate(-5deg) scale(1.1);
    border-color: var(--primary-color);
}

.reaction-btn:active {
    animation: reactionPress 0.2s ease-in-out;
}

.reaction-counts {
    display: flex;
    gap: 1rem;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.reaction-count {
    background: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

@keyframes reactionPress {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.9); }
}

/* Comments Section */
.comments-section {
    background: var(--bg-color);
    padding: 4rem 2rem;
}

.comments-container {
    max-width: 800px;
    margin: 0 auto;
}

.comments-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    transform: rotate(-1deg);
}

.comments-list {
    margin-bottom: 4rem;
}

.comment {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transform: rotate(0.5deg);
    transition: all 0.3s ease;
}

.comment:nth-child(even) {
    transform: rotate(-0.5deg);
    margin-left: 2rem;
}

.comment:hover {
    transform: rotate(0deg) scale(1.02);
    border-color: var(--secondary-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.comment-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.6;
}

.comment-content {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
}

/* Comment Form */
.comment-form-container {
    background: rgba(138, 198, 209, 0.1);
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    padding: 2rem;
    transform: rotate(-1deg);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.comment-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: rotate(-1deg);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--bg-color);
    border: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
    display: block;
    margin: 0 auto;
}

.submit-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color);
    transform: rotate(1deg) scale(1.05);
}

.submit-btn:active {
    animation: submitPress 0.2s ease-in-out;
}

@keyframes submitPress {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); }
}

/* View Counter */
.view-counter {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--surface-color);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-color);
    z-index: 100;
    transform: rotate(-2deg);
}

/* Responsive Design for Zine Pages */
@media (max-width: 768px) {
    .scene-1 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .asymmetric,
    .diagonal {
        grid-template-columns: 1fr;
        transform: none;
    }
    
    .visual-column,
    .visual-diagonal {
        height: 200px;
    }
    
    .chaotic-layout {
        height: 60vh;
    }
    
    .chaos-element {
        font-size: 2rem;
    }
    
    .mirror-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .left {
        text-align: center;
    }
    
    .mirror-divider {
        width: 100%;
        height: 2px;
    }
    
    .footer-nav {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .zine-title {
        font-size: 2.5rem;
    }
    
    .zine-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .scene-title {
        font-size: 2rem;
    }
    
    .full-width-visual .layer {
        font-size: 3rem;
    }
    
    .chaos-center {
        position: static;
        transform: none;
        margin-top: 2rem;
    }
}
