/* ===================================
   Rock'n Code Article - Futuristic Design
   ================================== */

/* Body and Main Styling */
.rockncode-body {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2a1f3a 100%);
    color: #e0e0e0;
}

.rockncode-main {
    min-height: 100vh;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(138, 43, 226, 0.6),
        0 0 60px rgba(138, 43, 226, 0.4);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

/* Article Container */
.article-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Article Sections */
.article-section {
    margin-bottom: 100px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.article-section:nth-child(1) { animation-delay: 0.2s; }
.article-section:nth-child(2) { animation-delay: 0.4s; }
.article-section:nth-child(3) { animation-delay: 0.6s; }
.article-section:nth-child(4) { animation-delay: 0.8s; }
.article-section:nth-child(5) { animation-delay: 1s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.section-content:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.2);
}

.section-content.reverse {
    grid-template-columns: 1fr 1fr;
}

.section-content.reverse .section-text {
    order: 2;
}

.section-content.reverse .section-image {
    order: 1;
}

/* Section Text */
.section-text {
    position: relative;
}

.section-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(138, 43, 226, 0.1);
    position: absolute;
    top: -40px;
    left: -20px;
    line-height: 1;
    z-index: 0;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.4;
}

.section-body {
    position: relative;
    z-index: 1;
}

.section-body p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 20px;
    color: #d0d0d0;
}

.highlight-text {
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(138, 43, 226, 0.1) 100%);
    padding: 20px;
    border-left: 4px solid #8a2be2;
    border-radius: 8px;
    margin-top: 20px;
}

/* Protocol List (Section 3) */
.protocol-list {
    margin: 30px 0;
}

.protocol-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 10px;
    border-left: 3px solid #8a2be2;
    transition: all 0.3s ease;
}

.protocol-item:hover {
    background: rgba(138, 43, 226, 0.2);
    transform: translateX(10px);
}

.protocol-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Section Images */
.section-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 90px;
    background: radial-gradient(ellipse at bottom right, #0a0e27 35%, transparent 70%);
    pointer-events: none;
}

.image-wrapper:hover {
    transform: scale(1.02);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(138, 43, 226, 0.5);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

/* Manifesto Section */
.manifesto {
    margin-top: 120px;
    padding: 80px 50px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(138, 43, 226, 0.05) 100%);
    border-radius: 20px;
    border: 2px solid rgba(138, 43, 226, 0.4);
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.3);
    text-align: center;
}

.manifesto-content {
    max-width: 900px;
    margin: 0 auto;
}

.manifesto-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.8);
}

.manifesto-subtitle {
    font-size: 1.3rem;
    color: #d0d0d0;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(138, 43, 226, 0.3);
}

.manifesto-quotes {
    margin: 40px 0;
}

.manifesto-quotes p {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.manifesto-core {
    margin: 60px 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px solid #8a2be2;
}

.manifesto-core h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
    margin: 0;
}

.manifesto-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(138, 43, 226, 0.3);
}

.reviewer {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #8a2be2;
    margin-bottom: 5px;
}

.reviewer-title {
    font-style: italic;
    color: #b0b0b0;
    margin-bottom: 20px;
}

.review-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #e0e0e0;
    line-height: 1.8;
    margin: 30px 0;
    padding: 20px;
    border-left: 4px solid #8a2be2;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 8px;
}

.review-date {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: #b0b0b0;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section-content,
    .section-content.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-content.reverse .section-text {
        order: 1;
    }

    .section-content.reverse .section-image {
        order: 2;
    }

    .section-number {
        font-size: 6rem;
        top: -30px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .article-container {
        padding: 40px 15px;
    }

    .section-content {
        padding: 30px 20px;
    }

    .section-number {
        font-size: 4rem;
        top: -20px;
        left: -10px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-body p {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .manifesto {
        padding: 40px 20px;
    }

    .manifesto-title {
        font-size: 1.8rem;
    }

    .manifesto-quotes p {
        font-size: 1rem;
    }

    .manifesto-core h3 {
        font-size: 1.5rem;
    }

    .image-wrapper::after {
        width: 90px;
        height: 70px;
    }
}

/* Animation for section images */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.section-image .image-wrapper {
    animation: float 6s ease-in-out infinite;
}

.section-1 .image-wrapper { animation-delay: 0s; }
.section-2 .image-wrapper { animation-delay: 0.5s; }
.section-3 .image-wrapper { animation-delay: 1s; }
.section-4 .image-wrapper { animation-delay: 1.5s; }
.section-5 .image-wrapper { animation-delay: 2s; }
