/* TRVTimes News Community Plugin Styles */

/* Signup/Signin Styles */
.trvnc-signup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    background: white;
}

.trvnc-animated-bg {
    width: 60%;
    height: 100%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.trvnc-animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
    pointer-events: none;
}

.trvnc-thumbnail-slider {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    gap: 15px;
    padding: 0;
}

.trvnc-thumbnail-row {
    display: flex;
    animation-duration: 40s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    gap: 20px;
    min-width: calc(100% + 600px);
}

.trvnc-thumbnail-row:nth-child(odd) {
    animation-name: slideLeft;
}

.trvnc-thumbnail-row:nth-child(even) {
    animation-name: slideRight;
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-600px);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-600px);
    }
    100% {
        transform: translateX(0);
    }
}

.trvnc-thumb-item {
    flex-shrink: 0;
    height: 120px;
    width: 180px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trvnc-thumb-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    pointer-events: none;
    transition: all 0.3s ease;
}

.trvnc-thumb-item:hover::before {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.trvnc-thumb-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.trvnc-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trvnc-signup-modal {
    width: 40%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.trvnc-modal-content {
    max-width: 500px;
    width: 100%;
}

/* Onboarding Steps */
.trvnc-onboarding-step {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s ease;
    padding: 35px 40px 20px 30px;
    min-height: auto;
}

.trvnc-onboarding-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.trvnc-step-header {
    text-align: left;
    margin-bottom: 15px;
}

.trvnc-logo {
    margin-bottom: 15px;
}

.trvnc-logo img {
    max-height: 40px;
    width: auto;
}

.trvnc-site-name {
    font-family: 'Nimbus Roman', serif;
    font-size: 20px;
    color: #333;
    font-weight: bold;
    margin: 0;
}

.trvnc-step-header h1 {
    font-family: 'Nimbus Roman', serif;
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.1;
    font-weight: bold;
}

.trvnc-step-header h2 {
    font-family: 'Nimbus Roman', serif;
    font-size: 20px;
    color: #333;
    margin-bottom: 5px;
    font-weight: bold;
}

.trvnc-step-header p {
    font-family: 'Lato', sans-serif;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.trvnc-step-content {
    margin-bottom: 15px;
}

/* Welcome Step Features */
.trvnc-welcome-features {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.trvnc-feature {
    text-align: left;
    padding: 8px;
}

.trvnc-feature h3 {
    font-family: 'Nimbus Roman', serif;
    font-size: 16px;
    color: #333;
    margin-bottom: 3px;
    font-weight: bold;
}

.trvnc-feature p {
    font-family: 'Lato', sans-serif;
    color: #666;
    font-size: 13px;
    line-height: 1.3;
    margin: 0;
}

/* Location Cards */
.trvnc-location-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    margin-top: 15px;
}

.trvnc-location-card:nth-child(3) {
    grid-column: 1 / -1;
}

.trvnc-location-card {
    display: block;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.trvnc-location-card:hover {
    border-color: #000000;
    background: #f8f9fa;
}

.trvnc-location-card input[type="radio"] {
    display: none;
}

.trvnc-location-card input[type="radio"]:checked + .trvnc-card-content {
    color: white;
}

.trvnc-location-card:has(input[type="radio"]:checked) {
    border-color: #000000;
    background: #000000;
}

.trvnc-location-card:has(input[type="radio"]:checked):hover {
    background: #1a1a1a;
}

.trvnc-card-content h3 {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: bold;
}

.trvnc-card-content p {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Step Navigation */
.trvnc-step-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.trvnc-next-btn,
.trvnc-back-btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.trvnc-next-btn {
    background: #000000 !important;
    color: white !important;
    border: none !important;
}

.trvnc-next-btn:hover {
    background: #1a1a1a !important;
    color: white !important;
}

.trvnc-next-btn:active {
    background: #0d0d0d !important;
    color: white !important;
}

.trvnc-next-btn:focus {
    background: #000000 !important;
    color: white !important;
    outline: none !important;
    box-shadow: none !important;
}

.trvnc-back-btn {
    background: #f5f5f5;
    color: #333;
}

.trvnc-back-btn:hover {
    background: #e0e0e0;
}

.trvnc-skip-btn {
    background: none;
    border: none;
    color: #007cba;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    text-decoration: underline;
    outline: none;
}

.trvnc-skip-btn:hover {
    color: #005a87;
    background: none;
}

.trvnc-skip-btn:focus {
    background: none;
    outline: none;
}

.trvnc-skip-btn:active {
    background: none;
    outline: none;
}

.trvnc-auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.trvnc-tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.trvnc-tab-btn.active {
    color: #333;
    font-weight: 600;
}

.trvnc-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #007cba;
}

.trvnc-form-group {
    margin-bottom: 20px;
}

.trvnc-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.trvnc-form-group input[type="text"],
.trvnc-form-group input[type="email"],
.trvnc-form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.trvnc-form-group input:focus {
    outline: none;
    border-color: #007cba;
}

.trvnc-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    max-height: 200px;
    overflow-y: auto;
    padding: 0;
}

.trvnc-category-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.trvnc-category-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.trvnc-category-item input[type="checkbox"] {
    display: none;
}

.trvnc-category-item input[type="checkbox"]:checked + .trvnc-category-label {
    color: white;
}

.trvnc-category-item:has(input[type="checkbox"]:checked) {
    background: #000000;
}

.trvnc-category-item:has(input[type="checkbox"]:checked):hover {
    background: #1a1a1a;
}

.trvnc-category-label {
    font-size: 14px;
    color: #333;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
}

.trvnc-location-options {
    display: flex;
    gap: 15px;
}

.trvnc-radio-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.trvnc-radio-item:hover {
    background: #e8e8e8;
}

.trvnc-radio-item input[type="radio"] {
    margin-right: 8px;
}

.trvnc-submit-btn {
    width: 100%;
    padding: 14px;
    background: #000000 !important;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.trvnc-submit-btn:hover {
    background: #1a1a1a !important;
}

.trvnc-submit-btn:active {
    background: #0d0d0d !important;
}

.trvnc-submit-btn:focus {
    background: #000000 !important;
    outline: none !important;
    box-shadow: none !important;
}

.trvnc-submit-btn:focus-visible {
    background: #000000 !important;
    outline: none !important;
    box-shadow: none !important;
}

.trvnc-submit-btn:visited {
    background: #000000 !important;
}

.trvnc-submit-btn:link {
    background: #000000 !important;
}

.trvnc-auth-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.trvnc-auth-message.success {
    background: #d4edda;
    color: #155724;
}

.trvnc-auth-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Comments Sidebar Styles */
.trvnc-comments-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.trvnc-comments-sidebar.open {
    right: 0;
}

.trvnc-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trvnc-sidebar-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.trvnc-close-sidebar {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trvnc-sidebar-divider {
    height: 1px;
    background: #e0e0e0;
}

.trvnc-comment-form-container {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.trvnc-comment-form textarea,
.trvnc-reply-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    font-size: 14px;
}

.trvnc-comment-form button,
.trvnc-reply-form button {
    margin-top: 10px;
    padding: 8px 16px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.trvnc-signin-prompt {
    padding: 20px;
    text-align: center;
}

.trvnc-signin-prompt p {
    margin-bottom: 15px;
    color: #666;
}

.trvnc-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.trvnc-no-comments {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

.trvnc-comment {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.trvnc-comment-reply {
    margin-left: 30px;
    padding-left: 15px;
    border-left: 2px solid #e0e0e0;
}

.trvnc-comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.trvnc-comment-avatar {
    border-radius: 4px;
    flex-shrink: 0;
}

.trvnc-comment-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trvnc-comment-author {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.trvnc-comment-time {
    color: #999;
    font-size: 12px;
}

.trvnc-comment-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
}

.trvnc-comment-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.trvnc-reaction-bubble {
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 16px;
    font-size: 13px;
    color: #666;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.trvnc-reaction-bubble:hover {
    background: #e0e0e0;
}

.trvnc-reaction-bubble.active {
    background: #e3f2fd;
    border-color: #007cba;
    color: #007cba;
}

.trvnc-reaction-count {
    margin-left: 5px;
    font-weight: 600;
}

.trvnc-comment-actions {
    margin-bottom: 12px;
}

.trvnc-add-reaction-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 4px 12px;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.trvnc-add-reaction-btn:hover {
    background: #f5f5f5;
}

.trvnc-reaction-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.trvnc-reaction-option {
    padding: 6px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.trvnc-reaction-option:hover {
    background: #f0f0f0;
}

.trvnc-reaction-option.selected {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.trvnc-comment-footer {
    display: flex;
    gap: 15px;
}

.trvnc-show-replies,
.trvnc-reply-btn {
    background: none;
    border: none;
    color: #007cba;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.trvnc-show-replies:hover,
.trvnc-reply-btn:hover {
    text-decoration: underline;
}

.trvnc-replies-container {
    margin-top: 15px;
}

.trvnc-reply-form {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* User Sidebar Styles */
.trvnc-user-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.3s ease;
}

.trvnc-user-sidebar.open {
    right: 0;
}

.trvnc-user-info {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.trvnc-user-avatar {
    margin-bottom: 15px;
}

.trvnc-user-avatar img {
    border-radius: 8px;
}

.trvnc-user-avatar img {
    border-radius: 4px;
}

.trvnc-user-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.trvnc-sidebar-menu {
    padding: 20px;
}

.trvnc-menu-item {
    width: 100%;
    padding: 12px 15px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
    text-align: left;
}

.trvnc-menu-item:hover {
    background: #f5f5f5;
}

.trvnc-menu-item svg {
    flex-shrink: 0;
}

.trvnc-signout {
    color: #dc3545;
}

/* Button Styles */
.trvnc-comments-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
}

.trvnc-comments-btn:hover {
    background: #f5f5f5;
    border-color: #007cba;
}

.trvnc-signin-btn {
    padding: 10px 20px;
    background: transparent;
    color: black;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    transition: opacity 0.3s;
    outline: none;
}

.trvnc-signin-btn:hover {
    background: transparent;
    color: #333;
}

.trvnc-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #333;
    cursor: pointer;
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    transition: all 0.3s;
    outline: none;
}

.trvnc-user-btn:hover {
    background: transparent;
    color: #000;
}

.trvnc-bookmark-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.trvnc-bookmark-btn:hover {
    color: #007cba;
}

.trvnc-bookmark-btn.saved {
    color: #007cba;
}

/* Saved Stories Page */
.trvnc-saved-stories-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.trvnc-no-saved {
    text-align: left;
    padding: 60px 20px 200px 20px;
    color: #666;
}

.trvnc-no-saved p {
    margin-bottom: 10px;
}

.trvnc-saved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.trvnc-saved-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.trvnc-saved-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.trvnc-saved-thumbnail {
    height: 200px;
    overflow: hidden;
}

.trvnc-saved-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trvnc-saved-content {
    padding: 10px 20px 20px 20px;
}

.trvnc-saved-title {
    margin-bottom: 8px;
    margin-top: 0;
}

.trvnc-saved-title a {
    color: #333;
    text-decoration: none;
    font-size: 22px;
    font-family: 'Nimbus Roman', serif;
    font-weight: bold;
    font-style: italic;
    line-height: 1.1;
}

.trvnc-saved-title a:hover {
    color: #007cba;
}

.trvnc-saved-category {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Lato', sans-serif;
    color: #666;
    margin-bottom: 10px;
}

.trvnc-saved-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 13px;
    font-family: 'Lato', sans-serif;
}

.trvnc-remove-saved {
    padding: 4px 10px;
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s;
}

.trvnc-remove-saved:hover {
    background: #dc3545;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .trvnc-comments-sidebar,
    .trvnc-user-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .trvnc-signup-modal {
        padding: 20px;
    }
    
    .trvnc-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .trvnc-location-options {
        flex-direction: column;
    }
    
    .trvnc-saved-grid {
        grid-template-columns: 1fr;
    }
}