/* CSS v2.0 */ 
:root {
    color-scheme: light;
    --primary: #FFFFFF;
    --secondary: #1d3557;
    --background: #000000;
    --text: #D8D8D8;
}

* {
    box-sizing: border-box;
}


body {
    font-family: "Barlow", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    background: var(--background);
    color: var(--text);
    background-image: url('/static/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

a {
    color: #1d3557;
}

a:visited {
    color:#1d3557;
}

a.back-to-round,
a.back-to-round:visited {
    color: #FFFFFF;
    text-decoration: underline;
}


.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem;
}

.site-header {
    background: #1d3557;
    border-bottom: 1px solid #ddd;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-wrap {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    position: relative;
}

.brand {
    font-weight: 700;
    text-decoration: none;
    color: var(--primary) !important;
    font-size: 1.2rem;
}

.brand-icon {
    width: 86px;
    height: auto;
    position: absolute;
    left: -2rem;
    bottom: -1.5rem;
    transform: rotate(-6deg);
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

.main-nav a {
    margin-right: 1rem;
    text-decoration: none;
    color: var(--primary);
}

.main-nav a:last-child {
    margin-right: 0;
}

.main-nav .userdisplay {
    border: 2px solid #32517c;
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    display: inline-block;
    margin-right: 0.5rem;
}

.main-nav .navbutton {
    background-color: #32517c;
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    display: inline-block;
    margin-right: 0.5rem;
}

.main-nav .navbutton:last-child {
    margin-right: 0;
}

.language-switcher select {
    padding: 0.25rem;
}

.button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.button.primary {
    background: var(--secondary);
    color: white;
}

.button.secondary {
    background: var(--primary);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.button.danger {
    background: #c1121f;
    color: white;
}

.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color:white;
    letter-spacing: -0.5%;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.features {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    color: var(--secondary  );
}

.features div {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.flash {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    background: white;
    color: var(--secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flash-success {
    border-left: 4px solid #2a9d8f;
}

.flash-error {
    border-left: 4px solid #e63946;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.round-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.round-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    color: var(--secondary);
}

.round-card h2 {
    margin-top: 0;
}

.participant-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--secondary);
}

.participant-list li {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: #f0f0f0;
    font-size: 0.8rem;
}

.badge-success {
    background: #1e5e46;
    color: white;
}

.badge-warning {
    background: #720c0c;
    color: white;
}

.badge-muted {
    background: #313142;
    color: white;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.form-control label {
    display: block;
    margin-bottom: 0.4rem;
}

.form-control input,
.form-control textarea,
.form-control select {
    width: 100%;
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.form-control.has-error input,
.form-control.has-error textarea,
.form-control.has-error select {
    border-color: #e63946;
}

.error {
    color: #e63946;
    margin-top: 0.25rem;
}

.wishlist {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
    color: var(--secondary);

}

.wishlist li {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
}

.wishlist li.completed {
    opacity: 0.7;
}

.wishlist-actions {
    display: flex;
    gap: 0.5rem;
}

.wishlist-thumb {
    flex: 0 0 15%;
    max-width: 15%;
}

.wishlist-thumb img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.wishlist-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wishlist-action {
    margin-left: auto;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wishlist-action button,
.wishlist-action a {
    white-space: nowrap;
}

.join_round {
    color: #2a9d8f;
}

.wishlist:not(.own) li.completed .wishlist-info h2,
.wishlist:not(.own) li.completed .wishlist-info p,
.wishlist:not(.own) li.completed .wishlist-info a {
    text-decoration: line-through;
    color: #6c757d;
}

.auth-card {
    max-width: 420px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    color: var(--secondary);
}

.auth-card .status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(29, 53, 87, 0.08);
    font-size: 2rem;
}

.auth-card .hint {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(29, 53, 87, 0.06);
    border-radius: 8px;
    color: rgba(29, 53, 87, 0.8);
    line-height: 1.5;
}

.auth-card .action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.auth-card .action-row .button {
    flex: 1 1 160px;
    text-align: center;
}

.social-logins {
    margin-bottom: 1.5rem;
}

.social-logins ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-logins a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    background: #f6f6f6;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    font-size: 0.85rem;
    color: #6c757d;
}

.divider span {
    background: white;
    padding: 0 0.5rem;
    position: relative;
    z-index: 1;
}

.divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #ddd;
    transform: translateY(-50%);
    z-index: 0;
}

.alt-link {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.alt-link a {
    color: var(--secondary);
    text-decoration: none;
}

.lightstyle {
    color: white;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .wishlist li {
        flex-direction: column;
        align-items: flex-start;
    }

    .wishlist-thumb {
        max-width: 100%;
        width: 100%;
    }

    .wishlist-action {
        margin-left: 0;
        align-self: stretch;
        flex-direction: column;
        width: 100%;
    }
}
