/* =========================================================
   Shrang Information Pages
   File belongs to:
   Plugin: sharang-music-generator
   Path: assets/css/info-pages.css

   Purpose:
   Styles How It Works, FAQs, Privacy Policy, Terms,
   and other Shrang information/support pages.
   ========================================================= */

.shrang-info-page {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: min(900px, calc(100% - 24px));
    margin: 26px auto 42px;
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(240, 216, 206, 0.95);
    border-radius: 24px;
    background:
        radial-gradient(circle at 0% 0%, rgba(250, 84, 32, 0.10), transparent 34%),
        radial-gradient(circle at 100% 4%, rgba(124, 58, 237, 0.065), transparent 30%),
        radial-gradient(circle at 88% 100%, rgba(20, 184, 166, 0.055), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fff8f2 100%);
    box-shadow: 0 16px 38px rgba(17, 17, 17, 0.055);
}

.shrang-info-page::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #fa5420 0%, #ff7a45 45%, #7c3aed 100%);
}

.shrang-info-page * {
    box-sizing: border-box;
}

.shrang-info-page > * {
    position: relative;
    z-index: 1;
}

.shrang-info-page h1 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #111111;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.045em;
    text-transform: none !important;
}

.shrang-info-page h2 {
    margin-top: 28px;
    margin-bottom: 10px;
    padding-top: 2px;
    color: #111111;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.28;
    letter-spacing: -0.02em;
    text-transform: none !important;
}

.shrang-info-page h2::before {
    content: "";
    display: block;
    width: 42px;
    height: 5px;
    margin-bottom: 11px;
    border-radius: 999px;
    background: #fa5420;
}

.shrang-info-page h2:nth-of-type(2n)::before {
    background: #7c3aed;
}

.shrang-info-page h2:nth-of-type(3n)::before {
    background: #14b8a6;
}

.shrang-info-page p {
    color: #3e3733;
    font-size: 16px;
    line-height: 1.68;
}

.shrang-info-page ul,
.shrang-info-page ol {
    margin: 14px 0 18px 0;
    padding: 14px 18px 14px 34px;
    border: 1px solid rgba(240, 216, 206, 0.82);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.72);
    color: #3e3733;
    line-height: 1.65;
}

.shrang-info-page li {
    margin-bottom: 8px;
}

.shrang-info-page li:last-child {
    margin-bottom: 0;
}

.shrang-info-page a {
    color: #111111;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.shrang-info-page a:hover {
    color: #fa5420;
}

.shrang-info-page strong {
    color: #111111;
    font-weight: 900;
}

.shrang-info-page pre {
    overflow-x: auto;
    max-width: 100%;
    margin: 16px 0;
    padding: 16px;
    border: 1px solid rgba(240, 216, 206, 0.95);
    border-radius: 15px;
    background:
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.055), transparent 34%),
        #ffffff;
    color: #222222;
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

/* FAQ/details support if used later */
.shrang-info-page details {
    margin: 12px 0;
    overflow: hidden;
    border: 1px solid rgba(240, 216, 206, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
}

.shrang-info-page summary {
    cursor: pointer;
    padding: 13px 15px;
    color: #111111;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
    list-style: none;
}

.shrang-info-page summary::-webkit-details-marker {
    display: none;
}

.shrang-info-page summary::after {
    content: "▾";
    float: right;
    color: #555555;
    font-size: 13px;
    line-height: 1;
}

.shrang-info-page details[open] summary {
    border-bottom: 1px solid rgba(240, 216, 206, 0.95);
    background: #fff8f2;
}

.shrang-info-page details[open] summary::after {
    content: "▴";
}

.shrang-info-page details > *:not(summary) {
    padding-right: 15px;
    padding-left: 15px;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 700px) {
    .shrang-info-page {
        max-width: calc(100% - 16px);
        margin: 16px auto 30px;
        padding: 22px;
        border-radius: 20px;
    }

    .shrang-info-page h1 {
        margin-bottom: 14px;
        font-size: 32px;
    }

    .shrang-info-page h2 {
        margin-top: 24px;
        font-size: 20px;
    }

    .shrang-info-page p {
        font-size: 14.5px;
        line-height: 1.58;
    }

    .shrang-info-page ul,
    .shrang-info-page ol {
        padding: 12px 14px 12px 28px;
        border-radius: 15px;
        font-size: 14px;
        line-height: 1.55;
    }

    .shrang-info-page summary {
        padding: 12px 13px;
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .shrang-info-page {
        max-width: calc(100% - 12px);
        padding: 18px;
        border-radius: 18px;
    }

    .shrang-info-page h1 {
        font-size: 30px;
    }

    .shrang-info-page h2 {
        font-size: 19px;
    }
}