/* Frontend Styles for Live Transmissions */

/* Calendar Wrapper */
.cjvs-lt-calendar-wrapper {
    padding: 20px 0;
}

#cjvs-lt-calendar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Single Transmission */
.cjvs-lt-single-transmission {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.cjvs-lt-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.cjvs-lt-header h2 {
    margin: 0 0 10px 0;
    color: #1f2937;
}

.cjvs-lt-types {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cjvs-lt-type-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #2563eb;
    color: white;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.cjvs-lt-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 6px;
}

.cjvs-lt-meta > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cjvs-lt-meta .dashicons {
    color: #6b7280;
}

.cjvs-lt-description {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #374151;
}

.cjvs-lt-stream {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.cjvs-lt-zoom {
    text-align: center;
}

.cjvs-lt-join-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.cjvs-lt-join-button:hover {
    background: #1d4ed8;
    color: white;
}

.cjvs-lt-join-button .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.cjvs-lt-zoom-password {
    margin-top: 15px;
    padding: 12px 20px;
    background: #f3f4f6;
    border-radius: 6px;
    text-align: center;
}

.cjvs-lt-zoom-password code {
    display: inline-block;
    padding: 6px 12px;
    margin-left: 10px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: monospace;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

.cjvs-lt-zoom-note {
    margin-top: 15px;
    color: #6b7280;
    font-size: 14px;
}

.cjvs-lt-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.cjvs-lt-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.cjvs-lt-no-stream {
    text-align: center;
    padding: 40px;
    background: #f9fafb;
    border-radius: 8px;
    color: #6b7280;
}

/* Upcoming Transmissions List */
.cjvs-lt-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cjvs-lt-upcoming-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.cjvs-lt-upcoming-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cjvs-lt-upcoming-date {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: white;
    border-radius: 8px;
}

.cjvs-lt-day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.cjvs-lt-month {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
}

.cjvs-lt-upcoming-content {
    flex: 1;
}

.cjvs-lt-upcoming-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.cjvs-lt-upcoming-content h3 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s;
}

.cjvs-lt-upcoming-content h3 a:hover {
    color: #2563eb;
}

.cjvs-lt-upcoming-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.cjvs-lt-upcoming-time .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.cjvs-lt-upcoming-types {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Comments Section */
.cjvs-lt-comments-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.cjvs-lt-comments-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #1f2937;
}

.cjvs-lt-comments-count {
    color: #6b7280;
    font-weight: 400;
}

.cjvs-lt-comment-form {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.cjvs-lt-comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.cjvs-lt-comment-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cjvs-lt-comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.cjvs-lt-char-count {
    font-size: 13px;
    color: #6b7280;
}

.cjvs-lt-button-primary {
    padding: 10px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.cjvs-lt-button-primary:hover:not(:disabled) {
    background: #1d4ed8;
}

.cjvs-lt-button-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.cjvs-lt-comment-notice {
    padding: 15px 20px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    margin-bottom: 20px;
}

.cjvs-lt-comment-notice p {
    margin: 0;
    color: #92400e;
}

.cjvs-lt-comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cjvs-lt-loading {
    padding: 20px;
    text-align: center;
    color: #6b7280;
}

.cjvs-lt-no-comments {
    padding: 30px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 8px;
}

.cjvs-lt-comment {
    padding: 15px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.cjvs-lt-comment:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cjvs-lt-comment-current-user {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.cjvs-lt-comment-highlight {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0%, 100% { background: white; }
    50% { background: #fef3c7; }
}

.cjvs-lt-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 10px;
}

.cjvs-lt-comment-header > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cjvs-lt-comment-author {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

.cjvs-lt-comment-time {
    font-size: 12px;
    color: #6b7280;
}

.cjvs-lt-comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cjvs-lt-comment-actions button {
    padding: 4px 10px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.cjvs-lt-delete-comment {
    background: #ef4444;
    color: white;
}

.cjvs-lt-delete-comment:hover:not(:disabled) {
    background: #dc2626;
}

.cjvs-lt-ban-user {
    background: #f59e0b;
    color: white;
}

.cjvs-lt-ban-user:hover:not(:disabled) {
    background: #d97706;
}

.cjvs-lt-unban-user {
    background: #10b981;
    color: white;
}

.cjvs-lt-unban-user:hover:not(:disabled) {
    background: #059669;
}

.cjvs-lt-comment-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cjvs-lt-banned-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.cjvs-lt-admin-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.cjvs-lt-comment-banned {
    opacity: 0.7;
    background: #fef2f2;
    border-color: #fecaca;
}

.cjvs-lt-comment-admin {
    background: #eff6ff;
    border-color: #bfdbfe;
    border-left: 3px solid #2563eb;
}

.cjvs-lt-comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    word-wrap: break-word;
}

/* Back to Calendar Link */
.cjvs-lt-back-link {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.cjvs-lt-back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    padding: 10px 16px;
    border-radius: 8px;
    background: #eff6ff;
}

.cjvs-lt-back-button:hover {
    color: #1d4ed8;
    background: #dbeafe;
    transform: translateX(-4px);
}

.cjvs-lt-back-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-top: -2px;
}

/* Responsive */
@media (max-width: 768px) {
    .cjvs-lt-single-transmission {
        padding: 20px;
    }

    .cjvs-lt-meta {
        flex-direction: column;
        gap: 15px;
    }

    .cjvs-lt-upcoming-item {
        flex-direction: column;
    }

    .cjvs-lt-upcoming-date {
        width: 60px;
        height: 60px;
    }

    .cjvs-lt-comment-form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .cjvs-lt-char-count {
        text-align: right;
    }
}
