/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;600&family=Signika:wght@300;400;700&display=swap');

/* Minecraft pixel font (local) */
@font-face {
    font-family: 'MinecraftSeven';
    src: url('../fonts/Minecraft_Seven_2.woff') format('woff'),
         url('../fonts/Minecraft_Seven_2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --black-hsl: 0, 0%, 10%;
    --white-hsl: 0, 0%, 100%;

    /* Theme Palette */
    --deep-purple: #1f0539;
    --lavender: #cfb2fb;
    --blue: #4594e3;
    --pink: #f867ce;

    /* Main Colors */
    --primary-color: #3D374E;
    --primary-hover: #3C8527;
    --accent-color: #FFC107;
    --primary-button-text-color: hsla(0, 0%, 100%, 1);
    --primary-button-bg-color: hsla(var(--black-hsl), 1);
    --bg-light: #F9F9F9;
    --bg-card: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #ffffff;
    --text-light-muted: #dddddd;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 8px;
    --nav-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Signika', sans-serif;
    background-color: var(--bg-light);
    background: url('../images/bg.webp') repeat;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'MinecraftSeven', 'Fredoka', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

p {
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3C8527;
    color: white;
    font-family: 'MinecraftSeven', 'Fredoka', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    /* box-shadow: 0 4px 0 var(--primary-hover); */
    /* box-shadow: inset 0 -6px 0 #2A641C,inset 0 6px 0 #52A535; */
    box-shadow: inset 0 -6px 0 rgba(0,0,0,0.2),inset 0 6px 0 rgba(255,255,255,0.25);
    border-radius: 2px;
}

.btn:hover {
    transform: translateY(2px);
    /* box-shadow: 0 2px 0 var(--primary-hover); */
}

.btn:not([class*="btn-secondary"]):hover {
    background: #367723;
}

.btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
    box-shadow: inset 0 -6px 0 #c0c0c0, inset 0 6px 0 #f0f0f0;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

/* Navigation */
.navbar {
  height: var(--nav-height);
  background-color: rgba(28, 28, 28, 0.5);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 2px solid #333;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: 'MinecraftSeven', 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: white;
    font-family: 'MinecraftSeven', 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../images/gallery_1.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 0; /* Reset margin since we want full bleed */
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 0;
}

.hero .hero-content { 
    position: relative; 
    z-index: 1; 
    padding-top: var(--nav-height);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #ddd;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.hero.page-hero {
    height: 40vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* Full Bleed Sections */
.full-bleed-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
}

.full-bleed-section.has-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.full-bleed-section .container {
    position: relative;
    z-index: 2;
}

.text-center {
    text-align: center;
}

.section.light h1, .section.light h2, .section.light h3, .section.light h4, .section.light h5, .section.light h6 {
    color: var(--text-light);
}

.section.light a, .section.light p {
    color: var(--text-light-muted);
}

.section-season {
    background-color: #1a1a1a;
    color: var(--text-light);
    padding: 60px 0;
}

.section-season h2 {
    font-size: 3rem;
    margin: 0;
}

.section-members {
    background-color: #222;
    padding: 80px 0;
}

.members-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.members-image {
    max-width: 800px;
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Features / About Section */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
    border: 1px solid #333;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
}

/* Community Section */
.community-section {
    background-color: #222;
    position: relative;
    overflow: hidden;
}

.community-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.community-text {
    padding: 5rem;
    flex: 1;
}

.community-image {
    flex: 1;
}

.community-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 4px solid #333;
}

/* Footer */
footer {
    background-color: white;
    padding: 50px 0 20px;
    border-top: 4px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col p {
    color: var(--text-main);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Rules Page Specifics */
.rules-list {
    counter-reset: rule-counter;
}

.rules-list .section-title > h2 {
    color: var(--text-light) !important;
}

.rules-list .section-title > p {
    color: var(--text-light-muted) !important;
}

.rule-item {
    background-color: var(--bg-card);
    margin-bottom: 20px;
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border-left: 4px solid var(--primary-color);
}

.rule-content > h3, .rule-content > p {
    color: var(--text-main);
}

.rule-number {
    counter-increment: rule-counter;
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

/* Members Page Specifics */
.section.members {
    background: var(--primary-color) !important;
    padding: 80px 0;
}
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.member-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
    padding: 20px;
}
.member-card:hover {
    transform: translateY(-5px);
}
.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 auto 15px;
    object-fit: cover;
}
.member-name {
    font-family: 'MinecraftSeven', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: white;
}
.member-role {
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
}

/* Map Page Specifics */
.map-container {
    height: 80vh;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 4px solid #333;
    margin-top: 20px;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .community-content {
        flex-direction: column;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(100px);
    transition: transform 0.3s ease;
    z-index: 2000;
    font-weight: 600;
}

.toast.show {
    transform: translateY(0);
}

.logo-image {
    width: 200px;
    height: auto;
}