/* =========================================
   WM BLOGGER - KOMPLETT CSS
   ========================================= */

/* ========================================
   POPUP STYLING
   ======================================== */

.wm-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wm-popup-content {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: wmPopupSlideIn 0.3s ease-out;
}

@keyframes wmPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wm-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 5px 10px;
    transition: color 0.2s;
}

.wm-popup-close:hover {
    color: #000;
}

.wm-popup-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
}

.wm-popup-content select,
.wm-popup-content input[type="text"],
.wm-popup-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s, opacity 0.3s;
}

.wm-popup-content select:focus,
.wm-popup-content input[type="text"]:focus,
.wm-popup-content textarea:focus {
    border-color: #2271b1;
    outline: none;
}

.wm-popup-content textarea {
    min-height: 150px;
    resize: vertical;
}

.wm-popup-content input[type="file"] {
    margin-bottom: 15px;
}

#steg2, #steg3, #steg4 {
    transition: opacity 0.3s ease;
}

.wm-popup-content .wp-element-button {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    margin-top: 10px;
}

.wm-popup-content .wp-element-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

body.wm-popup-active {
    overflow: hidden;
}

#wm-blogger-popup-trigger {
    cursor: pointer;
}

/* ========================================
   BLOGG CONTAINER & HEADER
   ======================================== */

.wm-blogger-container {
    margin: 40px 0;
}

.wm-blog-header {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.wm-blog-header-image {
    width: 100%;
    height: auto;
    display: block;
}

.wm-blog-title {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

/* ========================================
   BLOGGPOST LISTNING
   ======================================== */
.list article






.wm-blogger-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blogger-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.blogger-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blogger-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.postlist-text {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.postlist-text small {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.postlist-text h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.postlist-text p {
    margin: 0 0 15px 0;
    color: #444;
    line-height: 1.6;
    flex: 1;
}

.postlist-text .wp-element-button {
    margin-top: auto;
    display: inline-block;
    align-self: flex-start;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .wm-popup-content {
        padding: 25px;
        max-width: 100%;
    }
    
    .wm-blogger-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wm-blog-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .wm-popup-content {
        padding: 20px;
    }
    
    .blogger-post img {
        height: 150px;
    }
    
    .postlist-text {
        padding: 15px;
    }
}