/**
 * Tutor preview page styles.
 *
 * @package    local_lat_tutorpro
 * @copyright  2026 Zunyr Haiyydr
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

.lat-tutor-preview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header Section */
.lat-preview-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.lat-preview-avatar-section {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.lat-preview-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.lat-preview-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lat-preview-info {
    flex: 1;
}

.lat-preview-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lat-preview-flag {
    font-size: 1.25rem;
}

.lat-preview-headline {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0 0 0.75rem;
}

.lat-preview-languages {
    font-size: 0.95rem;
    color: #374151;
}

/* Content Layout */
.lat-preview-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

@media (max-width: 768px) {
    .lat-preview-content {
        grid-template-columns: 1fr;
    }

    .lat-preview-sidebar {
        order: -1;
    }
}

/* Main Content */
.lat-preview-main {
    min-width: 0;
}

.lat-preview-section {
    margin-bottom: 2rem;
}

.lat-preview-video-section {
    grid-column: 1 / -1;
    margin-bottom: 3rem;
}

.lat-preview-text {
    line-height: 1.7;
    color: #374151;
    white-space: pre-wrap;
}

/* Video */
.lat-preview-video-section {
    margin-bottom: 3rem;
}

.lat-preview-video-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lat-preview-video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #1f2937;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lat-preview-video-play-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ef4444 !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
}

.lat-preview-video-play-btn:hover {
    background: #dc2626 !important;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.7);
}

/* Tags */
.lat-preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lat-preview-tag {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Credentials */
.lat-preview-credentials {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lat-preview-credential {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.lat-credential-type {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.lat-credential-institution {
    color: #6b7280;
}

.lat-credential-years {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Sidebar Card */
.lat-preview-sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
}

.lat-preview-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    position: relative;
}

.lat-preview-favorite {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    transition: transform 0.2s;
}

.lat-preview-favorite:hover {
    transform: scale(1.1);
}

.lat-preview-favorite.active svg {
    fill: #ef4444;
    stroke: #ef4444;
}

.lat-preview-pricing {
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.lat-preview-price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.lat-price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.lat-price-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.lat-preview-price-group .lat-price-amount {
    font-size: 1.125rem;
    color: #374151;
}

.lat-preview-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lat-preview-actions .btn-primary {
    padding: 0.875rem 1.5rem;
    background: #ef4444 !important;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.lat-preview-actions .btn-primary:hover {
    background: #dc2626 !important;
}

.btn-outline {
    padding: 0.875rem 1.5rem;
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.btn-outline:hover {
    background: #f9fafb;
}

.lat-preview-book-btn {
    width: 100%;
    background: #ef4444 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
}

.lat-preview-book-btn:hover {
    background: #dc2626 !important;
}

.lat-preview-subscribe-btn {
    width: 100%;
    background: #ef4444 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
}

.lat-preview-subscribe-btn:hover {
    background: #dc2626 !important;
}

.lat-preview-message-btn {
    width: 100%;
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
}

.lat-preview-message-btn:hover {
    background: #f9fafb !important;
}

/* Video Section */
.lat-preview-video-section {
    grid-column: 1 / -1;
    margin-bottom: 3rem;
    width: 100%;
}

.lat-preview-video-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 480px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.lat-preview-video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #1f2937;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lat-preview-video-play-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ef4444 !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
}

.lat-preview-video-play-btn:hover {
    background: #dc2626 !important;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.7);
}
