/* Post Moment Page Styles */

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
}

.post-header .back-btn {
    font-size: 18px;
    color: #333;
    padding: 5px;
}

.post-header .header-title {
    font-size: 17px;
    font-weight: 600;
}

.publish-submit-btn {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.post-content {
    background: #fff;
    padding-bottom: 40px;
}

.input-section {
    padding: 16px;
    position: relative;
}

#moment-text {
    width: 100%;
    min-height: 120px;
    border: none;
    resize: none;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    outline: none;
}

#moment-text::placeholder {
    color: #bbb;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

.media-section {
    padding: 0 16px 20px;
    border-bottom: 1px solid #f5f5f5;
}

.upload-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.upload-btn {
    width: 100px;
    height: 100px;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #999;
    cursor: pointer;
}

.upload-btn i {
    font-size: 24px;
}

.upload-btn span {
    font-size: 10px;
}

.media-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

.options-list {
    padding: 0 16px;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-left i {
    font-size: 18px;
    color: #333;
    width: 20px;
    text-align: center;
}

.item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-text .label {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.item-text .sub-label {
    font-size: 12px;
    color: #999;
}

.option-item .arrow {
    font-size: 12px;
    color: #ccc;
}

.item-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.value-text.green {
    color: #27ae60;
    font-size: 14px;
}

.extended-section {
    padding: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-header i {
    font-size: 12px;
    color: #999;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #333;
}

/* Switch Component */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #eee;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #27ae60;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}
