/* Custom CSS for DevOpsDays Zurich */

/* Color Palette Variables */
:root {
    --indigo-dye: #205474;
    --black: #000000;
    --cerulean: #1C80AA;
    --rich-black: #0A191B;
    --rich-black-2: #0A1819;
}

/* Sticky Navigation */
header {
    position: -webkit-sticky !important;
    /* Safari */
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background-color: white !important;
    transition: box-shadow 0.3s ease;
}

/* Add shadow when scrolled */
header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Sponsor Logo Styling - Uniform Sizes with Clear Hierarchy */
[data-sponsor-tier] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

[data-sponsor-tier="gold"] {
    gap: 2rem;
}

[data-sponsor-tier="bronze"],
[data-sponsor-tier="partner"] {
    gap: 1rem;
}

.sponsor-logo-container {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    --tile-size: clamp(8.75rem, 22vw, 11.5rem);
    width: var(--tile-size);
    aspect-ratio: 1 / 1;
}

[data-sponsor-tier="gold"] .sponsor-logo-container {
    --tile-size: clamp(9.25rem, 24vw, 13.5rem);
}

[data-sponsor-tier="silver"] .sponsor-logo-container,
[data-sponsor-tier="event"] .sponsor-logo-container,
[data-sponsor-tier="coffee"] .sponsor-logo-container {
    --tile-size: clamp(8.75rem, 24vw, 12rem);
}

[data-sponsor-tier="bronze"] .sponsor-logo-container {
    --tile-size: clamp(8.25rem, 20vw, 10.5rem);
}

[data-sponsor-tier="community"] .sponsor-logo-container,
[data-sponsor-tier="partner"] .sponsor-logo-container {
    --tile-size: clamp(7.75rem, 18vw, 9.75rem);
}

.sponsor-logo-container:hover {
    border-color: var(--cerulean);
    box-shadow: 0 4px 12px rgba(28, 128, 170, 0.1);
    transform: translateY(-2px);
}

.sponsor-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Gold - Largest */
.sponsor-logo-gold {
    max-width: 180px;
}

/* Silver, Event, Coffee - Medium */
.sponsor-logo-silver {
    max-width: 150px;
}

.sponsor-logo-event {
    max-width: 150px;
}

.sponsor-logo-coffee {
    max-width: 150px;
}

/* Bronze, Community - Smaller */
.sponsor-logo-bronze {
    max-width: 120px;
}

.sponsor-logo-community {
    max-width: 110px;
}

/* Mobile responsive grid layouts for sponsors */
@media (max-width: 768px) {
    .sponsor-logo-gold {
        max-width: 140px;
    }

    .sponsor-logo-silver,
    .sponsor-logo-event,
    .sponsor-logo-coffee {
        max-width: 120px;
    }

    .sponsor-logo-bronze {
        max-width: 100px;
    }

    .sponsor-logo-community {
        max-width: 90px;
    }

    /* Centered layout for mobile */
    [data-sponsor-tier="gold"],
    [data-sponsor-tier="silver"],
    [data-sponsor-tier="event"],
    [data-sponsor-tier="coffee"],
    [data-sponsor-tier="bronze"],
    [data-sponsor-tier="community"],
    [data-sponsor-tier="partner"] {
        justify-content: center !important;
        gap: 1rem !important;
    }
}

/* Fix spacing between sections */
article>div>div>div {
    margin-bottom: 2rem;
}

/* Ensure consistent spacing before sponsor sections */
section.py-8 {
    margin-top: 3rem;
}

/* Prose styling for content pages */
.prose {
    color: var(--rich-black);
    max-width: none;
}

.prose h1 {
    color: var(--indigo-dye);
    font-weight: 800;
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.prose h2 {
    color: var(--indigo-dye);
    font-weight: 700;
    font-size: 1.875rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    /*   border-bottom: 2px solid var(--cerulean);*/
    padding-bottom: 0.5rem;
}

.prose h3 {
    color: var(--cerulean);
    font-weight: 600;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

/* Remove top margin from first element to align with image */
.prose>*:first-child {
    margin-top: 0;
}

.prose ul,
.prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
    list-style-position: outside;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.prose a {
    color: var(--cerulean);
    text-decoration: none;
}

.prose a:hover {
    color: var(--indigo-dye);
    text-decoration: underline;
}

.prose blockquote {
    border-left: 4px solid var(--cerulean);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--rich-black-2);
}

.prose code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.prose pre {
    background-color: var(--rich-black);
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.prose th,
.prose td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

.prose th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .prose h1 {
        font-size: 1.875rem;
    }

    .prose h2 {
        font-size: 1.5rem;
    }

    .prose h3 {
        font-size: 1.25rem;
    }
}

/* Navigation dropdown improvements */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:visible {
    visibility: visible;
}

/* Mobile menu styling for better readability */
#mobile-menu {
    background-color: white;
}

#mobile-menu a {
    white-space: nowrap;
}

/* Ensure mobile menu buttons have proper contrast */
#mobile-menu a[style*="background-color"] {
    color: white !important;
}

/* Cookie consent styling */
#cc-main {
    z-index: 9999 !important;
}

/* Print styles */
@media print {

    .no-print,
    header,
    footer,
    nav {
        display: none !important;
    }

    .prose {
        font-size: 12pt;
        line-height: 1.5;
    }

    .prose a {
        color: inherit;
        text-decoration: none;
    }

    .prose a:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--cerulean);
    outline-offset: 2px;
}

/* Ensure all button-like links maintain proper contrast */
a.border-2.border-white.text-white {
    /* Enhance text shadow for better readability on gradient backgrounds */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

a.bg-white {
    /* Ensure dark text on white buttons */
    color: var(--indigo-dye) !important;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--rich-black);
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .prose {
        color: var(--black);
    }

    .prose h1,
    .prose h2,
    .prose h3 {
        color: var(--black);
    }

    .prose a {
        color: var(--cerulean);
        text-decoration: underline;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* CTA Button (override if needed) */
.bg-blue-600,
.hover\:bg-blue-700:hover {
    background-color: var(--cerulean) !important;
}

.text-blue-600,
.hover\:text-blue-800:hover {
    color: var(--cerulean) !important;
}

/* Custom button styles for main CTA buttons */
.btn-primary {
    background-color: white;
    color: var(--cerulean);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: #f3f4f6;
    color: var(--indigo-dye);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    padding: 0.75rem 2rem;
    border: 2px solid white;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--indigo-dye);
}

/* Hero gradient utility class */
.hero-gradient {
    background: linear-gradient(135deg, var(--cerulean), var(--indigo-dye));
}

/* Additional color overrides for comprehensive styling */
.bg-blue-50 {
    background: linear-gradient(135deg, var(--cerulean), var(--indigo-dye)) !important;
}

.text-blue-700 {
    color: var(--indigo-dye) !important;
}

.border-blue-500 {
    border-color: var(--cerulean) !important;
}

/* Ensure all heading colors are consistent */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--indigo-dye);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: var(--indigo-dye);
}

/* Link styling consistency */
a:not(.btn-primary):not(.btn-secondary):not(.border-2):not(.bg-white):not(.text-white) {
    color: var(--cerulean);
    transition: color 0.3s ease;
}

a:not(.btn-primary):not(.btn-secondary):not(.border-2):not(.bg-white):not(.text-white):hover {
    color: var(--indigo-dye);
}

/* Video embed styling */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
}

/* Stats container styling */
.stats-title {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 0;
    background: none;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--cerulean);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--indigo-dye);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile responsive adjustments for stats */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }
}

/* Breadcrumb navigation styling */
.breadcrumbs a {
    color: white !important;
}

.breadcrumbs a:hover {
    color: #e5e7eb !important;
    /* gray-200 */
}

.breadcrumbs span {
    color: white !important;
}

/* Additional breadcrumb specificity for all potential breadcrumb patterns */
nav.breadcrumbs a,
.breadcrumbs a,
nav[class*="breadcrumb"] a {
    color: white !important;
}

nav.breadcrumbs span,
.breadcrumbs span,
nav[class*="breadcrumb"] span {
    color: white !important;
}

/* Mobile menu button contrast fix - ensure white text on blue background buttons */
/* Only target the CTA buttons at the bottom of mobile menu, not navigation items */
#mobile-menu a.text-white[href="/event/tickets/"],
#mobile-menu a.text-white[href="/event/tickets/"]:link,
#mobile-menu a.text-white[href="/event/tickets/"]:visited,
#mobile-menu a.text-white[href="/event/tickets/"]:hover,
#mobile-menu a.text-white[href="/event/tickets/"]:active {
    color: white !important;
    background-color: var(--cerulean) !important;
}

#mobile-menu a.text-white[href*="cfp"],
#mobile-menu a.text-white[href*="cfp"]:link,
#mobile-menu a.text-white[href*="cfp"]:visited,
#mobile-menu a.text-white[href*="cfp"]:hover,
#mobile-menu a.text-white[href*="cfp"]:active {
    color: white !important;
    background-color: var(--indigo-dye) !important;
}

/* Mailchimp Signup Form Styles */
/* Mailchimp Signup Form */
#mc_embed_signup {
    background: #fff !important;
    clear: left !important;
    font: 14px Helvetica, Arial, sans-serif !important;
    width: 600px !important;
}

#mc-embedded-subscribe-form input[type=checkbox] {
    display: inline !important;
    width: auto !important;
    margin-right: 10px !important;
}

#mergeRow-gdpr {
    margin-top: 20px !important;
}

#mergeRow-gdpr fieldset label {
    font-weight: normal !important;
}

#mc-embedded-subscribe-form .mc_fieldset {
    border: none !important;
    min-height: 0px !important;
    padding-bottom: 0px !important;
}