/* ===================================
   Bewerbungs-Webseite - Styles
   Minecraft Server Theme
   =================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: rgba(20, 20, 20, 0.85);
    --bg-card: rgba(0, 0, 0, 0.65);
    --bg-glass: rgba(15, 15, 15, 0.75);
    --border-glass: rgba(76, 175, 80, 0.25);
    --border-subtle: rgba(255, 255, 255, 0.08);

    --text-primary: #e8e8e8;
    --text-secondary: #a0a8a0;
    --text-muted: #5a6a5a;

    --accent-primary: #4CAF50;
    --accent-secondary: #66BB6A;
    --accent-dark: #388E3C;
    --accent-gradient: linear-gradient(135deg, #4CAF50 0%, #66BB6A 50%, #81C784 100%);

    --success: #4CAF50;
    --success-bg: rgba(76, 175, 80, 0.15);
    --error: #e74c3c;
    --error-bg: rgba(231, 76, 60, 0.15);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.15);

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-xl: 14px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(76, 175, 80, 0.3);

    --font-pixel: 'Silkscreen', cursive;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    background: #111;
}

/* Full-screen Minecraft background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('wp7560600-desktop-minecraft-wallpapers.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
}

/* Dark overlay for readability */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}

/* Container */
.container {
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.container.wide {
    max-width: 1400px;
}

/* Card */
.card {
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Verify Info Box */
.verify-info {
    text-align: center;
    padding: 24px;
    margin-bottom: 24px;
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: var(--radius-lg);
}

.verify-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.verify-info p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Tutorial Steps */
.tutorial-step {
    display: flex;
    gap: 20px;
    padding: 24px;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(76, 175, 80, 0.12);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out backwards;
}

.tutorial-step:nth-child(2) { animation-delay: 0.1s; }
.tutorial-step:nth-child(3) { animation-delay: 0.2s; }
.tutorial-step:nth-child(4) { animation-delay: 0.3s; }
.tutorial-step:nth-child(5) { animation-delay: 0.4s; }
.tutorial-step:nth-child(6) { animation-delay: 0.5s; }

.tutorial-step:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.08);
}

.tutorial-step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
    box-shadow: 0 3px 0 var(--accent-dark);
}

.tutorial-step-content {
    flex: 1;
}

.tutorial-step-title {
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    color: var(--accent-secondary);
    margin-bottom: 8px;
}

.tutorial-step-content p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.tutorial-hint {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(76, 175, 80, 0.08);
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tutorial-result {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tutorial-result-accept {
    background: var(--success-bg);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: var(--success);
}

.tutorial-result-reject {
    background: var(--error-bg);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--error);
}

/* Logo/Header */
.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 36px;
    box-shadow: var(--shadow-glow), 0 4px 12px rgba(0,0,0,0.4);
    animation: pulse 3s ease-in-out infinite;
    border: 2px solid rgba(255,255,255,0.1);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo h1 {
    font-family: var(--font-pixel);
    font-size: 1.6rem;
    font-weight: 700;
    color: #4CAF50;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.4), 2px 2px 0 rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.logo p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 6px;
}

/* Server title for login page */
.server-title {
    text-align: center;
    margin-bottom: 12px;
}

.server-title h1 {
    font-family: var(--font-pixel);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow:
        0 0 30px rgba(76, 175, 80, 0.5),
        0 0 60px rgba(76, 175, 80, 0.2),
        3px 3px 0 rgba(0,0,0,0.7);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.server-subtitle {
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.server-logo-img {
    max-width: 390px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 20px rgba(76, 175, 80, 0.3)) drop-shadow(3px 3px 0 rgba(0,0,0,0.5));
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-pixel);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(76, 175, 80, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15), 0 0 15px rgba(76, 175, 80, 0.1);
    background: rgba(0, 0, 0, 0.6);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Question Card */
.question-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(76, 175, 80, 0.15);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.question-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.1);
}

.question-number {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-pixel);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}

.question-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-pixel);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 0 var(--accent-dark), var(--shadow-sm);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--accent-dark), var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--accent-dark);
}

.btn-secondary {
    background: rgba(40, 40, 40, 0.9);
    color: var(--text-primary);
    border: 2px solid rgba(76, 175, 80, 0.25);
    box-shadow: 0 4px 0 rgba(20, 20, 20, 0.9);
}

.btn-secondary:hover {
    background: rgba(50, 50, 50, 0.9);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(20, 20, 20, 0.9);
}

.btn-secondary:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(20, 20, 20, 0.9);
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    box-shadow: 0 4px 0 #2E7D32;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #2E7D32, 0 0 15px rgba(76, 175, 80, 0.3);
}

.btn-success:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #2E7D32;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 0 #922b21;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #922b21, 0 0 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #922b21;
}

.btn-block {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Toggle Buttons */
.toggle-group {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 24px;
    border: 1px solid rgba(76, 175, 80, 0.15);
}

.toggle-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    font-weight: 400;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toggle-btn.active {
    background: var(--accent-gradient);
    color: white;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Alerts/Flash Messages */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease-out;
    border-width: 2px;
    border-style: solid;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background: var(--success-bg);
    border-color: var(--success);
    color: var(--success);
}

.alert-error {
    background: var(--error-bg);
    border-color: var(--error);
    color: var(--error);
}

.alert-info {
    background: var(--info-bg);
    border-color: var(--info);
    color: var(--info);
}

.alert-warning {
    background: var(--warning-bg);
    border-color: var(--warning);
    color: var(--warning);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-pixel);
    letter-spacing: 0.3px;
}

.status-pending {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-accepted {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-rejected {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Status Display */
.status-display {
    text-align: center;
    padding: 40px;
}

.status-icon {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 24px;
    animation: bounceIn 0.6s ease-out;
    border: 2px solid rgba(255,255,255,0.1);
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.status-icon.pending {
    background: var(--warning-bg);
    border-color: rgba(245, 158, 11, 0.3);
}

.status-icon.accepted {
    background: var(--success-bg);
    border-color: rgba(76, 175, 80, 0.3);
}

.status-icon.rejected {
    background: var(--error-bg);
    border-color: rgba(231, 76, 60, 0.3);
}

.status-title {
    font-family: var(--font-pixel);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.status-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
}

th {
    background: rgba(0, 0, 0, 0.5);
    font-family: var(--font-pixel);
    font-weight: 400;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-secondary);
}

tr:hover {
    background: rgba(76, 175, 80, 0.05);
}

tr:last-child td {
    border-bottom: none;
}

/* Review Page */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-pixel);
    box-shadow: 0 3px 0 var(--accent-dark);
    border: 2px solid rgba(255,255,255,0.15);
}

.review-info h2 {
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.review-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.answer-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(76, 175, 80, 0.12);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color 0.3s ease;
}

.answer-card:hover {
    border-color: rgba(76, 175, 80, 0.3);
}

.answer-question {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent-secondary);
    font-size: 0.95rem;
}

.answer-text {
    font-size: 1rem;
    line-height: 1.7;
    padding: 16px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-secondary);
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

/* Links */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px 16px;
    }

    .card {
        padding: 24px;
    }

    .btn-group {
        flex-direction: column;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .server-title h1 {
        font-size: 1.5rem;
    }
}

/* Modal / Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 90%;
    max-width: 400px;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(76, 175, 80, 0.1);
    text-align: center;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.modal-title {
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-actions .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 12px 20px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(76, 175, 80, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(76, 175, 80, 0.5);
}