/* Article Content Styling for Run 3 Gaming Website */

article {
    background: linear-gradient(135deg, rgba(45, 35, 75, 0.95) 0%, rgba(25, 20, 50, 0.95) 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(138, 43, 226, 0.3);
    color: #e8e8e8;
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
}

/* Headings */
article h2 {
    color: #9d4edd;
    font-size: 2.2em;
    font-weight: 600;
    margin: 30px 0 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid rgba(157, 78, 221, 0.5);
    padding-bottom: 10px;
    position: relative;
}

article h2::before {
    content: "🚀";
    margin-right: 10px;
    font-size: 0.8em;
}

article h3 {
    color: #c77dff;
    font-size: 1.6em;
    font-weight: 500;
    margin: 25px 0 15px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    position: relative;
    padding-left: 20px;
}

article h3::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #9d4edd;
    font-size: 0.8em;
    top: 2px;
}

/* Paragraphs */
article p {
    margin: 15px 0;
    font-size: 1.05em;
    text-align: justify;
    color: #e0e0e0;
}

/* Strong/Bold text */
article strong {
    color: #9d4edd;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Links */
article a {
    color: #c77dff;
    text-decoration: none;
    border-bottom: 1px dotted #c77dff;
    transition: all 0.3s ease;
}

article a:hover {
    color: #9d4edd;
    border-bottom-color: #9d4edd;
    text-shadow: 0 1px 3px rgba(157, 78, 221, 0.5);
}

/* Lists */
article ul {
    margin: 20px 0;
    padding-left: 0;
}

article li {
    background: rgba(157, 78, 221, 0.1);
    margin: 8px 0;
    padding: 12px 15px;
    border-left: 4px solid #9d4edd;
    border-radius: 0 8px 8px 0;
    list-style: none;
    position: relative;
    transition: all 0.3s ease;
}

article li:hover {
    background: rgba(157, 78, 221, 0.2);
    transform: translateX(5px);
}

article li::before {
    content: "✦";
    color: #c77dff;
    font-weight: bold;
    margin-right: 8px;
}

/* Nested lists */
article ul ul {
    margin: 10px 0;
    padding-left: 20px;
}

article ul ul li {
    background: rgba(199, 125, 255, 0.1);
    border-left-color: #c77dff;
    font-size: 0.95em;
}

article ul ul li::before {
    content: "→";
    color: #9d4edd;
}

/* Images */
article img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(157, 78, 221, 0.3);
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    display: block;
}

article img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(157, 78, 221, 0.3);
}

/* YouTube iframe */
article iframe {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(157, 78, 221, 0.3);
    margin: 20px auto;
    display: block;
}

/* Special styling for FAQ section */
article h3:contains("How many"),
article h3:contains("What is the"),
article h3:contains("Can you"),
article h3:contains("Who created") {
    background: rgba(157, 78, 221, 0.1);
    padding: 10px 15px 10px 35px;
    border-radius: 8px;
    border-left: 5px solid #9d4edd;
}

/* Controls section special styling */
article h3:contains("Controls") + p + ul {
    background: rgba(45, 35, 75, 0.7);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgba(157, 78, 221, 0.3);
}

/* Tips section special styling */
article h2:contains("Tips") + p + ul li {
    background: linear-gradient(90deg, rgba(157, 78, 221, 0.15) 0%, rgba(199, 125, 255, 0.1) 100%);
    border-left-width: 6px;
    font-weight: 500;
}

/* Features section special styling */
article h2:contains("Features") + p + ul li {
    background: linear-gradient(90deg, rgba(45, 35, 75, 0.8) 0%, rgba(157, 78, 221, 0.1) 100%);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 8px;
    border-left: 4px solid #c77dff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    article {
        padding: 20px 15px;
        margin: 10px 0;
    }
    
    article h2 {
        font-size: 1.8em;
    }
    
    article h3 {
        font-size: 1.4em;
    }
    
    article p {
        font-size: 1em;
    }
}

/* Scrollbar styling for the article */
article::-webkit-scrollbar {
    width: 8px;
}

article::-webkit-scrollbar-track {
    background: rgba(45, 35, 75, 0.5);
    border-radius: 4px;
}

article::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9d4edd 0%, #c77dff 100%);
    border-radius: 4px;
}

article::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c77dff 0%, #9d4edd 100%);
}