/* SEO Writing article specific styles */

/* Article layout */
.article-content {
    max-width: 950px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

/* Make sure header is not sticky */
header {
    position: static !important;
}

/* Hero graphic */
.hero-graphic {
    margin: 2rem 0 3rem;
    border-radius: 8px;
    overflow: hidden;
}

/* SVG animations */
.algo-side {
    opacity: 0;
    animation: fadeIn 0.8s 0.2s forwards ease-in-out;
}

.human-side {
    opacity: 0;
    animation: fadeIn 0.8s 0.6s forwards ease-in-out;
}

.balance-element {
    opacity: 0;
    animation: fadeIn 0.8s 1s forwards ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.code-pattern text {
    opacity: 0;
    animation: codeReveal 1.5s forwards ease-in-out;
}

.code-pattern text:nth-child(1) { animation-delay: 1.0s; }
.code-pattern text:nth-child(2) { animation-delay: 1.2s; }
.code-pattern text:nth-child(3) { animation-delay: 1.4s; }
.code-pattern text:nth-child(4) { animation-delay: 1.6s; }
.code-pattern text:nth-child(5) { animation-delay: 1.8s; }
.code-pattern text:nth-child(6) { animation-delay: 2.0s; }
.code-pattern text:nth-child(7) { animation-delay: 2.2s; }
.code-pattern text:nth-child(8) { animation-delay: 2.4s; }

@keyframes codeReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reader-wave {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw 2s 1s forwards ease-in-out, moveWave 5s 3s infinite ease-in-out;
}

.reader-eye {
    opacity: 0;
    animation: blink 4s 2s infinite;
}

.reader-smile {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: draw 1.5s 2.5s forwards ease-in-out;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

@keyframes moveWave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes blink {
    0%, 95%, 100% { opacity: 1; r: 8; }
    97% { opacity: 1; r: 1; }
}

.connector {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: draw 1.5s 1.5s forwards ease-in-out;
}

.balance-text {
    opacity: 0;
    animation: fadeIn 0.5s 2s forwards ease-in-out, float 3s 2.5s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.orbit-ring {
    animation: rotate 30s infinite linear;
    transform-origin: 400px 150px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Introduction styling */
.introduction {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: #d0d0d0;
    border-left: 3px solid #00C9FF;
    padding-left: 1.5rem;
}

.introduction p {
    margin-bottom: 1.2rem;
}

/* Section styling */
.article-section {
    margin-bottom: 4rem;
}

.article-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accent-emoji {
    font-size: 1.8rem;
    color: #d0d0d0;
}

/* Evolution timeline */
.evolution-timeline {
    margin: 2rem 0;
}

.era {
    margin-bottom: 2rem;
    background-color: #151515;
    border-radius: 8px;
    overflow: hidden;
    border-left: 3px solid #00C9FF;
}

.era-header {
    background-color: #1a1a1a;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.era-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.3rem;
}

.era-years {
    color: #00C9FF;
    font-size: 0.9rem;
    font-weight: bold;
}

.era-content {
    padding: 1.5rem;
}

.era-content p {
    margin-bottom: 0.8rem;
    color: #aaa;
}

.era-content strong {
    color: #fff;
}

.era-example {
    background-color: rgba(0, 201, 255, 0.1);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.era-example p {
    font-size: 0.95rem;
    font-style: italic;
    color: #ccc;
    margin-bottom: 0;
}

/* Principles grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.principle-card {
    background-color: #151515;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
    border-left: 3px solid #00C9FF;
}

.principle-card:hover {
    transform: translateY(-5px);
    background-color: #191919;
}

.principle-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.principle-card h3 {
    color: #fff;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.principle-card p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
}

.implementation {
    margin-top: 1.2rem;
    background-color: rgba(0, 201, 255, 0.1);
    padding: 1rem;
    border-radius: 5px;
}

.implementation h4 {
    color: #00C9FF;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.implementation p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Content anatomy */
.content-anatomy {
    margin: 2rem 0;
}

.anatomy-section {
    margin-bottom: 2rem;
    background-color: #151515;
    border-radius: 8px;
    overflow: hidden;
    border-left: 3px solid #00C9FF;
}

.anatomy-section h3 {
    background-color: #1a1a1a;
    padding: 1rem 1.5rem;
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seo-element {
    color: #92FE9D;
    font-size: 0.9rem;
    font-weight: normal;
}

.anatomy-content {
    padding: 1.5rem;
}

.anatomy-description p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
}

.anatomy-examples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.2rem;
}

.bad-example, .good-example {
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 5px;
}

.bad-example {
    border-left: 3px solid #FF4A4A;
}

.good-example {
    border-left: 3px solid #92FE9D;
}

.bad-example h4, .good-example h4 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.bad-example h4 {
    color: #FF4A4A;
}

.good-example h4 {
    color: #92FE9D;
}

.bad-example p, .good-example p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 0;
}

/* Strategy tabs */
.strategy-tabs {
    margin: 2rem 0;
}

.tab {
    margin-bottom: 1rem;
}

.tab input[type="radio"] {
    display: none;
}

.tab label {
    display: block;
    background-color: #1a1a1a;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
    color: #aaa;
    font-weight: bold;
    cursor: pointer;
    border-left: 3px solid #333;
}

.tab input[type="radio"]:checked + label {
    background-color: #151515;
    color: #fff;
    border-left: 3px solid #00C9FF;
}

.tab-content {
    display: none;
    background-color: #151515;
    padding: 1.5rem;
    border-radius: 0 0 8px 8px;
}

.tab input[type="radio"]:checked + label + .tab-content {
    display: block;
}

.strategy-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.strategy-list li {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.strategy-example {
    background-color: rgba(0, 201, 255, 0.1);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.strategy-example p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    color: #ccc;
}

.strategy-example p:last-child {
    margin-bottom: 0;
}

.strategy-example strong {
    color: #fff;
}

.semantic-field {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
    text-align: center;
}

.primary-term {
    color: #00C9FF;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.related-terms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-terms li {
    background-color: #222;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    color: #ccc;
    font-size: 0.9rem;
}

.questions-example, .context-example {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.questions-example strong, .context-example strong {
    color: #fff;
}

.optimization-checklist {
    background-color: #151515;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-left: 3px solid #00C9FF;
}

.optimization-checklist h3 {
    color: #fff;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.checklist-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.checklist-item {
    display: flex;
    align-items: center;
}

.checklist-item input[type="checkbox"] {
    margin-right: 0.8rem;
    width: 18px;
    height: 18px;
    accent-color: #00C9FF;
}

.checklist-item label {
    color: #ccc;
    font-size: 0.95rem;
}

/* Case study */
.case-study {
    margin: 2rem 0;
    background-color: #151515;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 3px solid #00C9FF;
}

.before-after-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.before-after-toggle input[type="checkbox"] {
    display: none;
}

.before-after-toggle label {
    position: relative;
    display: flex;
    align-items: center;
    width: 200px;
    height: 40px;
    background-color: #1a1a1a;
    border-radius: 20px;
    cursor: pointer;
}

.toggle-option {
    flex: 1;
    text-align: center;
    z-index: 1;
    color: #aaa;
    font-weight: bold;
    transition: color 0.3s ease;
}

.toggle-handle {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 90px;
    height: 30px;
    background-color: #222;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.before-after-toggle input[type="checkbox"]:checked + label .toggle-handle {
    transform: translateX(100px);
}

.before-after-toggle input[type="checkbox"]:checked + label .toggle-option.before {
    color: #aaa;
}

.before-after-toggle input[type="checkbox"]:checked + label .toggle-option.after {
    color: #00C9FF;
}

.before-after-toggle input[type="checkbox"]:not(:checked) + label .toggle-option.before {
    color: #00C9FF;
}

.content-container {
    position: relative;
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 5px;
    min-height: 300px;
}

.content-before, .content-after {
    transition: opacity 0.3s ease;
}

.content-after {
    position: absolute;
    top: 0;
    left: 0;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
}

.before-after-toggle input[type="checkbox"]:checked ~ .content-container .content-before {
    opacity: 0;
    pointer-events: none;
}

.before-after-toggle input[type="checkbox"]:checked ~ .content-container .content-after {
    opacity: 1;
    pointer-events: auto;
}

.content-before h3, .content-after h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.content-before p, .content-after p {
    color: #ccc;
    line-height: 1.6;
}

.content-after ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content-after li {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.transformation-analysis {
    margin-top: 2rem;
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 5px;
}

.transformation-analysis h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.transformation-analysis ul {
    margin-bottom: 1rem;
}

.transformation-analysis li {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.analysis-note {
    font-size: 0.95rem;
    font-style: italic;
    color: #aaa;
    margin-bottom: 0;
}

/* Tools grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.tool-card {
    background-color: #151515;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #00C9FF;
}

.tool-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tool-card ul {
    margin-bottom: 1rem;
    padding-left: 1.2rem;
}

.tool-card li {
    color: #ccc;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.tool-card strong {
    color: #00C9FF;
}

.tool-tip {
    background-color: rgba(0, 201, 255, 0.1);
    padding: 1rem;
    border-radius: 5px;
}

.tool-tip p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0;
    font-style: italic;
}

/* Conclusion */
.conclusion {
    border-top: 1px solid #333;
    padding-top: 2rem;
    margin-top: 4rem;
}

.future-principles {
    margin: 1.5rem 0;
    padding-left: 1.2rem;
}

.future-principles li {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.future-principles strong {
    color: #00C9FF;
}

.article-cta {
    margin: 3rem 0 2rem;
    padding: 2rem;
    background-color: #151515;
    border-radius: 8px;
    text-align: center;
    border-left: 3px solid #00C9FF;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.article-cta:hover {
    transform: translateY(-5px);
    background-color: #191919;
}

.article-cta p {
    font-size: 1.2rem;
    color: #fff;
}

/* Article navigation */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #222;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-to-articles, .prev-article, .next-article {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    background-color: #151515;
    border-radius: 3px;
    transition: all 0.3s ease;
    border: none;
}

.back-to-articles:hover, .prev-article:hover, .next-article:hover {
    background-color: #222;
    transform: translateY(-2px);
}

/* JavaScript support for toggle */
.before-after-toggle:has(input[type="checkbox"]:checked) ~ .content-container .content-before {
    opacity: 0;
    pointer-events: none;
}

.before-after-toggle:has(input[type="checkbox"]:checked) ~ .content-container .content-after {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .principles-grid, .anatomy-examples, .checklist-items, .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .article-nav {
        flex-direction: column;
    }
} 