* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #4CAF50;
    --dark-green: #2E7D32;
    --light-green: #81C784;
    --minecraft-brown: #8B4513;
    --dark-brown: #654321;
    --grass-green: #7CB342;
    --dirt-brown: #D2691E;
    --stone-gray: #696969;
    --bg-dark: #1a1a1a;
    --bg-card: #2d2d2d;
    --text-light: #ffffff;
    --text-gray: #cccccc;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2d2d2d 100%);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
}

/* Navigation */
nav {
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-green);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: "⛏️";
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-green);
    background: rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: 0.3s;
}

/* Main Content */
main {
    margin-top: 80px;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Recruitment Container */
.recruitment-container {
    position: relative;
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    height: 80vh;
    min-height: 600px;
    border: 2px solid rgba(76, 175, 80, 0.3);
    width: 100%;
}

.recruitment-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    color: var(--text-light);
    background: rgba(45, 45, 45, 0.95);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.3);
    width: 90%;
    max-width: 400px;
}

.recruitment-loading.hidden {
    display: none !important;
}

.recruitment-loading h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.recruitment-loading p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(76, 175, 80, 0.3);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.recruitment-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    border-radius: 15px;
    position: absolute;
    top: 0;
    left: 0;
}

.recruitment-iframe.hidden {
    display: none !important;
}

/* Error State */
.error-container {
    text-align: center;
    padding: 2rem;
}

.error-container h3 {
    color: #f44336;
    margin-bottom: 1rem;
}

.error-container p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.error-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.error-link:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(45, 45, 45, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-container {
        padding: 0 1rem;
    }

    main {
        padding: 1rem;
    }

    .page-header h2 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .recruitment-container {
        height: 75vh;
        min-height: 500px;
    }
    
    .recruitment-loading {
        width: 95%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .recruitment-container {
        height: 70vh;
        min-height: 450px;
        margin: 0;
        border-radius: 10px;
    }
    
    .recruitment-loading {
        width: 95%;
        padding: 1.5rem;
    }
    
    .recruitment-loading h3 {
        font-size: 1.2rem;
    }

    .page-header h2 {
        font-size: 1.8rem;
    }
}