/* ============================================
   Rota SSS Aracı – Styles (Hardened)
   ============================================ */

.rota-sss-wrapper {
    max-width: 720px;
    margin: 0 auto;
    font-family: inherit;
    /* Performance: layout isolation */
    contain: layout style;
}

/* ── Item Card ── */
.rota-sss-item {
    border: 1.5px solid #d8d8e8;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    /* Layered effect: blue accent shadow on right + bottom */
    box-shadow: 3px 3px 0 0 #3B3FBD;
}

.rota-sss-item + .rota-sss-item {
    margin-top: 12px;
}

/* No hover effect on item */

/* ── Header Button ── */
.rota-sss-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 22px;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    cursor: pointer;
    gap: 16px;
    outline: none;
    text-align: left;
    /* Reset Elementor/theme button overrides */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font: inherit;
    color: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: none;
    box-shadow: none !important;
    margin: 0;
    border-radius: 0;
}

/* Override tema hover/focus/active renklerini engelle */
.rota-sss-header:hover,
.rota-sss-header:focus,
.rota-sss-header:active {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    border-color: transparent !important;
    outline: none;
}

.rota-sss-item:hover {
    background: #fff !important;
    background-color: #fff !important;
}

.rota-sss-header:focus-visible {
    outline: 2px solid #3B3FBD;
    outline-offset: -2px;
    border-radius: 10px;
}

/* ── Title ── */
.rota-sss-title-text {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    flex: 1;
}

.rota-sss-number {
    font-weight: 700;
    margin-right: 4px;
}

/* ── Icon Circle ── */
.rota-sss-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background-color: #3B3FBD;
    flex-shrink: 0;
}

.rota-sss-icon svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    display: block;
}

/* Icon toggle: show plus by default, minus when active */
/* Kapalı: + göster, − gizle */
.rota-sss-icon-minus {
    display: none !important;
}

.rota-sss-icon-plus {
    display: block !important;
}

/* Açık: − göster, + gizle */
.rota-sss-active .rota-sss-icon-minus {
    display: block !important;
}

.rota-sss-active .rota-sss-icon-plus {
    display: none !important;
}

/* No hover scale on icon */

/* ── Body / Content Area ── */
.rota-sss-body-wrap {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.35s ease;
    /* Performance: hint browser about animated properties */
    will-change: max-height, opacity;
}

.rota-sss-active .rota-sss-body-wrap {
    max-height: 1000px;
    opacity: 1;
}

.rota-sss-body {
    padding: 0 22px 20px 22px;
    font-size: 14px;
    line-height: 1.7;
    color: #4a4a68;
}

.rota-sss-body p {
    margin: 0 0 8px 0;
}

.rota-sss-body p:last-child {
    margin-bottom: 0;
}

.rota-sss-body strong {
    color: #1a1a2e;
}

/* Links inside content — theme override protection */
.rota-sss-body a {
    color: #3B3FBD !important;
    text-decoration: underline;
}

.rota-sss-body a:hover {
    opacity: 0.8;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .rota-sss-wrapper {
        max-width: 100%;
    }

    .rota-sss-header {
        padding: 14px 16px;
    }

    .rota-sss-title-text {
        font-size: 14px;
    }

    .rota-sss-body {
        padding: 0 16px 16px 16px;
        font-size: 13px;
    }

    .rota-sss-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .rota-sss-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* ── Reduced motion preference ── */
@media (prefers-reduced-motion: reduce) {
    .rota-sss-body-wrap {
        transition: none;
    }

    .rota-sss-icon {
        transition: none;
    }

    .rota-sss-item {
        transition: none;
    }
}
