/* ==========================================
   TravoZeen Create Post
   Part 1
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --primary:#1877f2;
    --primary-hover:#1666d8;

    --background:#f0f2f5;

    --card:#ffffff;

    --text:#1c1e21;

    --gray:#65676b;

    --border:#d8dbe0;

    --success:#22c55e;

    --danger:#ef4444;

    --shadow:0 8px 25px rgba(0,0,0,.08);

    --radius:16px;

}

body{

    background:var(--background);

    font-family:Arial,Helvetica,sans-serif;

    color:var(--text);

    min-height:100vh;

}

/* Main */

.create-container{

    width:100%;

    max-width:800px;

    margin:30px auto;

    background:var(--card);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    padding:25px;

}

/* Header */

.top-bar{

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:25px;

}

.top-bar h2{

    font-size:28px;

    font-weight:700;

}

/* Back Button */

.back-btn{

    text-decoration:none;

    color:var(--primary);

    font-size:18px;

    font-weight:bold;

}

/* Publish */

.publish-btn{

    background:var(--primary);

    color:#fff;

    border:none;

    padding:12px 28px;

    border-radius:12px;

    cursor:pointer;

    font-size:16px;

    font-weight:bold;

    transition:.3s;

}

.publish-btn:hover{

    background:var(--primary-hover);

    transform:translateY(-2px);

}

/* Divider */

hr{

    border:none;

    border-top:1px solid var(--border);

    margin:20px 0;

}

/* Tablet */

@media(max-width:992px){

.create-container{

    width:95%;

}

}

/* Mobile */

@media(max-width:768px){

.create-container{

    width:100%;

    margin:0;

    border-radius:0;

    min-height:100vh;

    padding:18px;

}

.top-bar h2{

    font-size:22px;

}

.publish-btn{

    padding:10px 18px;

    font-size:14px;

}

.back-btn{

    font-size:16px;

}

}
/* ==========================================
   TravoZeen Create Post
   Part 2
========================================== */

/* ======================
   User Box
====================== */

.user-box{

    display:flex;

    align-items:center;

    gap:15px;

    margin-bottom:20px;

}

.avatar{

    width:60px;

    height:60px;

    border-radius:50%;

    object-fit:cover;

    border:3px solid #1877f2;

}

.user-box h3{

    font-size:20px;

    margin-bottom:6px;

}

.user-box select{

    padding:8px 14px;

    border:1px solid #ddd;

    border-radius:10px;

    background:#fff;

    cursor:pointer;

    outline:none;

}

/* ======================
   Post Text
====================== */

#postText{

    width:100%;

    min-height:220px;

    border:none;

    resize:vertical;

    outline:none;

    font-size:20px;

    line-height:1.7;

    padding:15px;

    border-radius:15px;

    background:#f7f8fa;

    margin-top:10px;

    margin-bottom:20px;

}

#postText::placeholder{

    color:#888;

    font-size:22px;

}

/* ======================
   Preview
====================== */

.preview{

    width:100%;

    display:flex;

    justify-content:center;

    margin-bottom:20px;

}

#previewImage{

    display:none;

    width:100%;

    max-height:500px;

    object-fit:cover;

    border-radius:16px;

    border:1px solid #ddd;

}

/* ======================
   Action Buttons
====================== */

.actions{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:12px;

    margin-top:10px;

}

.actions button{

    border:none;

    background:#f0f2f5;

    padding:15px;

    border-radius:14px;

    cursor:pointer;

    font-size:16px;

    font-weight:bold;

    transition:.25s;

}

.actions button:hover{

    background:#1877f2;

    color:white;

    transform:translateY(-3px);

}
.location-box{

    display:flex;

    align-items:center;

    gap:10px;

    margin-top:15px;

    padding:12px;

    background:#f0f2f5;

    border-radius:12px;

    font-size:15px;

    font-weight:600;

}
.emoji-picker{

    position:absolute;

    z-index:9999;

    display:none;

    margin-top:10px;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(0,0,0,.2);

}

@media(max-width:768px){

.emoji-picker{

    left:10px;

    right:10px;

    width:auto;

}

}

.feeling-popup{

    display:none;

    margin-top:15px;

    background:#fff;

    border:1px solid #ddd;

    border-radius:12px;

    padding:10px;

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:10px;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}

.feeling-item{

    padding:12px;

    background:#f5f5f5;

    border-radius:10px;

    cursor:pointer;

    text-align:center;

    transition:.25s;

}

.feeling-item:hover{

    background:#1877f2;

    color:#fff;

}

@media(max-width:768px){

.feeling-popup{

    grid-template-columns:1fr;

}

}
.selected-feeling{

    color:#1877F2;

    font-size:14px;

    font-weight:600;

    margin-top:4px;

}

.selected-location{

    color:#65676B;

    font-size:13px;

    margin-top:3px;

}
/* ======================
   Mobile
====================== */

@media(max-width:768px){

.user-box{

    gap:12px;

}

.avatar{

    width:50px;

    height:50px;

}

.user-box h3{

    font-size:18px;

}

#postText{

    min-height:170px;

    font-size:18px;

}

#postText::placeholder{

    font-size:18px;

}

.actions{

    grid-template-columns:repeat(2,1fr);

}

.actions button{

    padding:13px;

    font-size:15px;

}

}
/* ==========================================
   TravoZeen Create Post
   Part 3
========================================== */

/* ======================
   Sponsor Box
====================== */

.sponsor-box{

    margin-top:25px;

    padding:18px;

    background:#ffffff;

    border:1px solid #e4e6eb;

    border-radius:16px;

    box-shadow:0 4px 15px rgba(0,0,0,.06);

}

.sponsor-box label{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:18px;

    font-weight:600;

    cursor:pointer;

}

.sponsor-box input[type="checkbox"]{

    width:22px;

    height:22px;

    accent-color:#1877f2;

    cursor:pointer;

}

.sponsor-box select{

    width:100%;

    margin-top:15px;

    padding:14px;

    border:1px solid #ddd;

    border-radius:12px;

    outline:none;

    font-size:16px;

    background:#f8f9fa;

    cursor:pointer;

}

/* ======================
   Wallet
====================== */

.wallet-box{

    margin-top:20px;

    padding:18px;

    background:linear-gradient(135deg,#1877f2,#42a5f5);

    color:#fff;

    border-radius:16px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:18px;

    font-weight:bold;

    box-shadow:0 8px 20px rgba(24,119,242,.25);

}

#walletBalance{

    font-size:22px;

}

/* ======================
   Publish Button
====================== */

.publish-btn{

    transition:all .3s ease;

}

.publish-btn:active{

    transform:scale(.96);

}

.publish-btn:disabled{

    background:#9ca3af;

    cursor:not-allowed;

}

/* ======================
   Card Hover
====================== */

.create-container{

    transition:.3s;

}

.create-container:hover{

    box-shadow:0 12px 35px rgba(0,0,0,.12);

}

/* ======================
   Mobile
====================== */

@media(max-width:768px){

.sponsor-box{

    padding:15px;

}

.sponsor-box label{

    font-size:16px;

}

.sponsor-box select{

    font-size:15px;

}

.wallet-box{

    flex-direction:column;

    gap:8px;

    text-align:center;

    font-size:16px;

}

#walletBalance{

    font-size:20px;

}

}
/* ==========================================
   TravoZeen Create Post
   Part 4
========================================== */

/* =========================
   Loading Overlay
========================= */

.loading-overlay{

    position:fixed;

    inset:0;

    background:rgba(255,255,255,.75);

    backdrop-filter:blur(4px);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:99999;

}

.loading-overlay.show{

    display:flex;

}

/* =========================
   Spinner
========================= */

.spinner{

    width:70px;

    height:70px;

    border:6px solid #e5e7eb;

    border-top:6px solid #1877f2;

    border-radius:50%;

    animation:spin 1s linear infinite;

}

@keyframes spin{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

/* =========================
   Fade Animation
========================= */

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(15px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.create-container{

    animation:fadeIn .4s ease;

}

/* =========================
   Button Hover
========================= */

.actions button:hover,

.publish-btn:hover{

    box-shadow:0 10px 25px rgba(24,119,242,.25);

}

/* =========================
   Dark Mode
========================= */

body.dark{

    background:#18191a;

    color:#f5f5f5;

}

body.dark .create-container{

    background:#242526;

}

body.dark #postText{

    background:#3a3b3c;

    color:#fff;

}

body.dark #postText::placeholder{

    color:#bbb;

}

body.dark .user-box select{

    background:#3a3b3c;

    color:#fff;

    border:1px solid #555;

}

body.dark .actions button{

    background:#3a3b3c;

    color:#fff;

}

body.dark .actions button:hover{

    background:#1877f2;

}

body.dark .sponsor-box{

    background:#2d2e2f;

    border-color:#444;

}

body.dark .sponsor-box select{

    background:#3a3b3c;

    color:#fff;

    border:1px solid #555;

}

/* =========================
   Responsive
========================= */

@media (max-width:1024px){

.create-container{

    max-width:95%;

}

}

@media (max-width:600px){

.top-bar{

    flex-wrap:wrap;

    gap:10px;

}

.publish-btn{

    width:100%;

}

.user-box{

    flex-direction:column;

    align-items:flex-start;

}

.actions{

    grid-template-columns:1fr;

}

#previewImage{

    max-height:300px;

}

}
/* ==========================================
   TravoZeen Create Post
   Part 5 (Final)
========================================== */

/* ===============================
   Toast Notification
================================ */

.toast{

    position:fixed;

    right:25px;

    bottom:25px;

    min-width:280px;

    max-width:350px;

    padding:16px 20px;

    border-radius:14px;

    color:#fff;

    font-size:15px;

    font-weight:600;

    box-shadow:0 10px 30px rgba(0,0,0,.25);

    opacity:0;

    transform:translateY(40px);

    transition:.35s ease;

    z-index:999999;

}

.toast.show{

    opacity:1;

    transform:translateY(0);

}

.toast.success{

    background:#16a34a;

}

.toast.error{

    background:#dc2626;

}

.toast.warning{

    background:#f59e0b;

}

.toast.info{

    background:#2563eb;

}

/* ===============================
   Scrollbar
================================ */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#ececec;

}

::-webkit-scrollbar-thumb{

    background:#1877f2;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#125fd0;

}

/* Firefox */

*{

    scrollbar-width:thin;

    scrollbar-color:#1877f2 #ececec;

}

/* ===============================
   Focus Effects
================================ */

input:focus,
textarea:focus,
select:focus{

    outline:none;

    border:2px solid #1877f2;

    box-shadow:0 0 0 4px rgba(24,119,242,.15);

}

/* ===============================
   Selection
================================ */

::selection{

    background:#1877f2;

    color:#fff;

}

/* ===============================
   Smooth Transition
================================ */

*{

    transition:
    background .25s,
    color .25s,
    border .25s,
    box-shadow .25s,
    transform .25s;

}

/* ===============================
   Footer Space
================================ */

.create-container{

    margin-bottom:80px;

}

/* ===============================
   Image Hover
================================ */

#previewImage{

    transition:.35s;

}

#previewImage:hover{

    transform:scale(1.02);

}

/* ===============================
   Publish Button Effect
================================ */

.publish-btn{

    position:relative;

    overflow:hidden;

}

.publish-btn::after{

    content:"";

    position:absolute;

    top:0;

    left:-120%;

    width:70%;

    height:100%;

    background:rgba(255,255,255,.35);

    transform:skewX(-20deg);

}

.publish-btn:hover::after{

    left:150%;

    transition:.7s;

}

/* ===============================
   Sponsor Glow
================================ */

.sponsor-box{

    position:relative;

}

.sponsor-box:hover{

    box-shadow:
    0 0 0 2px rgba(24,119,242,.12),
    0 15px 35px rgba(24,119,242,.12);

}

/* ===============================
   Wallet Animation
================================ */

.wallet-box{

    animation:walletFloat 3s ease-in-out infinite;

}

@keyframes walletFloat{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-4px);

    }

    100%{

        transform:translateY(0);

    }

}

/* ===============================
   Mobile
================================ */

@media(max-width:768px){

.toast{

    right:10px;

    left:10px;

    bottom:15px;

    min-width:auto;

    max-width:none;

    font-size:14px;

}

.create-container{

    margin-bottom:100px;

}

}
/* ==========================
   Mobile Full Screen
========================== */

@media (max-width:768px){

    html,
    body{

        width:100%;
        height:100%;
        margin:0;
        padding:0;
        overflow-x:hidden;

    }

    .create-container{

        width:100%;
        max-width:100%;
        min-height:100vh;

        margin:0;
        padding:16px;

        border-radius:0;

        box-shadow:none;

        background:#fff;

    }

    .top-bar{

        position:sticky;

        top:0;

        left:0;

        width:100%;

        background:#fff;

        z-index:999;

        padding:12px 0;

        border-bottom:1px solid #ddd;

    }

    #postText{

        min-height:250px;

        font-size:18px;

    }

    #previewImage{

        width:100%;
        max-height:400px;
        object-fit:cover;

    }

    .actions{

        grid-template-columns:repeat(2,1fr);

    }

    .publish-btn{

        width:100%;

        margin-top:15px;

    }

}