
    /* =========================================================
   DARK MODE
   ========================================================= */

/* =========================================================
   MYBLOG DARK MODE
   ========================================================= */

html.dark-mode,
html.dark-mode body {
    background: #18191a;
    color: #e4e6eb;
}

/* =========================================================
   HEADER
   ========================================================= */

html.dark-mode .header {
    background: rgba(36, 37, 38, 0.98);
    border-bottom-color: #3a3b3c;
}

html.dark-mode .back-button {
    background: #3a3b3c;
    color: #e4e6eb;
}

html.dark-mode .back-button:hover {
    background: #4a4b4d;
}

html.dark-mode .header-title {
    color: #e4e6eb;
}

html.dark-mode .header-post-button {
    background: #1877f2;
    color: #ffffff;
}

/* =========================================================
   MAIN CONTAINER
   ========================================================= */

html.dark-mode .container {
    background: transparent;
}

/* =========================================================
   USER CARD
   ========================================================= */

html.dark-mode .user-card {
    background: #242526;
}

html.dark-mode .user-name {
    color: #e4e6eb;
}

html.dark-mode .user-username {
    color: #b0b3b8;
}

/* =========================================================
   EDITOR
   ========================================================= */

html.dark-mode .editor {
    background: #242526;
}

html.dark-mode .post-textarea {
    background: transparent;
    color: #e4e6eb;
    caret-color: #4595ff;
}

html.dark-mode .post-textarea::placeholder {
    color: #8a8d91;
}

html.dark-mode .character-count {
    color: #8a8d91;
}

/* =========================================================
   POST OPTIONS
   ========================================================= */

html.dark-mode .options {
    background: #242526;
}

html.dark-mode .option-title {
    color: #e4e6eb;
}

/* Visibility */
html.dark-mode .visibility-select {
    background: #3a3b3c;
    border-color: #4a4b4d;
    color: #e4e6eb;
}

html.dark-mode .visibility-select:focus {
    border-color: #1877f2;
}

html.dark-mode .visibility-select option {
    background: #242526;
    color: #e4e6eb;
}

/* =========================================================
   SETTINGS
   ========================================================= */

html.dark-mode .setting {
    border-bottom-color: #3a3b3c;
}

html.dark-mode .setting-text strong {
    color: #e4e6eb;
}

html.dark-mode .setting-text span {
    color: #a5a8ad;
}

html.dark-mode .setting-icon {
    background: #263a5b;
    color: #4595ff;
}

/* =========================================================
   SWITCH
   ========================================================= */

html.dark-mode .slider {
    background: #55575a;
}

html.dark-mode .slider:before {
    background: #e4e6eb;
}

html.dark-mode .switch input:checked + .slider {
    background: #1877f2;
}

/* =========================================================
   MEDIA SECTION
   ========================================================= */

html.dark-mode .media-section {
    background: #242526;
}

html.dark-mode .media-title {
    color: #e4e6eb;
}

html.dark-mode .media-subtitle {
    color: #a5a8ad;
}

html.dark-mode .media-button {
    background: #18191a;
    border-color: #4a4b4d;
    color: #b0b3b8;
}

html.dark-mode .media-button:hover {
    background: #263a5b;
    border-color: #4595ff;
    color: #e4e6eb;
}

html.dark-mode .media-button.photo i {
    color: #35c77a;
}

html.dark-mode .media-button.video i {
    color: #ff667a;
}

/* =========================================================
   PREVIEW
   ========================================================= */

html.dark-mode .preview-section {
    background: #242526;
}

html.dark-mode .preview-title {
    color: #e4e6eb;
}

html.dark-mode .preview-item {
    background: #3a3b3c;
}

html.dark-mode .remove-preview {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

/* =========================================================
   CLEAR MEDIA
   ========================================================= */

html.dark-mode .clear-media {
    color: #ff667a;
}

/* =========================================================
   PUBLISH
   ========================================================= */

html.dark-mode .submit-section {
    background: transparent;
}

html.dark-mode .publish-button {
    background: #1877f2;
    color: #ffffff;
}

html.dark-mode .publish-button:hover:not(:disabled) {
    background: #166fe5;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

html.dark-mode::-webkit-scrollbar,
html.dark-mode body::-webkit-scrollbar {
    width: 8px;
}

html.dark-mode::-webkit-scrollbar-track,
html.dark-mode body::-webkit-scrollbar-track {
    background: #18191a;
}

html.dark-mode::-webkit-scrollbar-thumb,
html.dark-mode body::-webkit-scrollbar-thumb {
    background: #4a4b4d;
    border-radius: 10px;
}

html.dark-mode::-webkit-scrollbar-thumb:hover,
html.dark-mode body::-webkit-scrollbar-thumb:hover {
    background: #606164;
}

/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 768px) {

    html.dark-mode .user-card,
    html.dark-mode .editor,
    html.dark-mode .options,
    html.dark-mode .media-section,
    html.dark-mode .preview-section {
        border-color: #3a3b3c;
    }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    html.dark-mode,
    html.dark-mode body {
        background: #18191a;
    }

    html.dark-mode .header {
        background: #242526;
    }

}
/* End dark mode styles */

/*
|--------------------------------------------------------------------------
| RESET
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #f0f2f5;

    color: #182230;

    padding-bottom: 30px;

    -webkit-tap-highlight-color:
        transparent;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    border: none;
}

a {
    text-decoration: none;
    color: inherit;
}


/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.header {

    position: sticky;

    top: 0;

    z-index: 1000;

    height: 62px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 15px;

    background: rgba(
        255,
        255,
        255,
        .98
    );

    border-bottom:
        1px solid #e0e4e8;

    backdrop-filter:
        blur(12px);
}

.header-left {

    display: flex;

    align-items: center;

    gap: 12px;
}

.back-button {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #f0f2f5;

    color: #263142;

    font-size: 19px;

    cursor: pointer;
}

.header-title {

    font-size: 18px;

    font-weight: 750;
}

.header-post-button {

    padding: 9px 17px;

    border-radius: 20px;

    background: #1877f2;

    color: white;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    opacity: .5;

    pointer-events: none;

    transition: .2s;
}

.header-post-button.ready {

    opacity: 1;

    pointer-events: auto;
}


/*
|--------------------------------------------------------------------------
| CONTAINER
|--------------------------------------------------------------------------
*/

.container {

    width: 100%;

    max-width: 680px;

    margin: 0 auto;
}


/*
|--------------------------------------------------------------------------
| USER
|--------------------------------------------------------------------------
*/

.user-card {

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 15px;

    background: white;
}

.user-photo {

    width: 45px;

    height: 45px;

    border-radius: 50%;

    object-fit: cover;
}

.user-name {

    font-size: 14px;

    font-weight: 750;
}

.user-username {

    margin-top: 2px;

    color: #89929e;

    font-size: 10px;
}


/*
|--------------------------------------------------------------------------
| TEXT AREA
|--------------------------------------------------------------------------
*/

.editor {

    background: white;

    padding: 0 15px 15px;
}

.post-textarea {

    display: block;

    width: 100%;

    min-height: 180px;

    resize: none;

    border: none;

    outline: none;

    background: transparent;

    color: #263142;

    font-size: 18px;

    line-height: 1.55;

    padding: 10px 0;
}

.post-textarea::placeholder {
    color: #a0a8b2;
}

.character-count {

    text-align: right;

    color: #9aa3ad;

    font-size: 10px;
}


/*
|--------------------------------------------------------------------------
| OPTIONS
|--------------------------------------------------------------------------
*/

.options {

    background: white;

    margin-top: 8px;

    padding: 15px;
}

.option-title {

    margin-bottom: 13px;

    font-size: 13px;

    font-weight: 750;
}

.visibility-select {

    width: 100%;

    height: 44px;

    padding: 0 12px;

    border:
        1px solid #e0e4e8;

    border-radius: 10px;

    outline: none;

    background: white;

    color: #303947;

    font-size: 12px;
}

.setting {

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 48px;

    border-bottom:
        1px solid #edf0f2;
}

.setting:last-child {
    border-bottom: none;
}

.setting-left {

    display: flex;

    align-items: center;

    gap: 10px;
}

.setting-icon {

    width: 32px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #eef4ff;

    color: #1877f2;

    font-size: 15px;
}

.setting-text strong {

    display: block;

    font-size: 12px;
}

.setting-text span {

    display: block;

    margin-top: 2px;

    color: #8a94a0;

    font-size: 9px;
}


/*
|--------------------------------------------------------------------------
| SWITCH
|--------------------------------------------------------------------------
*/

.switch {

    position: relative;

    width: 42px;

    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {

    position: absolute;

    inset: 0;

    cursor: pointer;

    border-radius: 20px;

    background: #c8cdd3;

    transition: .2s;
}

.slider:before {

    content: "";

    position: absolute;

    width: 18px;

    height: 18px;

    left: 3px;

    top: 3px;

    border-radius: 50%;

    background: white;

    box-shadow:
        0 1px 3px
        rgba(0,0,0,.2);

    transition: .2s;
}

.switch input:checked + .slider {
    background: #1877f2;
}

.switch input:checked + .slider:before {
    transform: translateX(18px);
}


/*
|--------------------------------------------------------------------------
| MEDIA BOX
|--------------------------------------------------------------------------
*/

.media-section {

    background: white;

    margin-top: 8px;

    padding: 15px;
}

.media-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 12px;
}

.media-title {

    font-size: 13px;

    font-weight: 750;
}

.media-subtitle {

    color: #929ba6;

    font-size: 9px;
}

.media-buttons {

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 10px;
}

.media-button {

    height: 78px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 7px;

    border:
        1px dashed #cdd3da;

    border-radius: 12px;

    background: #fafbfc;

    color: #6e7885;

    cursor: pointer;

    transition: .2s;
}

.media-button:hover {

    border-color: #1877f2;

    background: #f5f8ff;
}

.media-button i {
    font-size: 24px;
}

.media-button.photo i {
    color: #20a66a;
}

.media-button.video i {
    color: #e14e62;
}

.media-button span {
    font-size: 10px;
    font-weight: 650;
}


/*
|--------------------------------------------------------------------------
| PREVIEW
|--------------------------------------------------------------------------
*/

.preview-section {

    display: none;

    background: white;

    margin-top: 8px;

    padding: 15px;
}

.preview-section.show {
    display: block;
}

.preview-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 10px;
}

.preview-title {

    font-size: 12px;

    font-weight: 750;
}

.clear-media {

    color: #e14e62;

    background: transparent;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;
}

.preview-grid {

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 5px;
}

.preview-item {

    position: relative;

    height: 150px;

    overflow: hidden;

    border-radius: 8px;

    background: #eef0f2;
}

.preview-item img,
.preview-item video {

    width: 100%;

    height: 100%;

    object-fit: cover;
}

.remove-preview {

    position: absolute;

    top: 6px;

    right: 6px;

    width: 26px;

    height: 26px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        rgba(0,0,0,.7);

    color: white;

    cursor: pointer;

    font-size: 13px;
}


/*
|--------------------------------------------------------------------------
| SUBMIT
|--------------------------------------------------------------------------
*/

.submit-section {

    padding: 15px;
}

.publish-button {

    width: 100%;

    height: 48px;

    border-radius: 12px;

    background: #1877f2;

    color: white;

    font-size: 13px;

    font-weight: 750;

    cursor: pointer;

    transition: .2s;
}

.publish-button:disabled {

    opacity: .5;

    cursor: not-allowed;
}

.publish-button:not(:disabled):active {

    transform: scale(.98);
}


/*
|--------------------------------------------------------------------------
| DESKTOP
|--------------------------------------------------------------------------
*/

@media (min-width: 768px) {

    body {
        padding-bottom: 50px;
    }

    .container {
        margin-top: 15px;
    }

    .user-card,
    .editor,
    .options,
    .media-section,
    .preview-section {
        border-radius: 10px;
    }

}
