/**
 * SDG Wheel - Styles
 */

.sdg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* --- Desktop View: Wheel --- */
.sdg-wheel-wrapper {
    position: relative;
    width: 700px;
    height: 700px;
    margin: 0 auto;
    display: block;
}

#sdg-wheel {
    width: 100%;
    height: 100%;
}

.sdg-segment {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    transform-origin: 300px 300px;
}

.sdg-segment-active:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.sdg-segment-inactive {
    opacity: 1;
    cursor: default;
}

.sdg-icon-overlay {
    opacity: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sdg-number-text {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sdg-info-desktop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    pointer-events: none;
    z-index: 10;
}

.info-content h2 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #333;
}

.info-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* --- Mobile View --- */
.sdg-mobile-view {
    display: none;
}

/* --- Responsive Breakpoint --- */
@media (max-width: 768px) {
    .sdg-wheel-wrapper {
        display: none;
    }

    .sdg-mobile-view {
        display: block;
        padding: 20px;
    }

    /* Number Buttons Grid */
    .sdg-mobile-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-bottom: 20px;
    }

    .sdg-mobile-button {
        aspect-ratio: 1;
        border: none;
        border-radius: 8px;
        color: white;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    .sdg-mobile-button:active {
        transform: scale(0.95);
    }

    .sdg-mobile-button.active {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    }

    /* Detail Display Area */
    .sdg-mobile-detail {
        margin-top: 20px;
        animation: fadeIn 0.3s ease-in;
    }

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

    .sdg-mobile-detail-content {
        background-color: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    }

    .sdg-mobile-detail-icon {
        padding: 20px;
        background-color: #f9f9f9;
        text-align: center;
    }

    .sdg-mobile-detail-icon img {
        max-width: 150px;
        width: 100%;
        height: auto;
    }

    .sdg-mobile-detail-text {
        padding: 20px;
    }

    .sdg-mobile-detail-text h2 {
        margin: 0 0 10px 0;
        font-size: 20px;
        font-weight: 900;
        color: #333;
    }

    .sdg-mobile-detail-text h3 {
        margin: 0 0 15px 0;
        font-size: 16px;
        font-weight: 700;
        color: #555;
    }

    .sdg-mobile-detail-text p {
        margin: 0;
        font-size: 14px;
        line-height: 1.6;
        color: #666;
    }
}
