/* =========================
   BASE
========================= */
html, body {
    width: 100%;
    overflow-x: hidden;
    
}
*{
    box-sizing:border-box;
}

body{
    font-family: 'Barlow', Helvetica, Arial, sans-serif;
    margin:0;
    background:#f9f9f9;
    color:#111;
}

h1,h2,h3{
    margin:0;
    padding:15px 20px;
    font-weight:600;
}

/* =========================
   GRID FEED (PEXELS STYLE)
========================= */

.grid{
    column-count:4;
    column-gap:25px;
    padding:25px;
}
/* =========================
   RESPONSIVE
========================= */

@media(max-width:1000px){
    .grid{ column-count:3; }
    .stats{ grid-template-columns:repeat(2,1fr);padding:25px; }
}

@media(max-width:700px){
    .grid{ column-count:2;padding:12px; }
    .post-container{ flex-direction:column; }
}

@media(max-width:500px){
    .grid{ column-count:1;padding:12px; }
}

.footer{
    text-align:center;
    padding:20px;
    margin-top:40px;
    background:#fff;
    border-top:1px solid #eee;
}

.card {
    background: transparent;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    break-inside: avoid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: 0.2s;
}
@media(max-width:700px){
    .card {
    background: transparent;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    break-inside: avoid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: 0.2s;
}
}
@media(max-width:500px){
    .card {
    background: transparent;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    break-inside: avoid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: 0.2s;
}
    
}

.card:hover{
    transform:translateY(-2px);
}

.card img{
    width:100%;
    display:block;
}


/* =========================
   POST PAGE LAYOUT
========================= */

.post-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 25px 10px 25px 10px;
}

.post-image img{
    max-width:100%;
    width:100%;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.post-info{
    flex:1;
    background:#fff;
    padding:20px;
    border-radius:12px;
    font-size:15px;
}

/* =========================
   TAGS
========================= */

.tags{
    margin-top:10px;
}

.tags span{
    display:inline-block;
    background:#f1f1f1;
    padding:6px 12px;
    margin:4px;
    border-radius:20px;
    font-size:12px;
    color:#333;
}

/* =========================
   ACTIONS (LIKE / DOWNLOAD)
========================= */

.actions{
    margin:15px 0;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.actions button,
.actions a{
    padding:10px 14px;
    background:#111;
    color:#fff;
    border:none;
    border-radius:8px;
    text-decoration:none;
    cursor:pointer;
    font-size:14px;
    transition:0.2s;
}

.actions button:hover,
.actions a:hover{
    background:#333;
}

/* =========================
   COMMENTS
========================= */

.comments{
    margin-top:20px;
}

.comments form{
    display:flex;
    gap:10px;
    margin-bottom:15px;
}

.comments input{
    flex:1;
    padding:10px;
    border:1px solid #ddd;
    border-radius:8px;
}

.comment{
    background:#fafafa;
    padding:10px;
    margin-bottom:8px;
    border-radius:8px;
    border:1px solid #eee;
}

/* =========================
   ADMIN DASHBOARD
========================= */

.stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin:20px;
}

.box{
    background:#fff;
    padding:20px;
    border-radius:12px;
    text-align:center;
    font-size:18px;
    font-weight:600;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
}




/* REGISTER */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* HEADER */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

.header-inner {
    max-width: 1100px;
    margin: auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo {
    font-weight: 700;
    font-size: 18px;
}

/* NAV */
.nav {
    display: flex;
    gap: 15px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

/* MOBILE MENU BUTTON */
.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

/* MOBILE NAV */
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

.mobile-nav a {
    padding: 10px 0;
    text-decoration: none;
    color: #333;
}

/* CONTAINER */
.container {
    min-height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* AUTH BOX */
.auth-box {
    width: 100%;
    max-width: 400px;
}

.auth-box h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* INPUT */
.auth-box input {
    width: 100%;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 16px;
}

/* BUTTON */
.auth-box button {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: #000000;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

/* FOOTER TEXT */
.auth-footer {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* MOBILE */
@media(max-width: 768px){

    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-nav.active {
        display: flex;
    }

    .header-inner {
        padding: 14px;
    }

    .container {
        align-items: flex-start;
        padding-top: 40px;
    }
}


.badge{color:black;text-decoration:ounderline;}

.tag-post {
    display: inline-block;
    background: #f6f6f6;
    padding: 5px 10px;
    margin: 3px 0px 3px 0px;
    color: #000;
    text-decoration: none;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1;
    transition: 0.2s ease;
}
    
    
.password-box{
    position: relative;
    display: flex;
    align-items: center;
}

.password-box input{
    width: 100%;
    padding-right: 40px;
}

.toggle-pass {
    position: absolute;
    right: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    opacity: 0.7;
    top: 15px;
}

.toggle-pass:hover{
    opacity: 1;
}