/* Inherit base styles from style.css, add specific overrides */

/* Header Override for Meme Launcher */
.header-content-wrapper {
    display: flex !important; /* Override grid from style.css */
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem; /* Tighter gap */
    margin-bottom: 2rem;
    width: 100%;
}

.dial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.dial {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #2a2a2a;
    border: 2px solid #555;
    cursor: pointer;
    outline: none;
    position: relative; /* For pseudo-element */
    /* Ensure user can interact even if visually rotated */
    touch-action: none; 
}

.dial::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 20px;
    background: #00ff99;
    box-shadow: 0 0 5px #00ff99;
    border-radius: 2px;
    top: 5px; /* Position it near the top */
    left: calc(50% - 2px); /* Center it */
    pointer-events: none; /* Let clicks pass through marker */
}

/* Hide the default thumb so we only see our custom dial face */
.dial::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 60px; 
    height: 60px;
    background: transparent;
    border: 0;
}

.dial::-moz-range-thumb {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 0;
}

.dial-label {
    margin-top: 0.5rem;
    margin-bottom: 0 !important;
    font-size: 0.6rem !important; /* Smaller titles */
    text-shadow: 0 0 5px #00ff99;
    color: #00ff99;
    font-family: 'Press Start 2P', cursive;
}

/* Layout */
.meme-launcher-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

/* Glass Card Style (matching index.html aesthetic) */
.glass-card {
    background-color: var(--window-bg-color, hsla(75, 30%, 10%, 0.9));
    border: 2px solid var(--text-color, #0f380f);
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.5), 0 0 10px rgba(0,0,0,0.5);
    border-radius: 12px;
    padding: 2rem;
    color: var(--text-color, #0f380f);
    transition: all 0.3s ease;
}

.glass-card h2 {
    font-family: 'Digital-7 Mono', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: none; /* Remove default pink shadow for consistent theme */
    color: var(--text-color);
}

.glass-card h3 {
    font-family: 'Digital-7 Mono', sans-serif;
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-shadow: none;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.cyber-input, .cyber-select {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border-radius: 4px;
    box-sizing: border-box;
}

.cyber-input:focus, .cyber-select:focus {
    outline: none;
    box-shadow: 0 0 5px var(--text-color);
}

/* Image Preview */
#image-preview {
    max-width: 100px;
    margin-top: 10px;
    border: 1px solid var(--text-color);
    display: block;
}

/* Fee Display */
.fee-display-box {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px dashed var(--text-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Digital-7 Mono', sans-serif;
    font-size: 1.2rem;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.checkbox-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Launch Button */
.launch-button {
    width: 100%;
    background-color: var(--text-color); /* Invert colors for button */
    color: #000;
    border: none;
    padding: 1rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.1s;
    border-radius: 8px; /* Rounded corners */
    box-shadow: none; /* No glow */
    text-shadow: none; /* No text glow */
}

.launch-button:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Token List */
.token-item {
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--text-color);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.token-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #555;
}

.token-info {
    flex-grow: 1;
}

.token-info strong {
    display: block;
    font-size: 1.1rem;
}

.token-info span {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  vertical-align: middle;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--text-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Mobile Mode Overrides */
body.mobile-view .meme-launcher-grid {
    grid-template-columns: 1fr; /* Stack panels */
}

body.mobile-view .header-content-wrapper {
    /* Keep flex row for dials, maybe wrap if too small */
    justify-content: center;
}

@media (max-width: 768px) {
    .meme-launcher-grid {
        grid-template-columns: 1fr;
    }
}
