/* css/style.css */
:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent: #00ff88;
    /* Neon Green */
    --accent-hover: #00cc6a;
    --danger: #ff4444;
    --primary: #6c5ce7;
    /* Purple */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    padding-bottom: 50px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: #5a4ad1;
}

.btn-submit {
    background: var(--accent);
    color: #000;
    width: 100%;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--accent-hover);
}

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent);
}

.search-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar input {
    flex: 1;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #333;
    background: var(--bg-card);
    color: white;
}

.search-bar button {
    padding: 0.8rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid #333;
    color: var(--accent);
    border-radius: 8px;
    cursor: pointer;
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.filter-btn,
.toggle-btn {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.filter-btn.active,
.toggle-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Grid */
.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem;
}

/* Card */
.coupon-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.2s;
    position: relative;
}

.coupon-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card-header {
    height: 120px;
    background: linear-gradient(45deg, #2d3436, #000);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #333;
}

.card-body {
    padding: 1rem;
}

.merchant-tag {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.card-title {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    border-top: 1px solid #333;
    padding-top: 1rem;
}

.code-display {
    background: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--accent);
    cursor: pointer;
}

.btn-action {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
}

.btn-action:hover {
    color: white;
}

/* Map */
#map-container {
    height: 600px;
    padding: 0 2rem;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #333;
}

.close-modal {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* General Input Styles */
input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    background: #121212;
    border: 1px solid #333;
    color: white;
    border-radius: 6px;
}

/* Radio & Checkbox Specifics */
.location-options {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.5rem !important;
    margin-top: 0.5rem;
    align-items: center !important;
}

.location-options label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer;
    margin-bottom: 0 !important;
    color: var(--text-primary);
    width: auto !important;
}

input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    accent-color: var(--accent);
    transform: none !important;
    flex: none !important;
}

#picker-map {
    height: 200px;
    margin-top: 0.5rem;
    border-radius: 6px;
}

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

.text-sm {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    padding: 0.8rem 2rem;
    border-radius: 20px;
    font-weight: bold;
    z-index: 3000;
}