@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;800&display=swap');

/* Reset & Base */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: #09090b;
    color: #e4e4e7;
    overflow: hidden;
}

/* Background Pattern */
.bg-pattern {
    background-color: #09090b;
    background-image: radial-gradient(#18181b 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Buttons */
.btn {
    font-weight: 700;
    padding: 16px 24px;
    border-radius: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-primary {
    background-color: #f59e0b;
    color: black;
    box-shadow: 0 4px 0 #b45309;
}

.btn-primary:hover { 
    background-color: #f97316; 
}

.btn-primary:active {
    box-shadow: none;
    transform: translateY(4px);
}

.btn-secondary {
    background-color: #27272a;
    color: #d4d4d8;
    border: 1px solid #3f3f46;
}

.btn-secondary:hover {
    background-color: #3f3f46;
    border-color: #52525b;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #27272a;
    color: white;
    padding: 16px 32px;
    border-radius: 999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #52525b;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 100;
}

.toast.show {
    opacity: 1;
    top: 60px;
}

/* Form Elements */
.input {
    width: 100%;
    background-color: #09090b;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.input:focus {
    outline: none;
    border-color: #f59e0b;
}

.input::placeholder { 
    color: #3f3f46; 
}

.label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    color: #71717a;
    text-transform: uppercase;
    margin-bottom: 4px;
    margin-left: 4px;
}

/* Utility Classes */
.hidden { 
    display: none !important; 
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #18181b;
    border: 1px solid #3f3f46;
    padding: 32px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    margin: 16px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Share Modal Styles */
.modal-share {
    text-align: center;
    border: 2px solid #22c55e;
}

.share-subtitle {
    font-size: 0.875rem;
    color: #a1a1aa;
    margin-bottom: 16px;
}

.share-url-container {
    background-color: #09090b;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.share-url-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #f59e0b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    outline: none;
}

.share-waiting {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #3f3f46;
    text-align: center;
}

.waiting-text {
    font-size: 0.875rem;
    color: #a1a1aa;
    margin: 0;
}

/* Rules Modal Specific Styles */
.modal-list {
    font-size: 0.75rem;
    color: #a1a1aa;
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-list li {
    margin-bottom: 12px;
}

.modal-list strong { 
    color: #e4e4e7; 
}

/* Top Button Bar */
.top-button-bar {
    position: fixed;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 12px;
    z-index: 100;
}

.btn-rules-top {
    background-color: #27272a;
    backdrop-filter: blur(8px);
    color: #f59e0b;
    border: 2px solid #3f3f46;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #18181b, 0 6px 12px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.btn-rules-top:hover {
    background-color: #3f3f46;
    border-color: #52525b;
    color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #18181b, 0 8px 16px rgba(0, 0, 0, 0.4);
}

.btn-rules-top:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #18181b, 0 3px 6px rgba(0, 0, 0, 0.3);
}
