/* Monkeigh Site Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

/* Header */
.site-header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.site-branding {
    margin-bottom: 15px;
}

.site-title {
    font-size: 2.5em;
    margin-bottom: 5px;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.site-title a:hover {
    color: #3498db;
}

.site-description {
    font-size: 1.1em;
    color: #ecf0f1;
    margin-top: 5px;
}

.site-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.site-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background-color: #34495e;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.site-nav a:hover {
    background-color: #3498db;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.metadata {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.metadata .date {
    font-style: italic;
}

/* Typography */
h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2.5em;
}

h2 {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 2em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

h3 {
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.5em;
}

h4 {
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

p {
    margin-bottom: 15px;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

/* Code */
code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #34495e;
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Horizontal Rule */
hr {
    border: none;
    border-top: 2px solid #ecf0f1;
    margin: 30px 0;
}

/* Footer */
.site-footer {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px;
    background-color: #2c3e50;
    color: white;
    border-radius: 8px;
    text-align: center;
}

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

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: #3498db;
    margin: 0 10px;
}

.social-links a:hover {
    color: white;
}

/* Event Page Specific Styles */
.event-page {
    position: relative;
}

.event-metadata {
    background-color: #ecf0f1;
    padding: 10px 20px;
    margin: -40px -40px 20px -40px;
    border-bottom: 3px solid #3498db;
}

.event-date {
    font-size: 1.1em;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.event-content h1:first-child {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
    margin: 0 -40px 30px -40px;
    border-radius: 0;
}

main h1:first-child {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
    margin: -40px -40px 30px -40px;
    border-radius: 8px 8px 0 0;
}

/* Event info sections */
main > p:first-of-type {
    font-size: 1.1em;
    background-color: #ecf0f1;
    padding: 15px;
    border-left: 4px solid #3498db;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Prize lists */
main ul:has(li:contains("weirdest army")),
main ul:has(li:contains("best appearance")) {
    background-color: #fff9e6;
    padding: 15px 15px 15px 45px;
    border-left: 4px solid #f39c12;
    border-radius: 4px;
}

/* Back to Events link */
main a[href*="events.html"]:last-of-type {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #3498db;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

main a[href*="events.html"]:last-of-type:hover {
    background-color: #2980b9;
    text-decoration: none;
}

/* Event sections with better spacing */
main h2 {
    margin-top: 40px;
    padding-top: 20px;
}

main h3 {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-left: 3px solid #3498db;
    margin-top: 25px;
}

/* Highlight important information */
main p:has(> strong),
main li > strong {
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    main {
        padding: 20px;
    }

    main h1:first-child {
        margin: -20px -20px 20px -20px;
        padding: 15px;
        font-size: 1.5em;
    }

    .site-title {
        font-size: 2em;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    .site-nav {
        flex-direction: column;
        gap: 10px;
    }

    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 8px;
    }
}

/* Event-specific content styling */
.event-content > p:first-of-type {
    font-size: 1.15em;
    line-height: 1.8;
    color: #2c3e50;
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-left: 4px solid #3498db;
    margin-bottom: 25px;
    border-radius: 0 4px 4px 0;
}

/* Contact info styling */
.event-content p:has(> em) {
    background-color: #e8f4f8;
    padding: 12px 15px;
    border-radius: 4px;
    border-left: 3px solid #3498db;
}

/* Event list styling in events page */
main ul li a[href*="events/"] {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f8f9fa;
    border-left: 3px solid #3498db;
    margin: 5px 0;
    transition: all 0.3s;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
}

main ul li a[href*="events/"]:hover {
    background-color: #3498db;
    color: white;
    padding-left: 20px;
}

/* Landscape optimization note */
@media (max-width: 768px) and (orientation: portrait) {
    body::before {
        content: "This site works best in landscape/widescreen viewing";
        display: block;
        background-color: #f39c12;
        color: white;
        padding: 10px;
        text-align: center;
        border-radius: 4px;
        margin-bottom: 10px;
        font-size: 0.9em;
    }

    .event-metadata {
        margin: -20px -20px 15px -20px;
        padding: 8px 15px;
    }

    .event-content h1:first-child {
        margin: 0 -20px 20px -20px;
        padding: 15px;
        font-size: 1.5em;
    }
}
