/* style.css */
@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/Montserrat-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

:root {
    --tm-navy: #004165;
    --tm-maroon: #772432;
    --tm-grey: #A9B2B1;
    --tm-yellow: #F2DF74;
    /* Matches the "REDEWETTBEWERB" text color */
    --bg-light: #f8f9fa;
    --text-dark: #333;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--tm-navy);
    /* Background match flyer */
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.main-wrapper {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    width: 100%;
}

/* --- Left Side: Flyer Content --- */
.flyer-section {
    flex: 1;
    min-width: 300px;
    /* Reduced min-width to fit smaller screens */
    background: linear-gradient(135deg, var(--tm-navy) 0%, #002a42 100%);
    color: var(--white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Decorative Circle (Abstracting the red shape) */
.flyer-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: var(--tm-maroon);
    border-radius: 50%;
    opacity: 0.8;
    z-index: 0;
}

.flyer-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: var(--tm-yellow);
    border-radius: 50%;
    opacity: 0.2;
    z-index: 0;
}

.flyer-section>* {
    position: relative;
    z-index: 1;
}

.club-name {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    color: var(--tm-yellow);
    margin: 0.5rem 0 2rem 0;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.details-grid {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.date-box {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.date-box .day {
    font-size: 4rem;
    font-weight: 900;
    color: var(--white);
}

.date-box .month-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tm-grey);
}

.info-text p {
    margin: 0;
    font-size: 1.2rem;
}

.features-list {
    margin-top: auto;
}

.features-list h3 {
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--tm-grey);
}

.features-list ul {
    list-style: none;
    padding: 0;
}

.features-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.features-list li::before {
    content: '•';
    color: var(--tm-yellow);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- Right Side: Form Section --- */
.form-section {
    flex: 1;
    min-width: 320px;
    background-color: var(--bg-light);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 450px;
}

h2 {
    color: var(--tm-navy);
    margin-top: 0;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--tm-navy);
    font-size: 0.9rem;
}

input[type="text"],
input[type="number"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus {
    border-color: var(--tm-navy);
    outline: none;
}

.radio-group {
    display: flex;
    gap: 10px;
}

.radio-card {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-label {
    display: block;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
}

.radio-card input:checked+.radio-label {
    border-color: var(--tm-navy);
    background-color: #f0f7fb;
    color: var(--tm-navy);
}

.radio-card:hover .radio-label {
    border-color: #ccc;
}

button {
    background-color: var(--tm-maroon);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    transition: background-color 0.3s, transform 0.1s;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover {
    background-color: #5a1b25;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

small {
    display: block;
    margin-top: 0.3rem;
    color: #777;
    font-size: 0.8rem;
}

.message {
    padding: 12px;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    text-align: center;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Admin Override Styling (Keeping it simple as requested, but needs to work with global changes) */
body>.container {
    /* This targets the Admin container specifically if it's a direct child of body, 
       but wait, admin.php also uses .container. 
       Let's ensure admin.php works by keeping .container styles or updating them. */
    background: white;
    margin: 2rem auto;
}

/* Ensure Admin Table looks okay */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: var(--tm-navy);
    color: white;
}

.summary-box {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--tm-yellow);
    color: var(--tm-navy);
    font-weight: bold;
    border-radius: 5px;
}

.status-yes {
    color: green;
    font-weight: bold;
}

.status-no {
    color: red;
}


@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }

    .flyer-section {
        padding: 1.5rem;
        /* Reduced padding for mobile */
    }

    .event-title {
        font-size: 2.5rem;
    }
}

/* Admin Action Buttons */
.action-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    color: white !important;
    border: none;
    cursor: pointer;
    text-transform: none;
    /* override global button style if needed */
    width: auto;
    /* override global width 100% */
    margin: 0;
}

.btn-edit {
    background-color: var(--tm-navy);
}

.btn-edit:hover {
    background-color: #002a42;
}

.btn-delete {
    background-color: #dc3545;
    /* Red warning color */
}

.btn-delete:hover {
    background-color: #a71d2a;
}

/* Support Footer */
.support-footer {
    background-color: var(--tm-navy);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
    width: 100%;
}

.support-footer p {
    margin: 0 0 0.8rem 0;
    font-size: 0.95rem;
    color: var(--tm-grey);
}

/* Guest Invitation Section */
.guest-invite-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.guest-invite-section p {
    margin: 0 0 0.8rem 0;
    color: #666;
    font-size: 0.95rem;
}

.guest-invite-section small {
    display: block;
    margin-top: 0.8rem;
    color: #888;
    font-size: 0.8rem;
}

.eventbrite-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f05537;
    color: white !important;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s, transform 0.2s;
}

.eventbrite-link:hover {
    background-color: #d94426;
    transform: translateY(-2px);
}

.eventbrite-link svg {
    stroke: white;
}

a.whatsapp-link,
.support-footer a.whatsapp-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background-color: #25D366 !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: background-color 0.3s, transform 0.2s !important;
    border: none !important;
    width: auto !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
}

a.whatsapp-link:hover,
.support-footer a.whatsapp-link:hover {
    background-color: #1ebe5d !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
}

.whatsapp-link svg {
    fill: white !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}