@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
    --primary-color: #ff3e6c;
    --primary-gradient-start: #ff9e00;
    --primary-gradient-end: #ff3e6c;
    --secondary: #00d2ff;
    --dark: #1a1a2e;
    --dark-light: #2a2a40;
    --light: #ffffff;
    --gray: #8a8aa3;
    --accent-yellow: #ffd600;
    --accent-green: #4dff00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--dark-light);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

h1 {
    color: var(--secondary);
    font-size: 2.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.subtitle {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 500;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background-color: var(--dark);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-label {
    font-size: 0.9rem;
    color: var(--gray);
}

.status-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary);
}

.game-area {
    margin-bottom: 20px;
}

.scene {
    background-color: var(--dark);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    min-height: 200px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--primary-color);
}

.scene-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.scene-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--light);
}

.actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.action-btn {
    background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 62, 108, 0.3);
}

.action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 62, 108, 0.4);
}

.events {
    margin-top: 25px;
    padding: 15px;
    background-color: var(--dark);
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-top: 3px solid var(--secondary);
}

.event {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.event:last-child {
    border-bottom: none;
}

.character-info {
    margin-top: 25px;
    background-color: var(--dark);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tabs {
    display: flex;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.tab {
    padding: 10px 20px;
    background-color: var(--dark-light);
    cursor: pointer;
    border-radius: 50px;
    margin-right: 5px;
    margin-bottom: 5px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--gray);
}

.tab.active {
    background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
    color: white;
    box-shadow: 0 5px 15px rgba(255, 62, 108, 0.3);
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: var(--dark-light);
    border-radius: 15px;
    margin-top: 5px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.progress-bar {
    height: 10px;
    background-color: var(--dark);
    border-radius: 50px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--secondary), var(--primary-color));
    border-radius: 50px;
}

.attribute {
    margin-bottom: 15px;
}

.attribute-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: 500;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--dark-light);
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-left: 5px solid var(--secondary);
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.random-event-modal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.random-event-content {
    background-color: var(--dark-light);
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-left: 5px solid var(--primary-color);
    animation: slideIn 0.5s;
}

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

.event-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.event-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
    color: var(--light);
}

.event-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.event-option-btn {
    background-color: var(--dark);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    text-align: left;
    font-weight: 500;
}

.event-option-btn:hover {
    background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 62, 108, 0.3);
}

.job-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.job-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    background-color: var(--dark);
    transition: all 0.3s ease;
}

.job-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.job-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.job-description {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--light);
}

.job-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 15px;
}

/* Loader styles */
.loader-container {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.loader {
    border: 5px solid var(--dark-light);
    border-top: 5px solid var(--primary-color);
    border-right: 5px solid var(--secondary);
    border-bottom: 5px solid var(--accent-yellow);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
}

.loader-text {
    color: white;
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    background: linear-gradient(to right, var(--secondary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Responsive styles */
@media (max-width: 768px) {
    .actions {
        grid-template-columns: 1fr;
    }
    
    .status-bar {
        flex-wrap: wrap;
    }
    
    .status-item {
        width: 50%;
        margin-bottom: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    .scene-title {
        font-size: 1.3rem;
    }

    .event-title {
        font-size: 1.5rem;
    }
}
