/* =========================================
STRIPE CREATE POST
========================================= */

* {
  box-sizing: border-box;
  }

body {
margin: 0;
background: #F5FAFF;
color: #172B4D;
font-family: Arial, Helvetica, sans-serif;
}

a {
text-decoration: none;
}

/* =========================================
HEADER
========================================= */

.create-header {
height: 65px;
background: #FFFFFF;
border-bottom: 1px solid #E4EDF7;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 5%;
}

.create-header .brand {
display: flex;
align-items: center;
gap: 9px;
color: #168BFA;
font-size: 22px;
font-weight: 800;
}

.create-header .brand img {
display: block;
object-fit: contain;
border-radius: 12px;
}

.close-page {
width: 35px;
height: 35px;
border-radius: 50%;
background: #EAF5FF;
color: #168BFA;
display: flex;
justify-content: center;
align-items: center;
font-size: 17px;
transition: 0.2s;
}

.close-page:hover {
background: #D8ECFF;
}

/* =========================================
MAIN CONTAINER
========================================= */

.create-container {
width: 100%;
max-width: 650px;
margin: 30px auto;
padding: 0 15px;
}

.page-title {
margin-bottom: 18px;
}

.page-title h1 {
font-size: 25px;
margin: 0 0 7px;
}

.page-title p {
color: #718096;
font-size: 12px;
margin: 0;
}

/* =========================================
CREATE CARD
========================================= */

.create-card {
background: #FFFFFF;
border: 1px solid #E4EDF7;
border-radius: 15px;
padding: 22px;
box-shadow: 0 5px 20px rgba(30, 90, 150, 0.05);
}

/* =========================================
USER INFORMATION
========================================= */

.user-information {
display: flex;
align-items: center;
gap: 11px;
padding-bottom: 17px;
border-bottom: 1px solid #EDF2F7;
}

.user-information img {
width: 43px;
height: 43px;
border-radius: 50%;
object-fit: cover;
border: 2px solid #EAF5FF;
}

.user-information strong {
display: block;
font-size: 13px;
}

.user-information small {
display: block;
font-size: 10px;
color: #718096;
margin-top: 5px;
}

/* =========================================
POST TYPE TABS
========================================= */

.post-type-tabs {
display: flex;
gap: 8px;
margin: 18px 0;
border-bottom: 1px solid #EDF2F7;
padding-bottom: 13px;
}

.type-tab {
flex: 1;
height: 38px;
border: none;
background: #F5FAFF;
color: #718096;
border-radius: 8px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: 0.2s;
}

.type-tab span {
margin-right: 5px;
font-size: 15px;
}

.type-tab.active {
background: #EAF5FF;
color: #168BFA;
}

/* =========================================
POST SECTIONS
========================================= */

.post-section {
display: none;
}

.post-section.active {
display: block;
}

/* =========================================
BACKGROUND SELECTOR
========================================= */

.background-heading {
margin-bottom: 12px;
}

.background-heading strong,
.preview-heading strong {
display: block;
font-size: 12px;
}

.background-heading small,
.preview-heading small {
display: block;
color: #8797AA;
font-size: 10px;
margin-top: 5px;
}

.background-options {
display: flex;
flex-wrap: wrap;
gap: 9px;
margin-bottom: 15px;
}

/* COLOUR BACKGROUNDS */

.bg-option {
width: 43px;
height: 43px;
flex: 0 0 43px;
border: 2px solid transparent;
border-radius: 9px;
background: #F5FAFF;
color: #168BFA;
font-size: 12px;
font-weight: bold;
cursor: pointer;
transition: 0.2s;
}

.bg-option.selected {
border-color: #168BFA;
box-shadow: 0 0 0 2px #D9EDFF;
}

.bg-blue {
background: #168BFA;
color: white;
}

.bg-purple {
background: #8154D8;
color: white;
}

.bg-pink {
background: #ED6B9B;
color: white;
}

.bg-orange {
background: #F29B42;
color: white;
}

.bg-green {
background: #21A879;
color: white;
}

.bg-dark {
background: #172B4D;
color: white;
}

.bg-gradient {
background: linear-gradient(135deg, #168BFA, #A55BDE);
color: white;
}

/* CUSTOM IMAGE BACKGROUNDS */

.image-bg-option {
width: 48px;
height: 48px;
flex: 0 0 48px;
border: 2px solid transparent;
border-radius: 9px;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-color: #EAF5FF;
cursor: pointer;
transition: 0.2s;
}

.image-bg-option.selected {
border: 3px solid #168BFA;
box-shadow: 0 0 0 2px #D9EDFF;
}

/* =========================================
TEXT INPUT
========================================= */

.post-section textarea {
width: 100%;
min-height: 130px;
border: 1px solid #E4EDF7;
border-radius: 10px;
background: #F9FCFF;
padding: 14px;
font-size: 14px;
line-height: 1.6;
resize: vertical;
outline: none;
color: #172B4D;
font-family: inherit;
}

.post-section textarea:focus {
border-color: #168BFA;
background: #FFFFFF;
box-shadow: 0 0 0 3px rgba(22, 139, 250, 0.08);
}

.post-section textarea::placeholder {
color: #A0AEC0;
}

.character-count {
text-align: right;
color: #8797AA;
font-size: 10px;
margin-top: 7px;
}

/* =========================================
UPLOAD AREA
========================================= */

.upload-area {
min-height: 185px;
border: 2px dashed #BBDFFF;
border-radius: 12px;
background: #F5FAFF;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 20px;
text-align: center;
}

.upload-icon {
width: 48px;
height: 48px;
border-radius: 50%;
background: #E1F1FF;
color: #168BFA;
font-size: 25px;
display: flex;
justify-content: center;
align-items: center;
}

.video-upload-icon {
color: #E65C70;
}

.upload-area h3 {
font-size: 14px;
margin: 12px 0 5px;
}

.upload-area p {
color: #8797AA;
font-size: 11px;
line-height: 1.5;
}

.upload-area button {
background: #168BFA;
color: #FFFFFF;
border: none;
border-radius: 8px;
padding: 10px 17px;
font-size: 11px;
font-weight: bold;
cursor: pointer;
}

.upload-area button:hover {
background: #0874DC;
}

/* =========================================
SELECTED MEDIA PREVIEW
========================================= */

.media-preview {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 9px;
margin: 12px 0;
}

.media-preview:empty {
display: none;
}

.media-preview img,
.media-preview video {
width: 100%;
max-height: 220px;
object-fit: cover;
border-radius: 9px;
background: #EAF5FF;
}

/* =========================================
POST PREVIEW
========================================= */

.preview-heading {
border-top: 1px solid #EDF2F7;
padding-top: 18px;
margin-top: 22px;
}

.post-preview {
min-height: 110px;
border: 1px solid #E4EDF7;
border-radius: 11px;
margin-top: 12px;
overflow: hidden;
background: #FFFFFF;
}

.preview-placeholder {
min-height: 110px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: #A0AEC0;
font-size: 11px;
padding: 15px;
}

/* TEXT PREVIEW */

.preview-text {
min-height: 180px;
padding: 25px 15px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
white-space: pre-wrap;
overflow-wrap: anywhere;
font-size: 20px;
font-weight: bold;
line-height: 1.5;
}

/* BUILT-IN PREVIEW BACKGROUNDS */

.preview-text.blue {
background: #168BFA;
color: #FFFFFF;
}

.preview-text.purple {
background: #8154D8;
color: #FFFFFF;
}

.preview-text.pink {
background: #ED6B9B;
color: #FFFFFF;
}

.preview-text.orange {
background: #F29B42;
color: #FFFFFF;
}

.preview-text.green {
background: #21A879;
color: #FFFFFF;
}

.preview-text.dark {
background: #172B4D;
color: #FFFFFF;
}

.preview-text.gradient {
background: linear-gradient(135deg, #168BFA, #A55BDE);
color: #FFFFFF;
}

.preview-text.plain {
background: #FFFFFF;
color: #172B4D;
}

/* CUSTOM IMAGE PREVIEW */

.preview-text.image-background {
min-height: 180px;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
color: #FFFFFF;
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
padding: 30px 18px;
}

/* PHOTO AND VIDEO PREVIEW */

.preview-media {
display: block;
width: 100%;
max-height: 300px;
object-fit: contain;
background: #F5FAFF;
}

/* =========================================
STATUS MESSAGE
========================================= */

.post-message {
display: none;
margin-top: 15px;
padding: 11px;
border-radius: 8px;
font-size: 11px;
line-height: 1.5;
}

.post-message.error {
display: block;
background: #FFF0F1;
color: #D93045;
}

.post-message.success {
display: block;
background: #E9F9F0;
color: #16834A;
}

/* =========================================
PUBLISH BUTTON
========================================= */

.publish-button {
width: 100%;
height: 46px;
margin-top: 20px;
background: #168BFA;
color: #FFFFFF;
border: none;
border-radius: 9px;
font-size: 14px;
font-weight: bold;
cursor: pointer;
transition: 0.2s;
}

.publish-button:hover {
background: #0874DC;
}

.publish-button:disabled {
opacity: 0.6;
cursor: not-allowed;
}

/* =========================================
BACK HOME
========================================= */

.back-home {
display: inline-block;
color: #168BFA;
font-size: 12px;
margin: 20px 0;
}

/* =========================================
TABLET
========================================= */

@media (max-width: 700px) {

.create-container {
    margin: 22px auto;
}

}

/* =========================================
MOBILE
========================================= */

@media (max-width: 500px) {

.create-header {
    height: 57px;
    padding: 0 12px;
}

.create-header .brand {
    font-size: 18px;
}

.create-header .brand img {
    width: 45px;
    height: 45px;
}

.create-container {
    margin: 18px auto;
    padding: 0 10px;
}

.page-title h1 {
    font-size: 21px;
}

.create-card {
    padding: 15px;
    border-radius: 12px;
}

.post-section textarea {
    font-size: 12px;
    min-height: 110px;
}

.preview-text {
    font-size: 17px;
}

}

/* =========================================
SMALL PHONES — 320px
========================================= */

@media (max-width: 350px) {

.create-container {
    padding: 0 7px;
    margin-top: 12px;
}

.page-title h1 {
    font-size: 18px;
}

.page-title p {
    font-size: 10px;
}

.create-card {
    padding: 11px;
}

.user-information img {
    width: 35px;
    height: 35px;
}

.type-tab {
    height: 34px;
    font-size: 10px;
}

.background-options {
    gap: 6px;
}

.bg-option {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 10px;
}

.image-bg-option {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.upload-area {
    min-height: 150px;
    padding: 12px;
}

.upload-area h3 {
    font-size: 12px;
}

.upload-area p {
    font-size: 9px;
}

.preview-text {
    font-size: 15px;
    padding: 18px 10px;
}

.publish-button {
    height: 41px;
    font-size: 12px;
}

}

/* =========================================
SELECTED MEDIA REMOVE BUTTONS
========================================= */

.selected-media-item {
position: relative;
min-width: 0;
}

.selected-media-item img,
.selected-media-item video {
display: block;
width: 100%;
max-height: 220px;
object-fit: cover;
border-radius: 9px;
}

.remove-media {
position: absolute;
top: 6px;
right: 6px;
width: 27px;
height: 27px;
border: none;
border-radius: 50%;
background: #E53950;
color: #FFFFFF;
font-size: 19px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.preview-gallery {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 3px;
}

.preview-gallery img {
width: 100%;
max-height: 250px;
object-fit: cover;
display: block;
}

.preview-caption {
padding: 12px;
margin: 0;
font-size: 13px;
line-height: 1.6;
overflow-wrap: anywhere;
color: #172B4D;
}