/* static/css/infographics.css */

/* Common Styles */
.infographic-container {
    margin: 40px 0;
    padding: 30px;
    border-radius: 10px;
    background-color: #f8f9fa;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.infographic-header {
    text-align: center;
    margin-bottom: 30px;
}

.infographic-header h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.infographic-header .subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.infographic-header .description {
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* Design 1 - Horizontal Steps */
.design1 .infographic-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.design1 .step-item {
    flex: 1 1 300px;
    max-width: 350px;
    padding: 20px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.design1 .step-item:hover {
    transform: translateY(-5px);
}

.design1 .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    position: absolute;
    top: -15px;
    left: 20px;
}

.design1 .step-content {
    margin-top: 15px;
}

.design1 .step-content h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.design1 .step-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 50px;
    color: #ff0000;
}

.design1 .step-icon img {
    width: 30px;
    height: 30px;
}

/* Design 2 - Vertical Timeline */
.design2 .infographic-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.design2 .timeline-item {
    padding-left: 60px;
    margin-bottom: 40px;
    position: relative;
}

.design2 .timeline-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

.design2 .timeline-connector {
    position: absolute;
    width: 4px;
    height: calc(100% + 40px);
    left: 23px;
    top: 50px;
    z-index: 1;
}

.design2 .timeline-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.design2 .timeline-content h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.design2 .timeline-icon {
    float: right;
    font-size: 24px;
    margin-left: 15px;
}

.design2 .timeline-icon img {
    width: 30px;
    height: 30px;
}

/* Design 3 - Circular */
.design3 .infographic-circular {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto;
}

.design3 .center-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: #ff0000;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    font-weight: bold;
    z-index: 10;
}

.design3 .circular-item {
    position: absolute;
    width: 200px;
    top: 50%;
    left: 50%;
    transform: rotate(var(--rotation)) translateX(250px) rotate(calc(-1 * var(--rotation)));
}

.design3 .circular-content {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

.design3 .circular-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    position: absolute;
    top: -15px;
    left: 15px;
}

.design3 .circular-content h4 {
    margin: 15px 0 10px;
    font-size: 16px;
}

.design3 .circular-content p {
    font-size: 14px;
}

.design3 .circular-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
}

.design3 .circular-icon img {
    width: 24px;
    height: 24px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .design1 .infographic-steps {
        flex-direction: column;
        align-items: center;
    }

    .design1 .step-item {
        width: 100%;
        max-width: 100%;
    }

    .design2 .infographic-timeline {
        padding-left: 20px;
    }

    .design2 .timeline-item {
        padding-left: 40px;
    }

    .design2 .timeline-circle {
        width: 40px;
        height: 40px;
    }

    .design2 .timeline-connector {
        left: 20px;
    }

    .design3 .infographic-circular {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .design3 .center-circle {
        position: relative;
        margin: 0 auto 30px;
        transform: none;
        top: 0;
        left: 0;
    }

    .design3 .circular-item {
        position: relative;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 20px;
        transform: none;
        top: 0;
        left: 0;
    }
}