/**
 * Development Process Component Styles
 *
 * @package RIKAI_Marketing
 * @since 1.0.0
 */

.development-process-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color, #3390d6);
}

/* Process Timeline */
.process-timeline {
    background-color: #ffffff;
    /* max-width: 1000px; */
    margin: 0 auto;
    position: relative;
    padding: 40px;
    filter: var(--filter-drop-shadow);
}

/* Process Step */
.process-step {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--third-border-color);
    align-items: flex-end;
}

.process-step--left-contents {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.process-step--right-contents {
    width: 120px;
    max-width: 120px;
}

.process-step.none-border {
    margin-bottom: 0px;
    border-bottom: 0px;
}

.process-step:last-child::before {
    display: none;
}

.process-step--header,
.process-step--responsible {
    display: flex;
    flex-direction: row;
    justify-items: center;
    align-items: center;
}

.process-step--header-number {
    font-size: 34px;
    font-weight: bolder;
    color: var(--primary-color);
    /* -webkit-text-stroke: 1px var(--primary-color); */
    line-height: 34px;
    margin-right: 15px;
}

.process-step--header-text {
    display: flex;
    flex-direction: column;
    padding: 5px 15px 5px 20px;
    border-left: 1px solid var(--primary-color);
}

.process-step--header-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color, #3390d6);
    white-space: nowrap;
}

.process-step--header-title {
    font-size: 20px;
    font-weight: 700;
    margin-right: 20px;
    white-space: nowrap;
}

.process-step--header-subtitle {
    font-size: 28px;
    font-weight: 900;
    line-height: 33px;
    letter-spacing: 2px;
    color: #ffffff;
    -webkit-text-stroke: 1px var(--primary-color);
}

.process-step--responsible-icon {
    width: 30px;
    height: 30px;
    margin-right: 20px;
}

.process-step--responsible-text {
    font-size: 18px;
    font-weight: 700px;
}

.process-content--note {
    margin-left: 20px;
}

/* Display With Tags */
.process-step--tags {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 8px;
}

.process-step--tags-item {
    height: 120px;
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
}

.process-step--tags-item.bg-blue-light {
    background: var(--dev-process-bg-blue-light);
}

.process-step--tags-item.bg-blue {
    background: var(--dev-process-bg-blue);
}

.process-step--tags-item.bg-blue-deep {
    background: var(--dev-process-bg-blue-deep);
}

.process-step--tags-item--icon {
}

.process-step--tags-item--text {
    display: inline-block;
    padding: 2px 10px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

/* Step Items List */
.process-content--items {
    padding: 0;
    display: flex;
}

.process-content--item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    height: 165px;
    width: 165px;
    background-color: var(--secondary-color-lightest);
}

.process-content--item-image {
    max-width: 100px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.process-content--item-text {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 18px;
}

/* Process Layer (Quality Gates) */
.process-layer {
    margin: 0 0 20px;
    padding: 20px 40px;
    background: var(--secondary-color-lightest);
    display: flex;
    align-items: center;
}

.process-layer--image {
}

.process-layer--content {
    margin-left: 20px;
    border-left: 1px solid var(--primary-color);
    padding-left: 20px;
}

.process-layer--content-title {
    font-size: 22px;
    font-weight: 700;
    position: relative;
}

.process-layer--content-description {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .process-timeline {
        padding: 20px;
    }

    .development-process-header h2 {
        font-size: 32px;
    }

    .process-step {
        flex-direction: column;
        align-items: center;
    }

    .process-step::before {
        left: 36px;
    }

    .process-number {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }

    .process-title {
        font-size: 24px;
    }

    .process-subtitle {
        font-size: 14.4px;
    }

    .process-bullets li {
        font-size: 15.2px;
    }

    .process-layer {
        padding: 24px;
        margin: 32px 0;
    }

    .process-step--left-contents,
    .process-step--right-contents {
        width: 100%;
        max-width: 100%;
    }

    .process-step--left-contents .process-content--items {
        justify-content: center;
        background-color: var(--secondary-color-lightest);
    }

    .process-step--right-contents .process-step--tags {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        margin-top: 20px;
    }

    .process-step--tags-item--text {
        display: none;
    }

    .layer-title {
        font-size: 24px;
    }

    .layer-description {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .process-step {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 40px;
    }

    .process-step::before {
        display: none;
    }

    .process-number {
        width: 64px;
        height: 64px;
        font-size: 24px;
        margin: 0 auto;
    }

    .process-content {
        text-align: center;
        padding-top: 0;
    }

    .process-bullets {
        text-align: left;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .process-layer {
        padding: 20px;
    }

    .process-step--header-subtitle {
        font-size: 16px;
        line-height: 16px;
    }

    .process-step--header-text .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .process-step--tags-item {
        width: 110px;
        height: 110px;
    }

    .process-content--item-image {
        max-width: 60px;
    }
}

/* Animation on scroll (optional enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .process-step,
    .process-layer {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease-out forwards;
    }

    .process-step:nth-child(1) {
        animation-delay: 0.1s;
    }
    .process-step:nth-child(2) {
        animation-delay: 0.2s;
    }
    .process-layer:nth-child(3) {
        animation-delay: 0.3s;
    }
    .process-step:nth-child(4) {
        animation-delay: 0.4s;
    }
    .process-step:nth-child(5) {
        animation-delay: 0.5s;
    }
    .process-step:nth-child(6) {
        animation-delay: 0.6s;
    }
    .process-layer:nth-child(7) {
        animation-delay: 0.7s;
    }
    .process-step:nth-child(8) {
        animation-delay: 0.8s;
    }
    .process-step:nth-child(9) {
        animation-delay: 0.9s;
    }
    .process-step:nth-child(10) {
        animation-delay: 1s;
    }

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

/* Print Styles */
@media print {
    .process-step::before {
        display: none;
    }

    .process-layer {
        page-break-inside: avoid;
        box-shadow: none;
    }

    .process-step {
        page-break-inside: avoid;
    }
}
