/* ============================================
   BiyeJachai Frontend CSS
   ============================================ */

/* Alert */
.bjc-alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; border-left: 4px solid; }
.bjc-alert-success { background: #ecfdf5; border-color: #10b981; color: #047857; }
.bjc-alert-error { background: #fef2f2; border-color: #ef4444; color: #b91c1c; }

/* Buttons */
.bjc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: all 0.3s; font-family: inherit; }
.bjc-btn-primary { background: linear-gradient(135deg, #ec4899, #8b5cf6); color: #fff; }
.bjc-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(236,72,153,0.35); color: #fff; }
.bjc-btn-outline { background: transparent; border-color: #ec4899; color: #ec4899; }
.bjc-btn-outline:hover { background: #ec4899; color: #fff; }
.bjc-btn-full { width: 100%; }
.bjc-btn-large { padding: 16px 32px; font-size: 16px; }

/* Auth Pages */
.bjc-auth-page { padding: 60px 20px; background: linear-gradient(135deg, #fdf2f8, #ede9fe); min-height: 70vh; display: flex; align-items: center; }
.bjc-auth-container { max-width: 480px; margin: 0 auto; width: 100%; }
.bjc-auth-card { background: #fff; border-radius: 20px; padding: 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.bjc-auth-header { text-align: center; margin-bottom: 30px; }
.bjc-auth-logo { font-size: 56px; margin-bottom: 12px; }
.bjc-auth-header h1 { font-size: 1.75rem; margin: 0 0 8px; }
.bjc-auth-header p { color: #6b7280; margin: 0; font-size: 14px; }

.bjc-form-group { margin-bottom: 18px; }
.bjc-form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: #1f2937; font-size: 14px; }
.bjc-form-group input,
.bjc-form-group select,
.bjc-form-group textarea { width: 100%; padding: 12px 14px; border: 2px solid #e5e7eb; border-radius: 10px; font-size: 15px; font-family: inherit; transition: all 0.2s; }
.bjc-form-group input:focus,
.bjc-form-group select:focus,
.bjc-form-group textarea:focus { outline: none; border-color: #ec4899; box-shadow: 0 0 0 3px rgba(236,72,153,0.1); }

.bjc-radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bjc-radio-card { display: flex; align-items: center; gap: 8px; padding: 14px; border: 2px solid #e5e7eb; border-radius: 10px; cursor: pointer; transition: all 0.2s; font-weight: 500; }
.bjc-radio-card:hover { border-color: #ec4899; background: #fef3f8; }
.bjc-radio-card input { width: auto; margin: 0; }
.bjc-radio-card input:checked + span { color: #ec4899; font-weight: 700; }

.bjc-auth-footer { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e5e7eb; font-size: 14px; color: #6b7280; }
.bjc-auth-footer a { color: #ec4899; font-weight: 600; }

/* Profile Create Form */
.bjc-page-wrap { padding: 40px 0 60px; }
.bjc-page-header { text-align: center; margin-bottom: 40px; }
.bjc-page-header h1 { font-size: 2rem; margin: 0 0 8px; }
.bjc-page-header p { color: #6b7280; }

.bjc-profile-form { max-width: 900px; margin: 0 auto; }
.bjc-form-section { background: #fff; border-radius: 16px; padding: 28px; margin-bottom: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.bjc-form-section h2 { font-size: 1.25rem; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid #f3f4f6; color: #ec4899; }

.bjc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.bjc-photo-upload { text-align: center; padding: 20px; background: #f9fafb; border-radius: 12px; border: 2px dashed #e5e7eb; }
.bjc-current-photo img { max-width: 200px; border-radius: 12px; margin-bottom: 15px; }
.bjc-photo-upload input[type="file"] { padding: 10px; background: #fff; border-radius: 8px; border: 1px solid #e5e7eb; }
.bjc-help { font-size: 13px; color: #6b7280; margin: 8px 0 0; }

.bjc-form-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* Profile Cards Grid */
.bjc-profiles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 30px 0; }

.bjc-profile-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: all 0.3s; }
.bjc-profile-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.bjc-profile-photo { display: block; height: 280px; overflow: hidden; position: relative; background: linear-gradient(135deg, #fce7f3, #ede9fe); }
.bjc-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.bjc-profile-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 60px; opacity: 0.5; }
.bjc-badge-verified { position: absolute; top: 12px; right: 12px; background: #10b981; color: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; box-shadow: 0 4px 10px rgba(16,185,129,0.4); }

.bjc-profile-info { padding: 18px; }
.bjc-profile-info h3 { margin: 0 0 8px; font-size: 17px; }
.bjc-profile-info h3 a { color: #1f2937; text-decoration: none; }
.bjc-profile-info h3 a:hover { color: #ec4899; }
.bjc-profile-meta { color: #6b7280; font-size: 13px; margin: 0 0 6px; }
.bjc-profile-id { font-size: 11px; color: #9ca3af; font-family: monospace; margin: 0; }

/* Single Profile */
.bjc-single-profile { padding: 30px 0 60px; }
.bjc-breadcrumb { display: flex; gap: 8px; font-size: 14px; color: #6b7280; margin-bottom: 24px; flex-wrap: wrap; }
.bjc-breadcrumb a { color: #6b7280; text-decoration: none; }
.bjc-breadcrumb a:hover { color: #ec4899; }

.bjc-profile-header { display: grid; grid-template-columns: 400px 1fr; gap: 40px; background: #fff; border-radius: 20px; padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); margin-bottom: 30px; }
.bjc-profile-photo-large { position: relative; border-radius: 16px; overflow: hidden; height: 450px; background: linear-gradient(135deg, #fce7f3, #ede9fe); }
.bjc-profile-photo-large img { width: 100%; height: 100%; object-fit: cover; }
.bjc-photo-placeholder-large { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 100px; opacity: 0.5; }
.bjc-verified-badge-large { position: absolute; top: 16px; right: 16px; background: #10b981; color: #fff; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; }

.bjc-profile-header-info h1 { font-size: 2rem; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.bjc-verified-icon { font-size: 24px; }
.bjc-profile-id-large { font-family: monospace; color: #6b7280; font-size: 14px; margin-bottom: 16px; }

.bjc-profile-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.bjc-badge { background: #f3f4f6; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; color: #4b5563; }

.bjc-profile-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.bjc-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.bjc-detail-card { background: #fff; padding: 24px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.bjc-detail-card h3 { font-size: 1.1rem; color: #ec4899; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid #f3f4f6; }
.bjc-detail-card ul { list-style: none; padding: 0; margin: 0; }
.bjc-detail-card li { padding: 8px 0; border-bottom: 1px solid #f9fafb; font-size: 14px; color: #4b5563; }
.bjc-detail-card li:last-child { border-bottom: none; }
.bjc-detail-card li strong { color: #1f2937; }

.bjc-about-section { background: #fff; padding: 24px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin-bottom: 20px; }
.bjc-about-section h2 { font-size: 1.25rem; color: #ec4899; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid #f3f4f6; }
.bjc-about-content { color: #4b5563; line-height: 1.7; }

.bjc-contact-section { background: linear-gradient(135deg, #ec4899, #8b5cf6); color: #fff; padding: 30px; border-radius: 16px; }
.bjc-contact-section h2 { color: #fff; margin: 0 0 20px; }
.bjc-contact-info { display: flex; flex-direction: column; gap: 12px; }
.bjc-contact-item { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.bjc-contact-item a { color: #fff; text-decoration: none; }
.bjc-contact-icon { font-size: 20px; }

.bjc-locked { opacity: 0.9; }

/* Archive Page */
.bjc-archive-page { padding: 30px 0 60px; }
.bjc-archive-header { text-align: center; margin-bottom: 30px; }
.bjc-archive-header h1 { font-size: 2rem; margin: 0 0 8px; }
.bjc-archive-header p { color: #6b7280; }

.bjc-filter-bar { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr auto; gap: 10px; padding: 20px; background: #fff; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin-bottom: 30px; }
.bjc-filter-bar input,
.bjc-filter-bar select { padding: 10px 12px; border: 2px solid #e5e7eb; border-radius: 10px; font-size: 14px; font-family: inherit; }
.bjc-filter-bar input:focus,
.bjc-filter-bar select:focus { outline: none; border-color: #ec4899; }

.bjc-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.bjc-pagination a,
.bjc-pagination span { padding: 10px 16px; background: #fff; border-radius: 8px; text-decoration: none; color: #1f2937; font-weight: 500; transition: all 0.2s; }
.bjc-pagination a:hover,
.bjc-pagination .current { background: #ec4899; color: #fff; }

.bjc-empty-state { text-align: center; padding: 80px 20px; }
.bjc-empty-icon { font-size: 80px; opacity: 0.5; margin-bottom: 20px; }
.bjc-empty-state h3 { font-size: 1.5rem; margin: 0 0 12px; }
.bjc-empty-state p { color: #6b7280; margin: 0 0 20px; }

/* Responsive */
@media (max-width: 1024px) {
    .bjc-profiles-grid { grid-template-columns: repeat(2, 1fr); }
    .bjc-profile-header { grid-template-columns: 1fr; }
    .bjc-profile-photo-large { height: 350px; }
    .bjc-filter-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .bjc-auth-card { padding: 24px; }
    .bjc-form-row { grid-template-columns: 1fr; }
    .bjc-profiles-grid { grid-template-columns: 1fr; }
    .bjc-details-grid { grid-template-columns: 1fr; }
    .bjc-filter-bar { grid-template-columns: 1fr; }
    .bjc-radio-group { grid-template-columns: 1fr; }
    .bjc-profile-actions .bjc-btn { width: 100%; }
}