/* Gardener Profile */
.hgd-profile{font-family:system-ui,-apple-system,sans-serif}
.hgd-header{display:flex;gap:16px;align-items:center;margin-bottom:20px;padding:20px;background:#fff;border-radius:16px;box-shadow:0 2px 10px #0001}
.hgd-avatar{width:80px;height:80px;border-radius:50%;overflow:hidden;flex-shrink:0}
.hgd-avatar img{width:100%;height:100%;object-fit:cover}
.hgd-name{font-size:22px;font-weight:700;margin:0 0 4px;color:#111}
.hgd-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:13px;color:#6b7280}

/* Photo grid (gardener profile) */
.hgd-photo-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}
.hgd-strip-photo{border-radius:14px;overflow:hidden;cursor:pointer;background:#fff;box-shadow:0 2px 10px #0001;transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column}
.hgd-strip-photo.hidden{display:none}
.hgd-strip-photo:hover{transform:translateY(-3px);box-shadow:0 8px 24px #0002}
.hgd-strip-img{aspect-ratio:1;overflow:hidden}
.hgd-strip-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.hgd-strip-photo:hover .hgd-strip-img img{transform:scale(1.06)}
.hgd-strip-desc{padding:8px 12px 10px;font-size:11px;color:#6b7280;line-height:1.4;word-wrap:break-word}
.hgd-strip-desc div{margin-bottom:2px}
.hgd-strip-desc strong{color:#374151;font-weight:600}
@media(max-width:768px){
    .hgd-photo-strip{grid-template-columns:repeat(2,1fr);gap:8px}
    .hgd-strip-desc{font-size:10px;padding:6px 8px 8px}
}

/* Gallery section on profile */
.hgd-gallery-section{margin-bottom:20px}
.hgd-tag-filters{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:12px}
.hgd-tag-btn{padding:5px 12px!important;border-radius:50px!important;font-size:12px!important;font-weight:500!important;background:#fff!important;color:#374151!important;cursor:pointer!important;border:1px solid #e5e7eb!important;transition:all .15s!important;display:inline-flex!important;align-items:center!important;gap:4px!important;line-height:1.4!important}
.hgd-tag-btn:hover{background:#ecfdf5!important;border-color:#a7f3d0!important;color:#059669!important}
.hgd-tag-btn.active{background:linear-gradient(135deg,#059669,#10b981)!important;color:#fff!important;border-color:#059669!important}
.hgd-tag-cnt{font-size:10px;opacity:.7}
.hgd-photo-grid-full{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.hgd-gallery-card{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 1px 6px #0001;cursor:pointer;transition:transform .15s,box-shadow .15s}
.hgd-gallery-card:hover{transform:translateY(-2px);box-shadow:0 4px 14px #0002}
.hgd-gallery-card.hidden{display:none}
.hgd-gallery-img{aspect-ratio:1;overflow:hidden}
.hgd-gallery-img img{width:100%;height:100%;object-fit:cover;display:block}
.hgd-gallery-tags{padding:6px 8px;display:flex;flex-wrap:wrap;gap:3px}
.hgd-gallery-pill{padding:2px 7px;border-radius:50px;font-size:10px;font-weight:600;background:#ecfdf5;color:#059669}

/* Ask section */
.hgd-ask-section{margin-bottom:20px!important;text-align:center!important}
.hgd-ask-btn{display:inline-block!important;padding:12px 28px!important;background:linear-gradient(135deg,#059669,#10b981)!important;color:#fff!important;border-radius:50px!important;font-size:15px!important;font-weight:700!important;text-decoration:none!important;border:none!important;cursor:pointer!important;box-shadow:0 4px 14px rgba(5,150,105,.25)!important;transition:transform .15s!important;line-height:1.4!important}
.hgd-ask-btn:hover{transform:translateY(-1px)!important}

/* Ask form */
.hgd-ask-form{background:#fff;border-radius:14px;padding:20px;margin-top:14px;box-shadow:0 2px 10px #0001;text-align:left}
.hgd-ask-form h3{margin:0 0 12px;font-size:16px}
.hgd-input{width:100%!important;padding:10px 14px!important;border:1px solid #e5e7eb!important;border-radius:10px!important;font-size:14px!important;font-family:inherit!important;margin-bottom:10px!important;background:#fff!important;color:#111!important}
.hgd-textarea{width:100%!important;padding:10px 14px!important;border:1px solid #e5e7eb!important;border-radius:10px!important;font-size:14px!important;font-family:inherit!important;resize:vertical!important;min-height:80px!important;margin-bottom:10px!important;background:#fff!important;color:#111!important}
.hgd-input:focus,.hgd-textarea:focus{outline:none!important;border-color:#059669!important;box-shadow:0 0 0 2px rgba(5,150,105,.15)!important}
@media (max-width: 768px){.hgd-input,.hgd-textarea{font-size:16px!important}}

/* Attach photos */
.hgd-attach-btn{padding:6px 14px!important;background:#f3f4f6!important;border:1px solid #e5e7eb!important;border-radius:8px!important;font-size:12px!important;cursor:pointer!important;margin-bottom:10px!important;color:#374151!important;line-height:1.4!important}
.hgd-attach-btn:hover{background:#e5e7eb!important}
.hgd-attached-photos{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.hgd-attached-photos img{width:50px;height:50px;border-radius:8px;object-fit:cover;border:2px solid #059669}

/* Slider anti-bot */
.hgd-slider-wrap{margin:12px 0;user-select:none}
.hgd-slider-track{position:relative;height:44px;background:#f3f4f6;border-radius:22px;overflow:hidden;border:1px solid #e5e7eb}
.hgd-slider-thumb{position:absolute;left:0;top:0;width:44px;height:44px;background:linear-gradient(135deg,#059669,#10b981);border-radius:22px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;font-weight:700;cursor:grab;touch-action:none;z-index:2;transition:none}
.hgd-slider-thumb.dragging{cursor:grabbing}
.hgd-slider-thumb.done{background:#10b981;width:100%!important;justify-content:center;cursor:default;transition:width .3s}
.hgd-slider-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:13px;color:#9ca3af;z-index:1;pointer-events:none}

/* Submit */
.hgd-submit-btn{width:100%!important;padding:12px!important;background:#059669!important;color:#fff!important;border:none!important;border-radius:10px!important;font-size:15px!important;font-weight:700!important;cursor:pointer!important;transition:background .15s!important;line-height:1.4!important}
.hgd-submit-btn:disabled{background:#d1d5db!important;cursor:not-allowed!important;color:#fff!important}
.hgd-submit-btn:not(:disabled):hover{background:#047857!important}
.hgd-status{margin-top:8px;font-size:13px;text-align:center}
.hgd-status.error{color:#dc2626}
.hgd-status.success{color:#059669}

/* Threads list */
.hgd-threads{margin-top:10px}
.hgd-threads h2{font-size:18px;margin:0 0 14px}
.hgd-thread-count{font-weight:400;color:#9ca3af;font-size:14px}
.hgd-empty{text-align:center;color:#9ca3af;padding:30px;font-size:14px}

.hgd-thread-card{display:block;background:#fff;border-radius:12px;padding:14px;margin-bottom:10px;box-shadow:0 1px 6px #0001;text-decoration:none;color:#111;transition:box-shadow .15s,transform .1s}
.hgd-thread-card:hover{box-shadow:0 4px 16px #0002;transform:translateY(-1px)}
.hgd-thread-card.featured{border-left:3px solid #f59e0b}
.hgd-badge-featured{font-size:11px;color:#f59e0b;font-weight:600;margin-bottom:4px;display:block}
.hgd-thread-title{font-weight:700;font-size:15px;margin-bottom:4px}
.hgd-thread-meta{font-size:12px;color:#6b7280;display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.hgd-thread-author{font-weight:600;color:#374151}
.hgd-thread-photos{display:flex;gap:4px;margin-bottom:6px}
.hgd-thread-photo-thumb{width:40px;height:40px;border-radius:6px;object-fit:cover}
.hgd-thread-preview{font-size:13px;color:#6b7280;margin:0;line-height:1.4}

/* Thread detail */
.hgd-back{display:inline-block;font-size:13px;color:#059669;text-decoration:none;margin-bottom:16px}
.hgd-back:hover{text-decoration:underline}
.hgd-thread-detail{background:#fff;border-radius:14px;padding:20px;box-shadow:0 2px 10px #0001;margin-bottom:16px}
.hgd-thread-detail-title{font-size:20px;margin:0 0 8px}
.hgd-thread-body{font-size:14px;line-height:1.6;color:#374151;margin-top:12px}
.hgd-ref-photos{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.hgd-ref-photo{width:80px;height:80px;border-radius:10px;object-fit:cover;cursor:pointer;transition:transform .15s}
.hgd-ref-photo:hover{transform:scale(1.05)}
.hgd-photo-deleted{padding:4px 10px;background:#fee2e2;color:#991b1b;border-radius:8px;font-size:11px}
.hgd-mod-btn{background:none!important;border:none!important;cursor:pointer!important;font-size:14px!important;padding:0 2px!important;opacity:.5!important;line-height:1!important;display:inline!important;box-shadow:none!important;min-width:auto!important;min-height:auto!important;color:inherit!important}
.hgd-mod-btn:hover{opacity:1!important;background:none!important}

/* Replies */
.hgd-replies{margin-bottom:16px}
.hgd-replies h3{font-size:16px;margin:0 0 12px}
.hgd-reply{background:#fff;border-radius:12px;padding:14px;margin-bottom:8px;box-shadow:0 1px 4px #0001}
.hgd-reply-gardener{border-left:3px solid #059669;background:#f0fdf4}
.hgd-reply-header{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:6px;font-size:12px;color:#6b7280}
.hgd-reply-author{font-weight:600;color:#374151}
.hgd-badge-gardener{background:#d1fae5;color:#065f46;padding:2px 8px;border-radius:8px;font-size:10px;font-weight:600}
.hgd-reply-body{font-size:14px;line-height:1.5;color:#374151}

/* Reply form */
.hgd-reply-form{background:#fff;border-radius:14px;padding:20px;box-shadow:0 2px 10px #0001}
.hgd-reply-form h3{margin:0 0 10px;font-size:16px}
.hgd-login-prompt{text-align:center;padding:20px;background:#fff;border-radius:14px;box-shadow:0 2px 10px #0001}
.hgd-login-prompt a{color:#059669;font-weight:600;text-decoration:none}

/* Photo picker modal */
.hgd-modal{position:fixed;inset:0;background:#000a;z-index:10000;display:flex;align-items:center;justify-content:center}
.hgd-modal-content{background:#fff;border-radius:16px;padding:20px;width:90%;max-width:500px;max-height:80vh;overflow-y:auto}
.hgd-modal-content h3{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px;font-size:16px}
.hgd-modal-close{background:none;border:none;font-size:24px;cursor:pointer;color:#6b7280}
.hgd-photo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.hgd-photo-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;cursor:pointer;border:3px solid transparent;transition:border-color .1s}
.hgd-photo-grid img.selected{border-color:#059669}
.hgd-modal-footer{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:13px;color:#6b7280}
.hgd-modal-confirm{padding:8px 18px!important;background:#059669!important;color:#fff!important;border:none!important;border-radius:8px!important;font-size:13px!important;font-weight:600!important;cursor:pointer!important;line-height:1.4!important}

/* Lightbox */
.hgd-lightbox{position:fixed;inset:0;background:#000d;z-index:100000;display:flex;align-items:center;justify-content:center}
.hgd-lightbox img{max-width:90vw;max-height:90vh;border-radius:10px}
.hgd-lb-close{position:absolute;top:16px;right:20px;color:#fff;font-size:32px;cursor:pointer;background:none;border:none;z-index:100001}

@media(max-width:600px){
    .hgd-header{flex-direction:column;text-align:center;padding:14px}
    .hgd-avatar{width:60px;height:60px}
    .hgd-name{font-size:18px}
    .hgd-meta{justify-content:center}
    .hgd-strip-photo{width:70px;height:70px}
    .hgd-thread-detail-title{font-size:17px}
    .hgd-photo-grid{grid-template-columns:repeat(3,1fr)}
}
