/*
Theme Name: Giggiloo-Kadence Child
Template: kadence
Version: 1.0
*/

/* Event date in city archive cards */
.entry-title .giggiloo-event-date {
    display: block;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.35em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Genre color */
.livehbg-event__genres {
    color: #F51F60 !important;
}

/* Genrearkiv */
.gg-genre-header {
    margin-bottom: 2rem;
}

.gg-genre-header h1 {
    margin-bottom: .5rem;
}

.gg-genre-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.gg-genre-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.gg-genre-card__date {
    display: block;
    margin-bottom: .75rem;
    color: #4b5563;
    font-size: .9rem;
    font-weight: 700;
}

.gg-genre-card__title {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.gg-genre-card__title a {
    color: inherit;
    text-decoration: none;
}

.gg-genre-card__title a:hover {
    text-decoration: underline;
}

.gg-genre-card__facts {
    margin-bottom: 1rem;
}

.gg-genre-card__facts p {
    margin: 0 0 .25rem;
}

.gg-genre-card__facts p:first-child {
    font-weight: 600;
}

.gg-genre-card__description {
    margin: 0 0 1rem;
    line-height: 1.6;
}

.gg-genre-card__genres {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 0;
    margin: 0 0 1.25rem;
    list-style: none;
}

.gg-genre-card__genres a {
    display: inline-block;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: #fff0f5;
    color: #a60e40;
    font-size: .85rem;
    text-decoration: none;
}

.gg-genre-card__genres a:hover {
    text-decoration: underline;
}

.gg-genre-card__footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.gg-genre-card__price {
    margin: 0 0 .75rem;
    font-weight: 600;
}

.gg-genre-card__more {
    display: inline-block;
    font-weight: 700;
}

.gg-genre-card a:focus-visible {
    outline: 3px solid #a60e40;
    outline-offset: 4px;
}

@media (max-width: 1024px) {
    .gg-genre-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gg-genre-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Giggiloo: mer gigaffisch i korten */
:is(.giggiloo-card, .gg-genre-card) {
    --gg-accent: #ff2366;
    --gg-paper: #fff5f8;

    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px;
    background: var(--gg-paper);
    color: #171717;
    border: 3px solid #171717;
    border-radius: 24px 24px 8px 24px;
    box-shadow: 7px 7px 0 var(--gg-accent);
    transition: transform .18s ease, box-shadow .18s ease;
}

/* Olika färger skapar rytm i listan */
:is(.giggiloo-card, .gg-genre-card):nth-child(3n + 2) {
    --gg-accent: #f9d928;
    --gg-paper: #fffdeb;
    border-radius: 8px 24px 24px 24px;
}

:is(.giggiloo-card, .gg-genre-card):nth-child(3n) {
    --gg-accent: #50dfcf;
    --gg-paper: #effffb;
    border-radius: 24px 8px 24px 24px;
}

/* Plats för skuggorna */
:is(.giggiloo-event-grid, .gg-genre-grid) {
    gap: 30px;
    padding: 0 9px 10px 0;
}

/* Datum som en liten dekal */
:is(.giggiloo-card__date, .gg-genre-card__date) {
    display: inline-block;
    align-self: flex-start;
    max-width: 100%;
    margin: 0 0 20px;
    padding: 8px 12px;
    background: var(--gg-accent);
    color: #171717;
    border: 2px solid #171717;
    border-radius: 6px;
    box-shadow: 3px 3px 0 #171717;
    font-size: .85rem;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .025em;
    transform: rotate(-2deg);
}

/* Rubrik med affischkänsla */
:is(.giggiloo-card__title, .gg-genre-card__title) {
    margin: 0 0 18px;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

:is(.giggiloo-card__title, .gg-genre-card__title) a {
    color: #171717;
    text-decoration: none;
}

:is(.giggiloo-card__title, .gg-genre-card__title) a:hover {
    text-decoration: underline;
    text-decoration-color: var(--gg-accent);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

/* Fakta och beskrivning får vara lugna */
:is(.giggiloo-card__meta, .gg-genre-card__facts) {
    margin-bottom: 18px;
    color: #171717;
    font-size: .95rem;
    line-height: 1.5;
}

:is(.giggiloo-card__meta, .gg-genre-card__facts) p {
    margin: 0 0 5px;
}

:is(.giggiloo-card__description, .gg-genre-card__description) {
    margin: 0 0 22px;
    color: #292929;
    font-size: 1rem;
    line-height: 1.65;
}

.giggiloo-card__description p:last-child {
    margin-bottom: 0;
}

/* Genre som små etiketter */
:is(.giggiloo-card__genres, .gg-genre-card__genres) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0 0 18px;
    list-style: none;
}

:is(.giggiloo-card__genres, .gg-genre-card__genres) a {
    display: inline-block;
    padding: 4px 10px;
    background: #fff;
    color: #171717;
    border: 2px solid #171717;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
}

:is(.giggiloo-card__genres, .gg-genre-card__genres) a:hover {
    background: var(--gg-accent);
}

/* Rivkant mellan innehåll och länkar */
:is(.giggiloo-card__footer, .gg-genre-card__footer) {
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px dashed #171717;
}

:is(.giggiloo-card__price, .gg-genre-card__price) {
    display: inline-block;
    margin: 0 0 18px;
    padding: 5px 10px;
    background: #171717;
    color: #fff;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 800;
}

.giggiloo-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

/* Tydlig knapp med fysisk känsla */
:is(.giggiloo-card__ticket, .gg-genre-card__more) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    padding: 12px 17px;
    background: var(--gg-accent);
    color: #171717;
    border: 2px solid #171717;
    border-radius: 8px;
    box-shadow: 4px 4px 0 #171717;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

:is(.giggiloo-card__ticket, .gg-genre-card__more):hover {
    background: var(--gg-accent);
    color: #171717;
    box-shadow: 2px 2px 0 #171717;
    transform: translate(2px, 2px);
}

.giggiloo-card__more {
    color: #171717;
    font-weight: 700;
    text-underline-offset: 4px;
}

:is(.giggiloo-card, .gg-genre-card) a:focus-visible {
    outline: 3px solid #171717;
    outline-offset: 5px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    :is(.giggiloo-card, .gg-genre-card):hover {
        transform: translate(-2px, -3px);
        box-shadow: 9px 10px 0 var(--gg-accent);
    }
}

@media (max-width: 640px) {
    :is(.giggiloo-card, .gg-genre-card) {
        padding: 22px;
        box-shadow: 5px 5px 0 var(--gg-accent);
    }
}

@media (prefers-reduced-motion: reduce) {
    :is(.giggiloo-card, .gg-genre-card),
    :is(.giggiloo-card__ticket, .gg-genre-card__more) {
        transition: none;
    }

    :is(.giggiloo-card__ticket, .gg-genre-card__more):hover {
        transform: none;
    }
}

/* H1: giggiloos stora affischrubrik */
h1.giggiloo-hero-title {
    max-width: 1000px;
    margin: 24px 0 40px;
	color: #ff2366;
	text-shadow:
    	2px 2px 0 #171717,
    	4px 4px 0 #f9d928;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.055em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

/* H2 och genreöverskrift: gul överstrykningspenna */
.gg-genre-header :is(h1, h2),
h2.giggiloo-week-title {
    position: relative;
    isolation: isolate;
    display: inline-block;
    max-width: 100%;
    margin: 12px 0 24px;
    color: #171717;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.04em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.gg-genre-header :is(h1, h2)::after,
h2.giggiloo-week-title::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: -.08em;
    right: -.08em;
    bottom: -.04em;
    height: .4em;
    background: #f9d928;
    border-radius: 3px 9px 4px 7px;
    transform: rotate(-2deg);
}

/* Luft mellan genreöverskrift och kort */
.gg-genre-header {
    margin-bottom: 36px;
}

/* Veckans datumrad */
.giggiloo-week-range {
    margin-top: 0;
    font-size: 1rem;
    color: #404040;
}

@media (max-width: 640px) {
    h1.giggiloo-hero-title {
        margin-bottom: 30px;
        text-shadow:
    		1px 1px 0 #171717,
    		3px 3px 0 #f9d928;
    }
}
/* Samma rubrikstil som genrekorten */
.giggiloo-card .giggiloo-card__title {
    margin: 0 0 18px;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.035em;
}

/* Samma antal kolumner som på genresidorna */
.giggiloo-events--cards .giggiloo-event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

@media (max-width: 1024px) {
    .giggiloo-events--cards .giggiloo-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .giggiloo-events--cards .giggiloo-event-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* Veckokort: samma bakgrunder och skuggor som genrekorten */
.giggiloo-events--cards .giggiloo-card {
    --gg-accent: #ff2366;
    --gg-paper: #fff5f8;

    background: var(--gg-paper);
    border: 3px solid #171717;
    border-radius: 24px 24px 8px 24px;
    box-shadow: 7px 7px 0 var(--gg-accent);
}

.giggiloo-events--cards .giggiloo-card:nth-child(3n + 2) {
    --gg-accent: #f9d928;
    --gg-paper: #fffdeb;

    border-radius: 8px 24px 24px 24px;
}

.giggiloo-events--cards .giggiloo-card:nth-child(3n) {
    --gg-accent: #50dfcf;
    --gg-paper: #effffb;

    border-radius: 24px 8px 24px 24px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .giggiloo-events--cards .giggiloo-card:hover {
        transform: translate(-2px, -3px);
        box-shadow: 9px 10px 0 var(--gg-accent);
    }
}
.giggiloo-card:nth-child(3n + 1) .giggiloo-card__date,
.gg-genre-card:nth-child(3n + 1) .gg-genre-card__date {
    color: #fff;
}
/* Helpful alternatives when the local week is empty */
.giggiloo-discovery {
    margin: 24px 0;
}

.giggiloo-discovery > h3 {
    margin-bottom: 12px;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 900;
    line-height: 1.2;
}

.giggiloo-discovery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 28px 0;
}

.giggiloo-discovery-link {
    display: inline-block;
    max-width: 100%;
    padding: 12px 16px;
    background: #f9d928;
    color: #171717;
    border: 2px solid #171717;
    border-radius: 8px;
    box-shadow: 4px 4px 0 #171717;
    font-weight: 800;
    text-decoration: none;
}

.giggiloo-discovery-link:hover {
    color: #171717;
    text-decoration: underline;
}

.giggiloo-discovery-link:focus-visible {
    outline: 3px solid #171717;
    outline-offset: 5px;
}