/* Core page layout styles only - specific page styles moved to dedicated files */

/* Apply to all dynamic page content sections */
.content {
    width: 100%;
    padding: 30px 20px; /* Re-apply general padding to individual pages */
    min-height: 100%; /* Ensure content section itself is at least as tall as its container */
    box-sizing: border-box; /* Include padding in element's total width/height */
    display: flex; /* Make pages flex containers */
    flex-direction: column; /* Stack content vertically */
    /* align-items: stretch by default, good for main content sections */
}

/* Homepage Styles */
.homepage-hero {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ccc;
}

.hero-left {
    flex: 2;
}

.hero-left h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.hero-left p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-shadow: 0 1px 0 #fff;
}

.hero-right {
    flex: 1;
}

.featured-game {
    border: 1px solid #ccc;
    background: #fff;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.featured-game img {
    width: 100%;
    display: block;
}

.featured-game-title {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}

.homepage-sub-content {
    padding: 20px;
    text-shadow: 0 1px 0 #fff;
}

.homepage-news-section {
    padding: 0 20px 20px 20px; /* Add padding */
}

.homepage-news-section h2 {
    margin-bottom: 10px;
}

.homepage-sub-content h2 {
    margin-bottom: 10px;
    text-shadow: 0 1px 0 #fff;
}

.homepage-sub-content p {
    margin-bottom: 10px;
}

/* Feature cards (used across multiple pages) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.feature-card {
    background: #f5f8fa;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.feature-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.3rem;
    text-shadow: none;
}

.feature-card p {
    margin: 0;
    color: #666;
    line-height: 1.5;
    text-shadow: none;
}

/* Community Rules Section (used across pages) */
.community-section {
    width: 100%;
    background: #f5f5f5;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.community-section h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.8rem;
    text-shadow: none;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: none;
}

.rules-list li:last-child {
    border-bottom: none;
}

.rule-icon {
    width: 20px;
    height: 20px;
    background: #ff4444; /* Solid red */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: none;
    text-shadow: none;
}

.rule-text {
    color: #333;
    line-height: 1.5;
}

/* Game Page Info Section */
.game-info-section {
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    background-color: #f5f5f5; /* Match homepage hero bg */
    border-top: 1px solid #ccc;
}

.game-info-section h2, .game-info-section h3 {
    margin-bottom: 10px;
    text-shadow: 0 1px 0 #fff;
}

.game-info-section p {
    margin-bottom: 15px;
    text-shadow: none;
}

.rules-list-simple {
    list-style-type: disc;
    padding-left: 25px;
    margin: 0;
}

.rules-list-simple li {
    margin-bottom: 8px;
    text-shadow: none;
}

/* Shop Page Info Section */
.shop-info-section {
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
}