/* Webreta Memorial Notes - STYLE (v.3.0 - Başlık Özelliği ve Yeni Tasarım) */

/* Grid: 2 sütun, mobil 1 sütun */
.wmn-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 768px) {
    .wmn-grid { grid-template-columns: 1fr; }
}

/* Kart düzeni */
.wmn-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    border: 1px solid #591134;
    border-radius: 12px;
    background: #fff;
    padding: 25px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.wmn-img-col {
    flex: 0 0 260px; 
    max-width: 260px;
    border-radius: 8px;
    overflow: hidden;
}
.wmn-img-col img,
.wmn-img-col video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}
.wmn-body-col { display: flex; flex-direction: column; min-width: 0; }
.wmn-title {
    font-weight: 700;
    font-size: .85em;
    line-height: 1.35;
    margin-bottom: 8px;
    color: black;
    padding: 10px 20px;
    border-radius: 10px;
    background-color: #f9f2f2;
}
.wmn-excerpt {
    line-height: 1.3;
    margin-bottom: 10px;
    font-size: 14px;
    color: #030303;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}
.wmn-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
}
.wmn-sender-footer {
    font-size: 13px;
    font-weight: 700;
    color: #c67a5a;
    font-style: italic;
}
.wmn-read {
    font-size: 13px;
    border-radius: 99px;
    text-transform: capitalize;
    text-decoration: none;
}

/* Form */
.wmn-form { max-width: 640px; margin: 0; }
.wmn-form label { display: block; margin: 8px 0 4px; }
.wmn-form input[type=text], 
.wmn-form textarea, 
.wmn-form input[type=file] {
    width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px;
}
.wmn-form input[type=text]:focus, 
.wmn-form textarea:focus { border: 1px solid #65130d; }
.wmn-form textarea { min-height: 120px; resize: vertical; }
.wmn-btn {
    background: #65130d; border: 0; border-radius: 10px; cursor: pointer;
    color: white; text-transform: capitalize;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    font-size: 14px;
}
.wmn-msg { margin-top: 8px; }

/* Popup düzeni */
body.wmn-locked { overflow: hidden; }
.wmn-popup-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    align-items: flex-start;
}
.wmn-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    justify-content: center;
    align-items: center;
    padding: 24px;
    z-index: 999999;
}
.wmn-modal.is-open { display: flex; }
.wmn-dialog {
    background-color: #fdf6f6;
    width: min(900px, 92vw);
    border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .25);
    position: relative;
    padding: 24px;
    max-height: calc(100vh - 120px);
    overflow: auto;
}
.wmn-x {
    position: absolute;
    right: 10px; top: 10px;
    background: transparent;
    border: 0;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    margin: 0;
    padding-right: 10px;
}
.wmn-dialog-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.wmn-dialog-actions .wmn-close {
    border-radius: 99px;
    background: #65130d;
    cursor: pointer;
    color: white;
    margin: 0;
    border: 0;
    font-size: 14px;
}
.wmn-popup-header {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
    align-items: center;
}
.wmn-popup-sender {
    font-size: 15px;
    font-style: italic;
    font-weight: 700;
    margin-top: 10px;
}
.wmn-popup-sender::before {
    content: "Gönderen: ";
    font-weight: 600;
    color: #6b7280;
}
.wmn-popup-title {
    margin: 0;
    font-size: 1em;
    font-weight: 700;
    background-color: #65130d;
    color: #fff;
    padding: 5px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: auto;
    text-transform: capitalize;
}
.wmn-popup-img {
    grid-column: 1;
    border: 1px solid #f7d4d1;
    padding: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    margin-bottom: 15px;
}
.wmn-popup-img img { width: 100%; height: auto; display: block; }
.wmn-popup-note {
    grid-column: 2;
    line-height: 1.35;
    font-size: 14px;
    color: black;
    background-color: #f9f2f2;
    border-radius: 10px;
}
.wmn-popup-note p:first-child { margin-top: 0; }
.wmn-popup-note p:last-child { margin-bottom: 0; }

/* Mobil uyum */
@media (max-width: 640px) {
    .wmn-dialog {
        padding: 18px;
        max-height: calc(100vh - 90px);
    }
    .wmn-card {
        grid-template-columns: 1fr;
        padding: 10px;
        text-align: left !important; 
        align-items: flex-start !important;
    }
    .wmn-body-col,
    .wmn-excerpt,
    .wmn-popup-note {
        text-align: left !important;
        align-items: flex-start !important;
    }
    .wmn-card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0;
    }
    .wmn-popup-header { gap: 10px; align-items: flex-start; }
    .wmn-excerpt { line-height: 1.35; font-size: .9em; padding: 0 10px; }
    .wmn-sender-footer { padding: 0 10px; }
    .wmn-read { margin-top: 0; }
    .wmn-popup-title, .wmn-popup-sender { font-size: 13px; margin-top: 0; }
    .wmn-popup-img { margin-bottom: 0; }
    .wmn-x { padding: 0; margin-right: 10px; }
    .wmn-popup-note { padding: 10px; }
    .wmn-popup-content { grid-template-columns: 1fr; }
    .wmn-popup-img, .wmn-popup-note { grid-column: 1; }
    .wmn-img-col {
        max-width: 100%;
        display: flex !important;
        justify-content: center !important;
    }
    .wmn-img-col img {
        width: 100%;
        height: auto;
    }
    .wmn-card-img {
        display: block;
        margin: 0 auto;
        max-width: 100%;
        height: auto;
    }
}

/* Lightbox */
.wm-dialog.scroll {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent;
}
.wmn-photo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    margin: 0 auto !important;
    overflow: hidden !important;
}
.wmn-photo img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

