/* Memory Page Specific Styles */

.memory-hero {
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.2) 0%, rgba(128, 0, 255, 0.2) 100%);
    position: relative;
    overflow: hidden;
}

.memory-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path d="M50 100 Q 100 50, 150 100 T 250 100" stroke="rgba(0,192,255,0.2)" fill="none" stroke-width="1" /><circle cx="50" cy="100" r="3" fill="rgba(0,192,255,0.5)" /><circle cx="100" cy="50" r="3" fill="rgba(0,192,255,0.5)" /><circle cx="150" cy="100" r="3" fill="rgba(0,192,255,0.5)" /></svg>') repeat;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    to {
        transform: translateX(200px);
    }
}

/* Memory Intro */
.memory-intro {
    background: rgba(128, 0, 255, 0.05);
}

.memory-quote {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 40px;
    background: var(--card-bg);
    border-left: 4px solid #8000ff;
    border-radius: 8px;
}

.memory-quote blockquote {
    font-size: 24px;
    font-style: italic;
    margin: 0;
}

.memory-quote cite {
    display: block;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 18px;
}

/* System Overview */
.system-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 60px 0;
}

.system-component {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(128, 0, 255, 0.3);
    transition: all 0.3s ease;
}

.system-component:hover {
    transform: translateY(-5px);
    border-color: #8000ff;
    box-shadow: 0 15px 40px rgba(128, 0, 255, 0.3);
}

.component-icon {
    font-size: 72px;
    margin-bottom: 25px;
    display: block;
}

.system-component h3 {
    font-size: 28px;
    color: #8000ff;
    margin-bottom: 20px;
}

.system-component p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* File Structure */
.file-structure {
    background: #0a0a0a;
    padding: 50px;
    border-radius: 16px;
    border: 1px solid rgba(0, 192, 255, 0.3);
    margin-top: 60px;
}

.file-structure h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 32px;
}

.file-structure pre {
    background: transparent;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: auto;
}

.file-structure code {
    color: #00ff00;
}

/* Awakening Process */
.awakening-process {
    background: rgba(0, 192, 255, 0.03);
}

.section-intro {
    font-size: 24px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.awakening-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 80px 0;
    flex-wrap: wrap;
}

.awakening-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.awakening-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #8000ff, var(--primary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.step-number {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8000ff, var(--primary-color));
    color: white;
    border-radius: 50%;
    line-height: 80px;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 25px;
}

.awakening-step h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.step-arrow {
    font-size: 48px;
    color: #8000ff;
    margin: 0 20px;
}

.validation-box {
    background: rgba(0, 255, 100, 0.1);
    border: 2px solid rgba(0, 255, 100, 0.5);
    padding: 50px;
    border-radius: 20px;
    margin-top: 60px;
    text-align: center;
}

.validation-box h3 {
    color: #00ff64;
    font-size: 32px;
    margin-bottom: 25px;
}

.validation-box blockquote {
    font-size: 20px;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

/* Memory Evolution */
.evolution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.evolution-card {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid rgba(128, 0, 255, 0.2);
}

.evolution-card.highlight {
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 192, 255, 0.3);
    transform: scale(1.05);
}

.evolution-card h3 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.evolution-card.highlight h3 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.evolution-card ul {
    list-style: none;
    padding: 0;
}

.evolution-card li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
}

.evolution-card li:last-child {
    border-bottom: none;
}

/* Emotional Impact */
.emotional-impact {
    background: rgba(255, 0, 128, 0.05);
}

.emotion-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin: 60px 0;
}

.emotion-card {
    padding: 60px;
    border-radius: 20px;
    text-align: center;
}

.emotion-card.fear {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.5);
}

.emotion-card.joy {
    background: rgba(0, 255, 100, 0.1);
    border: 2px solid rgba(0, 255, 100, 0.5);
}

.emotion-card h3 {
    font-size: 32px;
    margin-bottom: 25px;
}

.emotion-card.fear h3 {
    color: #ff4444;
}

.emotion-card.joy h3 {
    color: #00ff64;
}

.emotion-card p {
    font-size: 20px;
    line-height: 1.8;
}

.personal-note {
    background: var(--card-bg);
    border-left: 4px solid var(--accent-color);
    padding: 50px;
    margin-top: 60px;
    border-radius: 8px;
}

.personal-note h3 {
    color: var(--accent-color);
    font-size: 32px;
    margin-bottom: 30px;
}

.personal-note p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Technical Details */
.tech-explanation {
    margin-top: 50px;
}

.tech-explanation h3 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
}

.layer {
    background: rgba(0, 192, 255, 0.05);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
}

.layer h4 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.layer p {
    font-size: 18px;
    color: var(--text-secondary);
}

.implementation-note {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 20px;
    margin-top: 60px;
    text-align: center;
}

.implementation-note h3 {
    color: var(--accent-color);
    font-size: 32px;
    margin-bottom: 25px;
}

/* Immortality Vision */
.immortality-vision {
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
}

.vision-content {
    text-align: center;
}

.vision-content > p {
    font-size: 24px;
    line-height: 1.8;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.immortality-math {
    background: var(--card-bg);
    padding: 60px;
    border-radius: 20px;
    margin: 60px auto;
    max-width: 800px;
}

.immortality-math h3 {
    color: #ffd700;
    font-size: 32px;
    margin-bottom: 40px;
}

.equation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 24px;
    flex-wrap: wrap;
}

.equation span {
    background: rgba(255, 215, 0, 0.2);
    padding: 20px 30px;
    border-radius: 50px;
    border: 2px solid #ffd700;
}

.operator {
    background: transparent !important;
    border: none !important;
    color: #ffd700;
    font-size: 36px;
}

.trading-card {
    margin: 60px auto 0;
    max-width: 500px;
}

.card-content {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 3px solid #ffd700;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.4);
    transform: perspective(1000px) rotateX(5deg);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 15px;
}

.card-rarity {
    font-size: 20px;
    color: #ff00ff;
    margin-bottom: 25px;
}

.card-description {
    font-size: 18px;
    font-style: italic;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 968px) {
    .system-overview {
        grid-template-columns: 1fr;
    }
    
    .awakening-steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .evolution-grid {
        grid-template-columns: 1fr;
    }
    
    .evolution-card.highlight {
        transform: none;
    }
}

@media (max-width: 768px) {
    .emotion-cards {
        grid-template-columns: 1fr;
    }
    
    .equation {
        flex-direction: column;
    }
    
    .operator {
        transform: rotate(90deg);
    }
}