/**
 * Play! Trondheim 2026 Festival Page Styles
 * 
 * Responsive promotion page with hero section, value cards, and integrated portal
 * Uses Play! 2026 branding colors and BeTheme-compatible design
 * 
 * @version 1.0
 */

/* ===== ROOT VARIABLES ===== */

:root {
    /* Play! 2026 Brand Colors */
    --pt-fest-purple: #8b5cf6;
    --pt-fest-purple-light: #a78bfa;
    --pt-fest-pink: #ec4899;
    --pt-fest-pink-light: #f472b6;
    --pt-fest-green: #10b981;
    --pt-fest-green-light: #34d399;
    --pt-fest-yellow: #f59e0b;
    --pt-fest-black: #0f172a;
    
    /* Digitools Integration */
    --pt-fest-text: var(--dt-text);
    --pt-fest-bg: var(--dt-bg);
    --pt-fest-card: var(--dt-card);
    --pt-fest-border: var(--dt-border);
}

/* Light Mode Override */
@media (prefers-color-scheme: light) {
    :root {
        --pt-fest-text: #0f172a;
        --pt-fest-bg: #f1f5f9;
        --pt-fest-card: #ffffff;
        --pt-fest-border: #d6dbe0;
    }
}

/* ===== BASE STYLES ===== */

.pt-festival-page {
    width: 100%;
    color: var(--pt-fest-text);
    background: var(--pt-fest-bg);
    font-family: var(--dt-font, 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif);
    line-height: 1.6;
}

.pt-festival-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== HERO SECTION ===== */

.pt-festival-hero {
    position: relative;
    padding: 80px 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #2dd4bf 100%);
    color: white;
    text-align: center;
}

.pt-festival-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.1;
}

.pt-star {
    position: absolute;
    display: inline-block;
}

.pt-star--1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    animation: float 6s ease-in-out infinite;
}

.pt-star--2 {
    width: 100px;
    height: 100px;
    top: 15%;
    right: 8%;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    background: linear-gradient(135deg, #34d399, #f59e0b);
    animation: float 7s ease-in-out 1s infinite;
}

.pt-star--3 {
    width: 140px;
    height: 140px;
    bottom: 10%;
    right: 5%;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    background: linear-gradient(135deg, #f472b6, #a78bfa);
    animation: float 8s ease-in-out 2s infinite;
    opacity: 0.08;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.pt-festival-hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.pt-festival-overline {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.95;
}

.pt-festival-hero__title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.pt-festival-hero__highlight {
    background: linear-gradient(135deg, #fef08a, #fca5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.pt-festival-hero__meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    flex-wrap: wrap;
}

.pt-festival-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.pt-festival-meta-icon {
    font-size: 20px;
}

.pt-festival-hero__tagline {
    font-size: 20px;
    margin-bottom: 40px;
    font-weight: 500;
    opacity: 0.98;
}

.pt-festival-hero__tagline strong {
    font-weight: 700;
    background: linear-gradient(135deg, #fef08a, #fca5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pt-festival-hero__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */

.pt-festival-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 200ms ease;
    text-decoration: none;
    display: inline-block;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pt-festival-btn--primary {
    background: white;
    color: #8b5cf6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.pt-festival-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    background: #f1f5f9;
}

.pt-festival-btn--primary:active {
    transform: translateY(0);
}

.pt-festival-btn--secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.pt-festival-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* ===== VALUE PROPOSITION SECTION ===== */

.pt-festival-values {
    padding: 80px 20px;
    background: var(--pt-fest-card);
    border-top: 2px solid var(--pt-fest-border);
}

.pt-festival-section-title {
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pt-festival-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.pt-festival-value-card {
    padding: 40px;
    border-radius: 16px;
    background: var(--pt-fest-bg);
    border: 2px solid var(--pt-fest-border);
    text-align: center;
    transition: all 300ms ease;
    display: flex;
    flex-direction: column;
}

.pt-festival-value-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
    transform: translateY(-4px);
}

.pt-festival-value-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.pt-festival-value-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--pt-fest-text);
}

.pt-festival-value-card p {
    font-size: 15px;
    color: var(--pt-fest-text);
    opacity: 0.85;
    line-height: 1.7;
    flex: 1;
}

/* ===== PRODUCT SHOWCASE SECTION ===== */

.pt-festival-showcase {
    padding: 80px 20px;
    background: var(--pt-fest-bg);
}

.pt-festival-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pt-festival-product {
    padding: 30px;
    border-radius: 12px;
    background: var(--pt-fest-card);
    border: 2px solid var(--pt-fest-border);
    text-align: center;
    transition: all 200ms ease;
}

.pt-festival-product:hover {
    border-color: #ec4899;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.1);
    transform: translateY(-2px);
}

.pt-festival-product-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.pt-festival-product h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--pt-fest-text);
}

.pt-festival-product p {
    font-size: 14px;
    color: var(--pt-fest-text);
    opacity: 0.7;
}

.pt-festival-showcase-cta {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 12px;
    border: 2px dashed var(--pt-fest-border);
}

.pt-festival-showcase-cta p {
    font-size: 16px;
    font-weight: 600;
    color: var(--pt-fest-text);
    margin: 0;
}

/* ===== PORTAL SECTION ===== */

.pt-festival-portal-wrapper {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05));
    border-top: 4px solid #8b5cf6;
    border-bottom: 4px solid #ec4899;
}

.pt-festival-portal-header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.pt-festival-portal-header h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pt-festival-portal-header p {
    font-size: 16px;
    color: var(--pt-fest-text);
    opacity: 0.85;
    margin: 0;
}

.pt-festival-portal-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== FOOTER SECTION ===== */

.pt-festival-footer-section {
    padding: 60px 20px 30px;
    background: var(--pt-fest-card);
    border-top: 2px solid var(--pt-fest-border);
}

.pt-festival-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.pt-festival-footer-column h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--pt-fest-text);
}

.pt-festival-footer-column p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--pt-fest-text);
    opacity: 0.8;
    margin-bottom: 16px;
}

.pt-festival-footer-link {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    transition: color 200ms ease;
    display: inline-block;
}

.pt-festival-footer-link:hover {
    color: #ec4899;
    text-decoration: underline;
}

.pt-festival-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pt-festival-footer-links li {
    margin-bottom: 8px;
}

.pt-festival-footer-links a {
    color: var(--pt-fest-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 200ms ease;
    opacity: 0.8;
}

.pt-festival-footer-links a:hover {
    color: #8b5cf6;
    opacity: 1;
}

.pt-festival-social-links {
    display: flex;
    gap: 12px;
}

.pt-festival-social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pt-fest-bg);
    border-radius: 8px;
    font-size: 18px;
    text-decoration: none;
    transition: all 200ms ease;
    border: 2px solid var(--pt-fest-border);
}

.pt-festival-social-links a:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

.pt-festival-footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--pt-fest-border);
    text-align: center;
}

.pt-festival-footer-bottom p {
    font-size: 13px;
    color: var(--pt-fest-text);
    opacity: 0.6;
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .pt-festival-hero {
        padding: 60px 20px;
    }

    .pt-festival-hero__title {
        font-size: 32px;
    }

    .pt-festival-hero__meta {
        gap: 16px;
    }

    .pt-festival-hero__tagline {
        font-size: 16px;
    }

    .pt-festival-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .pt-star--1 {
        width: 80px;
        height: 80px;
    }

    .pt-star--2 {
        width: 60px;
        height: 60px;
    }

    .pt-star--3 {
        width: 90px;
        height: 90px;
    }

    .pt-festival-values,
    .pt-festival-showcase,
    .pt-festival-portal-wrapper {
        padding: 60px 20px;
    }

    .pt-festival-section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .pt-festival-values-grid,
    .pt-festival-products-grid {
        gap: 20px;
    }

    .pt-festival-value-card {
        padding: 30px;
    }

    .pt-festival-portal-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .pt-festival-hero {
        padding: 40px 16px;
    }

    .pt-festival-hero__title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .pt-festival-hero__meta {
        flex-direction: column;
        gap: 12px;
    }

    .pt-festival-meta-item {
        padding: 8px 12px;
        font-size: 14px;
    }

    .pt-festival-hero__tagline {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .pt-festival-hero__buttons {
        gap: 12px;
    }

    .pt-festival-btn {
        width: 100%;
    }

    .pt-festival-star--1,
    .pt-star--2,
    .pt-star--3 {
        display: none;
    }

    .pt-festival-values,
    .pt-festival-showcase,
    .pt-festival-portal-wrapper {
        padding: 40px 16px;
    }

    .pt-festival-section-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .pt-festival-values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pt-festival-value-card {
        padding: 24px;
    }

    .pt-festival-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pt-festival-product {
        padding: 20px;
    }

    .pt-festival-product-icon {
        font-size: 32px;
    }

    .pt-festival-product h3 {
        font-size: 14px;
    }

    .pt-festival-product p {
        font-size: 12px;
    }

    .pt-festival-portal-header h2 {
        font-size: 20px;
    }

    .pt-festival-footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== DARK MODE SUPPORT ===== */

@media (prefers-color-scheme: dark) {
    .pt-festival-hero {
        background: linear-gradient(135deg, #5b21b6 0%, #831843 50%, #0d4a4a 100%);
    }

    .pt-festival-btn--secondary {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .pt-festival-btn--secondary:hover {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .pt-festival-value-card:hover {
        box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
    }
}
