/* LMNO Dispensary - Cannabis Strain Guide Styles */
:root {
    --primary: #86b175;
    --primary-dark: #6a9a5b;
    --primary-light: #bcd4b4;
    --bg: #fafafa;
    --bg-alt: #fff;
    --text: #333;
    --text-light: #666;
    --border: #ddd;
    --indica: #6366f1;
    --sativa: #f59e0b;
    --hybrid: #10b981;
    --star: #fbbf24;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 15px;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.header {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
}
.logo img { height: 36px; width: auto; }
.logo:hover { text-decoration: none; }

.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--text-light); font-size: 14px; }
.nav a:hover { color: var(--primary-dark); text-decoration: none; }
.nav .btn { margin-left: 8px; }

/* Main container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-secondary { background: #e5e7eb; color: var(--text); }
.btn-secondary:hover { background: #d1d5db; text-decoration: none; }
.btn-small { padding: 5px 10px; font-size: 13px; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }

/* Cards */
.card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.card-title a { color: var(--text); }

/* Strain type badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-indica { background: #eef2ff; color: var(--indica); }
.badge-sativa { background: #fef3c7; color: #b45309; }
.badge-hybrid { background: #d1fae5; color: #047857; }

/* Strain info on list */
.strain-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
    margin: 8px 0;
}
.strain-meta span { display: flex; align-items: center; gap: 4px; }

/* Stars */
.stars { color: var(--star); letter-spacing: -1px; }
.stars-empty { color: #ddd; }

/* Strain detail page */
.strain-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.strain-title { font-size: 26px; font-weight: 700; margin: 0 0 8px 0; }
.strain-subtitle { color: var(--text-light); font-size: 14px; }

.strain-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px;
    text-align: center;
}
.stat-label { font-size: 11px; color: var(--text-light); text-transform: uppercase; margin-bottom: 4px; }
.stat-value { font-size: 18px; font-weight: 600; }

.lineage-bar {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--sativa) var(--sativa-pct), var(--indica) var(--sativa-pct));
    margin: 8px 0;
}
.lineage-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
}
.tag:hover { border-color: var(--primary); color: var(--primary-dark); text-decoration: none; }

/* Section headers */
.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    margin: 20px 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

/* Two column layout */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.two-col-even { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) {
    .two-col, .two-col-even { grid-template-columns: 1fr; }
}

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text);
}
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { background: #fff; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 3px; }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-success { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-info { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* Reviews */
.review {
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.review:last-child { border-bottom: none; }
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.review-author { font-weight: 500; font-size: 14px; }
.review-date { font-size: 12px; color: var(--text-light); }
.review-text { font-size: 14px; line-height: 1.6; margin: 8px 0; }
.review-meta { font-size: 12px; color: var(--text-light); }
.review-meta strong { color: var(--text); font-weight: 500; }

/* Rating input */
.rating-input { display: flex; gap: 4px; }
.rating-input input { display: none; }
.rating-input label {
    cursor: pointer;
    font-size: 24px;
    color: #ddd;
    transition: color 0.1s;
}
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: var(--star); }
.rating-input { flex-direction: row-reverse; justify-content: flex-end; }

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.table th, .table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-light);
}
.table tr:hover { background: var(--bg); }
.table .actions { white-space: nowrap; }
.table .actions a { margin-right: 8px; }

/* Search bar */
.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.search-bar input { flex: 1; }
.search-bar select { width: auto; min-width: 160px; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
}
.pagination a, .pagination span {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
}
.pagination a:hover { background: var(--bg); text-decoration: none; }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Auth pages */
.auth-container {
    max-width: 380px;
    margin: 60px auto;
    padding: 0 16px;
}
.auth-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
}
.auth-title { font-size: 22px; font-weight: 600; margin-bottom: 20px; text-align: center; }
.auth-footer { text-align: center; margin-top: 16px; font-size: 14px; }

/* Strain list grid */
.strain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

/* Description text */
.description { font-size: 15px; line-height: 1.7; color: var(--text); }

/* Footer */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

/* Utility */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.hidden { display: none; }

/* Checkbox/Radio */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}
.checkbox-group input { width: auto; }

/* Multi-Select Component */
.ms-wrapper {
    position: relative;
    width: 100%;
}
.ms-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    min-height: 38px;
    transition: border-color 0.15s;
}
.ms-display:hover {
    border-color: #bbb;
}
.ms-wrapper.open .ms-display {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}
.ms-display-text {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-display-text.placeholder {
    color: #999;
}
.ms-arrow {
    color: #666;
    font-size: 12px;
    margin-left: 8px;
    transition: transform 0.15s;
}
.ms-wrapper.open .ms-arrow {
    transform: rotate(180deg);
}
.ms-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 280px;
    overflow: hidden;
}
.ms-wrapper.open .ms-dropdown {
    display: block;
}
.ms-search {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    outline: none;
}
.ms-options {
    max-height: 220px;
    overflow-y: auto;
}
.ms-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.1s;
}
.ms-option:hover {
    background: var(--bg);
}
.ms-option.selected {
    background: #e8f5e9;
}
.ms-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}
.ms-option span {
    flex: 1;
}
.ms-no-results, .ms-error {
    padding: 12px;
    text-align: center;
    color: #999;
    font-size: 13px;
}
