/* miniblog.css */

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #e9e8e2;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#post-container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
#post-container::-webkit-scrollbar { display: none; }

.post-card {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background-color: #ebe8e1;
    scroll-snap-align: start;
    transition: transform 0.2s;
    font-size: 1.2rem;
}

.post-card:hover { transform: translateY(-3px); }


/* Alt sağda sabit yaz butonu */
#write-button {
    position: fixed;
    top: 30px;
    right: 20px;
    display: flex;
    align-items: center;      /* ikon ve yazıyı yatayda ortala */
    justify-content: center;  /* dikeyde de ortala */
    color: #fd671e;
    text-decoration: none;
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
}

#write-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

#write-button svg {
    width: 50px;   /* SVG boyutu */
    height: 50px;
    color: #fd671e;
}


.post-card {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background-color: #ebe8e1;
    scroll-snap-align: start;
    transition: transform 0.2s;
    font-size: 1.2rem;
    position: relative; /* sticker'lar absolute konumlanacaksa gerekli */
}

.post-card:hover { 
    transform: translateY(-3px); 
}

/* Alt elemanlar */
.post-card .useridtext {
    color: #4a5568;   /* text-gray-700 */
    font-size: 0.875rem; /* text-sm */
}

body.dark-mode .post-card .useridtext {
    color: #e2e8f0; /* dark:text-gray-200 */
}

.post-card .postcontent {
    margin-top: 0.5rem; /* mt-2 */
    color: #1a202c;     /* text-gray-900 */
}

body.dark-mode .post-card .postcontent {
    color: #f7fafc; /* dark:text-gray-100 */
}

.post-card .createdby {
    margin-top: 0.5rem; /* mt-2 */
    font-size: 0.75rem; /* text-xs */
    color: #718096;     /* text-gray-500 */
}

body.dark-mode .post-card .createdby {
    color: #a0aec0; /* dark:text-gray-400 */
}

/* Sticker resimleri için */
.post-card .sticker-image {
    position: absolute;
    width: 4rem;  /* w-16 */
    height: 4rem; /* h-16 */
    z-index: 200;
}



@media (max-width: 768px) {
    .post-card { font-size: 1.5rem; padding: 1rem; }
}

@media (max-width: 480px) {
    .post-card {
        font-size: 2rem;       /* Daha büyük yazı */
        padding: 0rem 1.2rem 2rem 1.2rem;
        text-align: left;      /* Sol hizala */
        align-items: flex-start; /* İçeriği sola hizala */
    }
}


@media (pointer: coarse) {
    #post-container { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}

/* Profil resmi */
#profile-pic {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 0px solid #fff;
    z-index: 999;
    transition: transform 0.2s;
    background-color: #fff;
}

#profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#profile-pic:hover { transform: scale(1.0); }


/* Dark mode stilini body class ile kontrol et */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .post-card {
    background-color: #1e1e1e;
    color: #f0f0f0;
}

body.dark-mode #profile-pic {
    background-color: #2c2c2c;
}



/* Buton ve link yazıları */
body.dark-mode a,
body.dark-mode button,
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    color: #f0f0f0 !important;
}

/* SVG renklerini yazıya uyumlu yap */
body.dark-mode svg {
    stroke: currentColor; /* stroke renkleri body color ile eşleşir */
    fill: currentColor;   /* dolgu varsa dolgu rengi de body color ile eşleşir */
}

