/* Island Boundaries Game Styles */

#pk-island-game {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Welcome Screen */
.island-welcome {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    animation: fadeIn 0.6s ease-in;
}

.island-welcome h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.island-welcome p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.island-start-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.island-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Progress Bar */
.island-progress {
    margin-bottom: 30px;
}

/* Live Visualization */
.island-live-visualization {
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in;
}

.island-live-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
}

.island-live-visualization svg {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    transition: all 0.5s ease;
}

.island-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.island-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.4s ease;
    position: relative;
}

.island-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.island-progress-text {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}

/* Question Container */
.island-question {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease-out;
}

.island-question-title {
    color: #667eea;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.island-question-text {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.5;
    font-weight: 500;
}

/* Options */
.island-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.island-option {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.island-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.island-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateX(5px);
}

.island-option:hover::before {
    left: 100%;
}

.island-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.island-option-label {
    font-weight: 600;
    color: #667eea;
    margin-right: 10px;
    font-size: 1.1rem;
}

.island-option.selected .island-option-label {
    color: white;
}

.island-option-text {
    font-size: 1rem;
    line-height: 1.5;
}

/* Navigation Buttons */
.island-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.island-nav-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.island-back-btn {
    background: #e0e0e0;
    color: #666;
}

.island-back-btn:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.island-back-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.island-next-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.island-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.island-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results Screen */
.island-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease-in;
}

.island-results h2 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
}

.island-visualization {
    margin: 40px 0;
    padding: 20px;
    background: white;
    border-radius: 20px;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.island-visualization svg {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.island-type {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin: 30px 0 20px 0;
    text-align: center;
}

.island-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    text-align: left;
}

.island-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.island-stat {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.island-stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.island-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.island-restart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-top: 20px;
}

.island-restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .island-welcome h1 {
        font-size: 1.8rem;
    }

    .island-welcome p {
        font-size: 1rem;
    }

    .island-question {
        padding: 25px 20px;
    }

    .island-question-text {
        font-size: 1.2rem;
    }

    .island-option {
        padding: 15px 18px;
    }

    .island-navigation {
        flex-direction: column;
    }

    .island-nav-btn {
        width: 100%;
    }

    .island-results h2 {
        font-size: 1.8rem;
    }

    .island-stats {
        grid-template-columns: 1fr;
    }
}
