@font-face {
    font-family: 'Benguiat';
    src: url('./fonts/ITCBenguiatStdBoldCn.woff2') format('woff2'),
         url('./fonts/ITCBenguiatStdBoldCn.OTF') format('otf');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: -webkit-fill-available;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: clip;
    position: relative;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

.container {
    position: relative;
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/backgrounds/niels.jpg') center/cover;
    opacity: 0.15;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 0, 150, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 100, 0, 0.06) 0%, transparent 50%);
}

.header {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.band-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    font-family: 'Benguiat', 'Inter', 'sans-serif';
    letter-spacing: -1px;
}

.band-logo {
    max-width: 25rem;
    width: 90vw;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

section {
    z-index: 10;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    z-index: 1;
}

.link-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-button:hover::before {
    left: 100%;
}

.link-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.link-button[data-color="red"]:hover {
    border-color: #ff6b6b;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.2);
}

.link-button[data-color="orange"]:hover {
    border-color: rgb(235, 118, 59);
    box-shadow: 0 8px 32px rgba(254, 202, 87, 0.2);
}

.link-button[data-color="blue"]:hover {
    border-color: #45b7d1;
    box-shadow: 0 8px 32px rgba(69, 183, 209, 0.2);
}

.link-button[data-color="purple"]:hover {
    border-color: #a55eea;
    box-shadow: 0 8px 32px rgba(165, 94, 234, 0.2);
}

.link-button[data-color="green"]:hover {
    border-color: #4ecdc4;
    box-shadow: 0 8px 32px rgba(78, 205, 196, 0.2);
}

.link-button[data-color="yellow"]:hover {
    border-color: #f1c40f;
    box-shadow: 0 8px 32px rgba(241, 196, 15, 0.2);
}

.link-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.link-icon img {
    object-fit: contain;
}

.link-icon.soundcloud img {
    object-fit: cover;
    object-position: center left;
}

.link-text {
    font-size: 1.1rem;
    font-weight: 500;
    flex: 1;
}

.events-section {
    width: 100%;
    max-width: 500px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.event-card:hover::before {
    left: 100%;
}

.event-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    min-width: 80px;
    flex-shrink: 0;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.event-month {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-venue {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 0.25rem;
}

.event-location {
    font-size: 0.9rem;
    color: #999;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.event-lineup {
    flex: 1;
}

.lineup-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.lineup-bands {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.3;
}

.ticket-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ticket-button:hover {
    background: linear-gradient(135deg, #ff5252, #ff1744);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.ticket-button.unavailable {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    cursor: not-allowed;
}

.ticket-button.unavailable:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
}

.footer {
    margin-top: 3rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .header {
        margin-bottom: 2rem;
    }
    
    .band-name {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .link-button {
        padding: 0.875rem 1.25rem;
    }
    
    .link-text {
        font-size: 1rem;
    }
    
    .link-icon {
        font-size: 1.25rem;
        width: 2rem;
        height: 2rem;
    }
    
    .events-section {
        max-width: 100%;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .event-card {
        padding: 1.25rem;
    }
    
    .event-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .event-date {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        min-width: auto;
    }
    
    .event-day {
        font-size: 1.25rem;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .event-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .ticket-button {
        align-self: center;
        width: fit-content;
    }
}

.sr-only:not(:focus):not(:active) {
  clip: rect(0 0 0 0); 
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap; 
  width: 1px;
}

/* 404 Error Page Styles */
.error-page {
    background: #ffffff;
    color: #333333;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: clip;
    position: relative;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

.error-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.error-text-container {
    max-width: 400px;
    width: 100%;
}

.error-title {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    color: #333333;
    margin-bottom: 1rem;
    line-height: 1;
}

.error-message {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 0;
    font-weight: 500;
}

.error-image-container {
    max-width: 500px;
    width: 100%;
}

.error-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.back-home-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #333333;
    border: 2px solid #333333;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.back-home-button:hover {
    background: transparent;
    color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Mobile responsiveness for 404 page */
@media (max-width: 480px) {
    .error-container {
        padding: 1rem;
    }
    
    .error-content {
        gap: 1.5rem;
    }
    
    .error-title {
        font-size: 3rem;
    }
    
    .error-message {
        font-size: 1.1rem;
    }
    
    .back-home-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Newsletter Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #aaaaaa;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 0 1.5rem 1.5rem;
}

.modal-body p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Newsletter Form Styles */
.newsletter-form {
    display: block;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #888888;
}

.form-input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.form-input.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
}

.form-input.error:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.form-help {
    font-size: 0.8rem;
    color: #aaaaaa;
    margin-top: 0.5rem;
}

.form-error {
    font-size: 0.8rem;
    color: #ff6b6b;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.form-actions {
    margin-top: 1.5rem;
}

.submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff5252, #ff1744);
    border-color: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.submit-btn.loading .btn-spinner {
    display: block;
}

.submit-btn.loading .btn-text {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error States */
.success-state,
.error-state {
    text-align: center;
    padding: 1rem 0;
}

.success-icon,
.error-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.success-icon svg {
    color: #4ade80;
    width: 48px;
    height: 48px;
}

.error-icon svg {
    color: #ff6b6b;
    width: 48px;
    height: 48px;
}

.success-title,
.error-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.success-message,
.error-message {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.close-btn,
.retry-btn {
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.close-btn:hover,
.retry-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Honeypot field - completely hidden */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
}

/* Green color for newsletter button */
.link-button[data-color="green"]:hover {
    border-color: #4ecdc4;
    box-shadow: 0 8px 32px rgba(78, 205, 196, 0.2);
}

/* Newsletter button specific styling - left align text */
.link-button[data-color="green"] {
    text-align: left;
    justify-content: flex-start;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .modal-content {
        margin: 1rem;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 1rem 1rem 0;
        margin-bottom: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 0 1rem 1rem;
    }
    
    .form-input {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .submit-btn {
        padding: 1rem 1.5rem;
    }
}