/**
 * Time2Learn Frontend Styles
 * Styles for locked content display on the front-end
 */

/* Locked Content Container */
.t2l-locked-content {
    text-align: center;
    padding: 60px 30px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin: 40px 0;
}

.t2l-lock-icon-large {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.t2l-locked-content h3 {
    font-size: 24px;
    margin: 0 0 15px;
    color: #333;
}

.t2l-unlock-message {
    font-size: 16px;
    color: #666;
    margin: 15px 0;
}

.t2l-unlock-message strong {
    color: #2271b1;
    font-weight: 600;
}

.t2l-unlock-info {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.t2l-unlock-info p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* Lock Icon in Curriculum */
.t2l-lock-icon {
    display: inline-block;
    margin-right: 5px;
    font-size: 14px;
    opacity: 0.7;
    cursor: help;
}

/* Tutor LMS Integration - Course Curriculum */
.tutor-course-content-list-item.t2l-locked {
    opacity: 0.6;
    pointer-events: none;
}

.tutor-course-content-list-item.t2l-locked a {
    color: #999;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .t2l-locked-content {
        padding: 40px 20px;
    }

    .t2l-lock-icon-large {
        font-size: 48px;
    }

    .t2l-locked-content h3 {
        font-size: 20px;
    }

    .t2l-unlock-message {
        font-size: 14px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .t2l-locked-content {
        background: #1e1e1e;
        border-color: #444;
    }

    .t2l-locked-content h3 {
        color: #fff;
    }

    .t2l-unlock-message {
        color: #ccc;
    }

    .t2l-unlock-info {
        border-top-color: #444;
    }

    .t2l-unlock-info p {
        color: #999;
    }
}

/* Animation for Lock Icon */
@keyframes lock-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.9;
    }
}

.t2l-lock-icon-large {
    animation: lock-pulse 2s ease-in-out infinite;
}

/* Tooltip Styles */
.t2l-lock-icon[title] {
    position: relative;
}

.t2l-lock-icon[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: #333;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    z-index: 1000;
    margin-bottom: 5px;
}

.t2l-lock-icon[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
}
