/* PostForge Frontend Styles */

/* Popup Enabled Posts */
.postforge-popup-enabled {
    cursor: pointer;
}

.postforge-popup-enabled:hover {
    opacity: 0.9;
}

/* Popup Overlay */
.postforge-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.postforge-popup-overlay.active {
    display: flex;
    opacity: 1;
}

/* Popup Container */
.postforge-popup-container {
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.postforge-popup-overlay.active .postforge-popup-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.postforge-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.2s;
}

.postforge-popup-close:hover {
    background: #dc3232;
    color: #fff;
    transform: rotate(90deg);
}

/* Popup Content */
.postforge-popup-content {
    padding: 40px;
}

.postforge-popup-content .postforge-content {
    max-width: 100%;
}

/* Loading State */
.postforge-popup-loading {
    text-align: center;
    padding: 60px;
    color: #888;
}

.postforge-popup-loading::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #ddd;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: postforge-spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes postforge-spin {
    to { transform: rotate(360deg); }
}

/* PostForge Content Styles */
.postforge-content {
    max-width: 1200px;
    margin: 0 auto;
}

.postforge-section {
    padding: 60px 20px;
}

.postforge-container {
    max-width: 1000px;
    margin: 0 auto;
}

.postforge-heading {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
    color: #1a1a1a;
}

.postforge-text {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 20px;
    color: #444;
}

.postforge-button {
    display: inline-block;
    padding: 14px 32px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.postforge-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 115, 170, 0.3);
    color: #fff;
}

.postforge-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.postforge-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin: 20px 0;
}

.postforge-video iframe,
.postforge-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.postforge-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.postforge-column {
    min-width: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .postforge-popup-container {
        max-height: 95vh;
        border-radius: 8px;
    }

    .postforge-popup-content {
        padding: 20px;
    }

    .postforge-heading {
        font-size: 28px;
    }

    .postforge-columns {
        grid-template-columns: 1fr;
    }

    .postforge-section {
        padding: 40px 15px;
    }
}

/* Scrollbar styling for popup */
.postforge-popup-container::-webkit-scrollbar {
    width: 8px;
}

.postforge-popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 12px 12px 0;
}

.postforge-popup-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.postforge-popup-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}
