* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #212030;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.5s ease-in-out;
    padding-top: 5rem;
}

header {
    margin-bottom: 2rem;
    text-align: center;
}

.store-logo {
    max-width: 400px;
    height: auto;
}

.store-list {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Match mockup tight gap */
    width: 100%;
    max-width: 400px; 
}

.list-btn {
    display: flex;
    align-items: center;
    border: 3px solid white;
    padding: 6px;
    text-decoration: none;
    color: white;
    background-color: transparent;
    transition: background-color 0.2s;
}

.list-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.icon-wrapper {
    width: 65px;
    height: 65px;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-gaytester {
    background: linear-gradient(135deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #8b00ff);
    border-radius: 8px; 
    font-size: 2rem;
    position: relative;
}

.icon-gaytester::after {
    content: '🌈';
}

.icon-poland {
    background: linear-gradient(to bottom, #ffffff 50%, #dc143c 50%);
    border-radius: 8px; 
    font-size: 2rem;
    position: relative;
    border: 1px solid rgba(255,255,255,0.2);
}

.icon-poland::after {
    content: '';
}

.icon-img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    margin-right: 15px;
}

.list-btn h2 {
    font-size: 2rem;
    font-weight: 700;
}

/* Toggle Green Button */
.make-it-green-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 100;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.make-it-green-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Convicts Banner Styles */
.convicts-banner-container {
    width: 100%;
    margin-top: 10rem;
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.banner-title {
    text-align: center;
    font-size: 1.5rem;
    color: #ff4757;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
}

.convicts-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Add gradient masks for smooth fade in/out on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.convicts-track {
    display: flex;
    width: calc(300px * 18 + 20px * 18); /* Card width + gap * total cards (9 original + 9 clone) */
    animation: scrollBanner 40s linear infinite;
    gap: 20px;
}

.convicts-track:hover {
    animation-play-state: paused;
}

.convict-card {
    width: 300px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.convict-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.convict-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 2px solid #ff4757;
}

.convict-card img.crop-top {
    object-position: center 15%;
}

.convict-card img.crop-mik {
    object-position: center 30%;
}

.convict-card img.crop-grosh {
    object-position: center 25%;
}

.convict-info {
    padding: 15px;
}

.convict-info h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #fff;
}

.convict-info p {
    font-size: 0.85rem;
    color: #a4b0be;
    line-height: 1.4;
}

@keyframes scrollBanner {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move left by exactly half the width to seamlessly loop */
        transform: translateX(calc(-50% - 10px)); /* -10px accounts for half the gap */
    }
}

/* Threadboard Styles */
.poland-container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.threadboard {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.threadboard h3 {
    font-size: 1.8rem;
    color: #fff;
    border-bottom: 2px solid #dc143c;
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group textarea {
    width: 100%;
    min-height: 100px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    resize: vertical;
    font-family: 'Outfit', sans-serif;
}

.form-group textarea:focus {
    outline: none;
    border-color: #dc143c;
}

.btn-primary {
    background: #dc143c;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    align-self: flex-start;
}

.btn-primary:hover {
    background: #ff1a4b;
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: transparent;
    color: #ff4757;
    border: 1px solid #ff4757;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #ff4757;
    color: white;
}

.thread-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.thread-item {
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid #dc143c;
    border-radius: 0 8px 8px 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.highlight-thread {
    background: rgba(220, 20, 60, 0.2);
    border-left: 8px solid #ff1a4b;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.3);
}

.thread-content {
    font-size: 1.1rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.thread-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #a4b0be;
}

.reply-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-left: 2rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
}

.reply-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.reply-form {
    margin-left: 2rem;
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.reply-form input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: white;
    font-family: 'Outfit', sans-serif;
}

.reply-form input:focus {
    outline: none;
    border-color: #dc143c;
}

.admin-hidden {
    display: none !important;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(to right, #ffffff, #dc143c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer; /* For secret admin login */
}
