/* Rust Wiki Site Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #8B0000 0%, #B22222 50%, #DC143C 100%);
    min-height: 100vh;
    color: #fff;
    line-height: 1.6;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.7);
    margin-bottom: 40px;
}

.logo-container {
    margin-bottom: 20px;
}

.rust-logo {
    width: 150px;
    height: auto;
    filter: brightness(0); /* Black logo */
    transition: transform 0.3s ease;
}

.rust-logo:hover {
    transform: scale(1.1);
}

h1 {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-style: italic;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Intro section */
.intro {
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    margin-bottom: 40px;
}

.intro h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.intro p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Content sections - text + image layout */
.content-section {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center;
}

.content-section.reverse {
    flex-direction: row-reverse;
}

.text-block {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.text-block h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #FFD700;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 10px;
}

.text-block ul, .text-block ol {
    margin-left: 20px;
    margin-top: 15px;
}

.text-block li {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.text-block strong {
    color: #FFD700;
}

.warning {
    background: rgba(255, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #FFD700;
}

.image-block {
    flex: 1;
    text-align: center;
}

.image-block img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.image-block img:hover {
    transform: scale(1.02);
}

.caption {
    margin-top: 15px;
    font-style: italic;
    opacity: 0.8;
}

/* Tips section */
.tips {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.tips h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #FFD700;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.tip-card {
    background: rgba(255, 215, 0, 0.1);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.tip-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.tip-card p {
    font-size: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.8);
    margin-top: 40px;
}

footer p {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .content-section, .content-section.reverse {
        flex-direction: column;
    }

    .text-block, .image-block {
        width: 100%;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}
