/* ============================================
   Mobile Feature Pages - Shared Design System
   ============================================ */

.feat-main {
    background-color: transparent;
    min-height: auto;
    padding: 0;
}

.feat-container {
    padding: 0;
    margin: 0;
}

/* Hero */
.feat-hero {
    background: linear-gradient(130deg, #7ea5f6, #ff384c);
    border-radius: 20px;
    margin: 20px 15px 25px 15px;
    padding: 30px 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.1);
}

.feat-hero-title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 24px;
    line-height: 30px;
    font-weight: 800;
    color: #FFF;
    margin: 0 0 5px 0;
    letter-spacing: -0.8px;
}

.feat-hero-sub {
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 300;
}

/* Cards */
.feat-card {
    background-color: #FFFFFF;
    border-radius: 20px;
    margin: 0 15px 20px 15px;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#listings-container {
    overflow: visible;
}

.theme-dark .feat-card {
    background-color: #0c1117;
}

.feat-card-header {
    padding: 20px 15px 15px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.theme-dark .feat-card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feat-card-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feat-card-title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #1f1f1f;
    letter-spacing: -0.8px;
    margin: 0;
}

.theme-dark .feat-card-title {
    color: #FFF;
}

.feat-card-subtitle {
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    color: #727272;
    font-weight: 400;
    margin: 0;
}

.theme-dark .feat-card-subtitle {
    color: #898989;
}

.feat-card-body {
    padding: 20px 15px;
}

/* Section labels */
.feat-section-label {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #4A89DC;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(74, 137, 220, 0.15);
}

.theme-dark .feat-section-label {
    color: #5D9CEC;
    border-bottom-color: rgba(93, 156, 236, 0.15);
}

/* Form */
.feat-form-group {
    position: relative;
    margin-bottom: 14px;
}

.feat-form-label {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #4A89DC;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.theme-dark .feat-form-label {
    color: #5D9CEC;
}

.feat-form-control {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 0 13px;
    font-size: 14px;
    font-family: "Roboto", sans-serif;
    color: #1f1f1f;
    background-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.theme-dark .feat-form-control {
    border-color: rgba(255, 255, 255, 0.05);
    color: #FFF;
}

.feat-form-control::placeholder {
    color: #b0b0b0;
}

.theme-dark .feat-form-control::placeholder {
    color: #898989;
}

.feat-form-control:focus {
    outline: none;
    border-color: #4A89DC;
}

.theme-dark .feat-form-control:focus {
    border-color: #5D9CEC;
}

.feat-form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23727272' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 35px;
    cursor: pointer;
}

.theme-dark .feat-form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.feat-form-select option {
    background-color: #FFF;
    color: #1f1f1f;
}

.theme-dark .feat-form-select option {
    background-color: #0c1117;
    color: #FFF;
}

/* Buttons */
.feat-btn-primary {
    display: block;
    width: 100%;
    background-color: #5D9CEC;
    color: #FFF;
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: "Noto Sans JP", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 300ms ease;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.feat-btn-primary:hover,
.feat-btn-primary:focus {
    background-color: #4A89DC;
    outline: none;
    color: #FFF;
}

.feat-btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #4A89DC;
    border: 1px solid #4A89DC;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 600;
    font-family: "Noto Sans JP", sans-serif;
    cursor: pointer;
    transition: all 300ms ease;
    text-decoration: none;
}

.theme-dark .feat-btn-secondary {
    color: #5D9CEC;
    border-color: #5D9CEC;
}

.feat-btn-secondary:hover {
    background-color: rgba(74, 137, 220, 0.1);
    color: #4A89DC;
}

.theme-dark .feat-btn-secondary:hover {
    background-color: rgba(93, 156, 236, 0.1);
    color: #5D9CEC;
}

/* List items */
.feat-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.theme-dark .feat-list-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feat-list-item:last-child {
    border-bottom: none;
}

.feat-list-item:hover,
.feat-list-item:active {
    background-color: rgba(74, 137, 220, 0.04);
}

.feat-list-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.05);
}

.feat-list-content {
    flex: 1;
    min-width: 0;
}

.feat-list-title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1f1f1f;
    letter-spacing: -0.3px;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-dark .feat-list-title {
    color: #FFF;
}

.feat-list-meta {
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    color: #727272;
    font-weight: 400;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-dark .feat-list-meta {
    color: #898989;
}

.feat-list-arrow {
    color: #c0c0c0;
    font-size: 12px;
    flex-shrink: 0;
}

/* Toggle rows for manage search */
.feat-toggle-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.theme-dark .feat-toggle-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feat-toggle-item:last-child {
    border-bottom: none;
}

.feat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.feat-status-dot-on {
    background-color: #8CC152;
}

.feat-status-dot-off {
    background-color: #DA4453;
}

.feat-toggle-name {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1f1f1f;
    letter-spacing: -0.3px;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.theme-dark .feat-toggle-name {
    color: #FFF;
}

.feat-toggle-actions {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-shrink: 0;
}

.feat-toggle-actions a {
    color: #b0b0b0;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.feat-toggle-actions a:hover {
    color: #4A89DC;
}

.feat-toggle-actions a.feat-action-delete:hover {
    color: #DA4453;
}

/* Badges */
.feat-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    font-family: "Roboto", sans-serif;
    letter-spacing: 0.2px;
}

.feat-badge-blue {
    background-color: rgba(74, 137, 220, 0.12);
    color: #4A89DC;
}

.theme-dark .feat-badge-blue {
    background-color: rgba(93, 156, 236, 0.15);
    color: #5D9CEC;
}

.feat-badge-green {
    background-color: rgba(140, 193, 82, 0.15);
    color: #5C8A2A;
}

.theme-dark .feat-badge-green {
    background-color: rgba(140, 193, 82, 0.15);
    color: #8CC152;
}

.feat-badge-red {
    background-color: rgba(218, 68, 83, 0.12);
    color: #DA4453;
}

/* Spacer */
.feat-spacer {
    height: 8px;
}

.feat-bottom-spacer {
    height: 80px;
}

/* Empty state */
.feat-empty {
    padding: 40px 20px;
    text-align: center;
}

.feat-empty-text {
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    color: #727272;
    font-weight: 400;
    margin: 0;
}

.theme-dark .feat-empty-text {
    color: #898989;
}

/* Checkbox group */
.feat-check-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feat-check-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4A89DC;
    flex-shrink: 0;
}

.feat-check-group label {
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    color: #1f1f1f;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

.theme-dark .feat-check-group label {
    color: #FFF;
}

/* Filters row */
.feat-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Select2 overrides */
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    height: 48px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 35px 0 13px !important;
    line-height: 48px !important;
    color: #1f1f1f !important;
    font-family: "Roboto", sans-serif !important;
    font-size: 14px !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
    right: 10px !important;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    padding: 4px 8px !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #4A89DC !important;
    outline: none !important;
    box-shadow: none !important;
}

.select2-dropdown {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #5D9CEC !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #5D9CEC !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 4px 10px !important;
    color: #FFF !important;
    font-size: 11px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255, 255, 255, 0.7) !important;
    margin-right: 5px !important;
}
