/* ปุ่มและธีม action-links หน้า /intro */

.action-links {
    --intro-gold: #c5a028;
    --intro-gold-light: #e8d48b;
    --intro-gold-muted: rgba(197, 160, 40, 0.55);
    --intro-cream: #faf6eb;
    --tone-primary: var(--home-primary, #1687c2);
    --tone-primary-hover: var(--home-primary-hover, #0f5ea6);

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    margin-bottom: 0.25rem;
    position: relative;
    padding: 1.25rem 0.5rem 1.1rem;
}

.action-links__sign {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.action-links .btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    min-height: 2.75rem;
    border-radius: 0.5rem;
    font-family: inherit;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.35;
    padding: 0.55rem 1.15rem;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.action-links .btn-intro-enter {
    font-weight: 500;
}

.action-links .btn:hover {
    transform: translateY(-1px);
}

.action-links .btn-primary {
    color: #fff;
    background: var(--tone-primary);
    border-color: var(--tone-primary);
}

.action-links .btn-primary:hover {
    color: #fff;
    background: var(--tone-primary-hover);
    border-color: var(--tone-primary-hover);
}

.action-links--default {
    padding-top: 0.5rem;
}

.action-links--default .action-links-mark,
.action-links--default::before,
.action-links--default::after {
    display: none;
}

.action-links--default .btn-outline-secondary {
    color: #d7dee7;
    border-color: rgba(71, 85, 105, 0.45);
    background: rgba(15, 23, 42, 0.28);
    text-shadow: 0 1px 1px rgba(15, 23, 42, 0.35);
}

.action-links--default .btn-outline-secondary:hover {
    color: #eef2f7;
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(100, 116, 139, 0.65);
}

.action-links--royal,
.action-links--children-day,
.action-links--songkran,
.action-links--new-year {
    padding: 1.6rem 0.5rem 1.35rem;
}

.action-links--royal::before,
.action-links--royal::after,
.action-links--children-day::before,
.action-links--children-day::after,
.action-links--songkran::before,
.action-links--songkran::after,
.action-links--new-year::before,
.action-links--new-year::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 720px);
    height: 1px;
    pointer-events: none;
}

.action-links--royal::before,
.action-links--royal::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--intro-gold-muted) 14%,
        var(--intro-gold) 50%,
        var(--intro-gold-muted) 86%,
        transparent 100%
    );
}

.action-links--royal::before {
    top: 0.65rem;
}

.action-links--royal::after {
    bottom: 0;
    opacity: 0.75;
}

.action-links-mark {
    position: absolute;
    top: calc(0.65rem - 4px);
    left: 50%;
    z-index: 1;
    width: 8px;
    height: 8px;
    transform: translateX(-50%) rotate(45deg);
    background: linear-gradient(145deg, var(--intro-gold-light), var(--intro-gold));
    border: 1px solid rgba(255, 245, 210, 0.45);
    box-shadow: 0 0 10px rgba(197, 160, 40, 0.35);
    pointer-events: none;
}

.action-links--royal .btn-outline-secondary,
.action-links--children-day .btn-outline-secondary,
.action-links--songkran .btn-outline-secondary,
.action-links--new-year .btn-outline-secondary {
    color: var(--intro-cream);
    border-color: var(--intro-gold);
    background: rgba(8, 8, 8, 0.32);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.action-links--royal .btn-outline-secondary:hover,
.action-links--children-day .btn-outline-secondary:hover,
.action-links--songkran .btn-outline-secondary:hover,
.action-links--new-year .btn-outline-secondary:hover {
    color: #fff;
    background: rgba(197, 160, 40, 0.18);
    border-color: var(--intro-gold-light);
}

.action-links--royal .btn-primary {
    border: 1px solid var(--intro-gold);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 3px 14px rgba(0, 0, 0, 0.2);
}

.action-links--children-day::before,
.action-links--children-day::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 196, 92, 0.45) 18%,
        rgba(130, 210, 255, 0.55) 50%,
        rgba(255, 150, 190, 0.45) 82%,
        transparent 100%
    );
    height: 2px;
}

.action-links--children-day::before {
    top: 0.65rem;
}

.action-links--children-day::after {
    bottom: 0;
}

.action-links--children-day .action-links-mark {
    width: 10px;
    height: 10px;
    top: calc(0.65rem - 5px);
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(145deg, #ffe566, #ffb347);
    border-color: rgba(255, 255, 255, 0.65);
}

.action-links--songkran::before,
.action-links--songkran::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(56, 189, 248, 0.35) 20%,
        rgba(14, 165, 233, 0.65) 50%,
        rgba(56, 189, 248, 0.35) 80%,
        transparent 100%
    );
}

.action-links--songkran::before {
    top: 0.65rem;
}

.action-links--songkran::after {
    bottom: 0;
    opacity: 0.8;
}

.action-links--songkran .action-links-mark {
    border-radius: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, #53b8f7, #159bef);
}

.action-links--songkran .btn-outline-secondary {
    border-color: #38bdf8;
}

.action-links--new-year::before,
.action-links--new-year::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(220, 38, 38, 0.45) 18%,
        var(--intro-gold) 50%,
        rgba(220, 38, 38, 0.45) 82%,
        transparent 100%
    );
}

.action-links--new-year::before {
    top: 0.65rem;
}

.action-links--new-year::after {
    bottom: 0;
    opacity: 0.85;
}

.action-links--mourning {
    padding-top: 0.5rem;
}

.action-links--mourning .action-links-mark,
.action-links--mourning::before,
.action-links--mourning::after {
    display: none;
}

.action-links--mourning .btn-outline-secondary {
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.25);
}

.action-links--mourning .btn-primary {
    filter: saturate(0.85);
}

.royal-wish-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (max-width: 767px) {
    .action-links {
        display: grid;
        grid-template-columns: max-content;
        justify-content: center;
        justify-items: stretch;
        width: max-content;
        max-width: calc(100% - 1rem);
        margin-inline: auto;
        padding: 1rem 0.75rem 0.85rem;
        gap: 0.7rem;
    }

    .action-links__sign {
        display: contents;
    }

    .action-links .btn {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        min-height: 2.6rem;
        white-space: nowrap;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .action-links .btn {
        transition: none;
    }

    .action-links .btn:hover {
        transform: none;
    }
}
