/**
 * TechEdu Pop-up Styles
 */

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.popup-container {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Position Variations */
.popup-container.top {
    position: absolute;
    top: 20px;
}

.popup-container.bottom {
    position: absolute;
    bottom: 20px;
}

.popup-container.left {
    position: absolute;
    left: 20px;
}

.popup-container.right {
    position: absolute;
    right: 20px;
}

.popup-container.top-right {
    position: absolute;
    top: 20px;
    right: 20px;
}

.popup-container.bottom-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.popup-close:hover {
    color: #333;
}

/* Popup Content */
.popup-content {
    text-align: center;
}

.popup-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.popup-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 20px;
}

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

.popup-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

.popup-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.popup-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.popup-button:hover {
    background: #0056b3;
}

/* Popup Form */
.popup-form {
    margin-top: 20px;
    text-align: left;
}

.popup-form .form-group {
    margin-bottom: 15px;
}

.popup-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.popup-form input,
.popup-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.popup-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .popup-container {
        width: 90% !important;
        max-width: 90%;
        padding: 20px;
    }

    .popup-title {
        font-size: 20px;
    }

    .popup-text {
        font-size: 14px;
    }
}
