/**
 * Tour SEO Manager Styles
 * Version: 1.0
 * File: toursure-edit-program-006.css
 */

/* ========================================
   Container & Wrapper
   ======================================== */
.seo-manager-wrapper-nrt639 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.seo-error-nrt639 {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}

/* ========================================
   Header Section
   ======================================== */
.seo-header-nrt639 {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.seo-title-nrt639 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-mode-badge-nrt639 {
    background: #4CAF50;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: normal;
}

/* ========================================
   Section Titles
   ======================================== */
.section-title-nrt639 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.section-title-nrt639 .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #0073aa;
}

/* ========================================
   Google Preview Section
   ======================================== */
.seo-preview-section-nrt639 {
    margin-bottom: 30px;
}

.google-preview-nrt639 {
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    padding: 20px;
    font-family: arial, sans-serif;
    max-width: 600px;
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
}

.preview-url {
    font-size: 14px;
    color: #202124;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-title {
    font-size: 20px;
    color: #1a0dab;
    margin-bottom: 4px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.3;
}

.preview-title:hover {
    text-decoration: underline;
}

.preview-description {
    font-size: 14px;
    color: #4d5156;
    line-height: 1.58;
}

/* ========================================
   SEO Fields Section
   ======================================== */
.seo-fields-section-nrt639 {
    margin-bottom: 30px;
}

.seo-field-group-nrt639 {
    margin-bottom: 20px;
}

.seo-field-group-nrt639 label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.char-counter {
    font-weight: normal;
    font-size: 12px;
    color: #666;
}

.char-counter .current {
    font-weight: 600;
    color: #333;
}

.char-counter.warning .current {
    color: #ff9800;
}

.char-counter.over .current {
    color: #f44336;
}

.seo-input-nrt639,
.seo-textarea-nrt639 {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.seo-input-nrt639:focus,
.seo-textarea-nrt639:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.seo-input-nrt639[readonly],
.seo-textarea-nrt639[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

.seo-textarea-nrt639 {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.field-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.btn-save-seo-nrt639 {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-save-seo-nrt639:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.btn-save-seo-nrt639 .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ========================================
   Tags Section
   ======================================== */
.tags-section-nrt639 {
    margin-bottom: 30px;
}

.tour-tags-select-nrt639 {
    width: 100%;
}

.tags-display-nrt639 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item-nrt639 {
    background: #f0f0f0;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
    border: 1px solid #ddd;
}

.no-tags {
    color: #999;
    font-style: italic;
}

/* ========================================
   Related Tours Section
   ======================================== */
.related-section-nrt639 {
    margin-bottom: 30px;
}

.related-tours-select-nrt639 {
    width: 100%;
    margin-bottom: 20px;
}

.related-tours-grid-nrt639 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-tour-card-nrt639 {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-tour-card-nrt639:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.related-tour-card-nrt639 .tour-thumbnail {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f5f5f5;
}

.related-tour-card-nrt639 .tour-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-tour-card-nrt639 .tour-info {
    padding: 15px;
    flex: 1;
}

.related-tour-card-nrt639 .tour-code {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    margin-bottom: 5px;
}

.related-tour-card-nrt639 .tour-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.related-tour-card-nrt639 .tour-actions {
    padding: 10px 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-view-tour,
.btn-remove-related {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-view-tour {
    background: #2196F3;
    color: white;
    text-decoration: none;
}

.btn-view-tour:hover {
    background: #1976D2;
    transform: scale(1.1);
}

.btn-remove-related {
    background: #f44336;
    color: white;
}

.btn-remove-related:hover {
    background: #da190b;
    transform: scale(1.1);
}

.no-related-tours {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 8px;
}

/* ========================================
   SEO Analysis Section
   ======================================== */
.seo-analysis-section-nrt639 {
    margin-bottom: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

.seo-score-nrt639 {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.score-indicator {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    position: relative;
}

.score-indicator.good {
    background: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.score-indicator.ok {
    background: #FF9800;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.score-indicator.bad {
    background: #f44336;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.score-indicator.na {
    background: #9E9E9E;
}

.score-label {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.yoast-data {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.yoast-field {
    margin-bottom: 10px;
    font-size: 14px;
}

.yoast-field strong {
    color: #333;
}

/* ========================================
   Select2 Customization
   ======================================== */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 40px;
    padding: 3px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #0073aa;
    border: 1px solid #0073aa;
    color: white;
    border-radius: 3px;
    padding: 2px 8px;
    margin: 3px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin-right: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ff6b6b;
}

.select2-results__option[aria-selected="true"] {
    background: #f0f0f0;
}

.select2-results__option--highlighted {
    background: #0073aa;
    color: white;
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast-container-nrt639 {
    position: fixed;
    top: 32px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.admin-bar .toast-container-nrt639 {
    top: 52px;
}

.toast-nrt639 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    pointer-events: all;
}

.toast-nrt639.show {
    transform: translateX(0);
}

.toast-icon-nrt639 {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.toast-nrt639.toast-success {
    border-left: 4px solid #4CAF50;
}

.toast-nrt639.toast-success .toast-icon-nrt639 {
    background: #4CAF50;
    color: white;
}

.toast-nrt639.toast-error {
    border-left: 4px solid #f44336;
}

.toast-nrt639.toast-error .toast-icon-nrt639 {
    background: #f44336;
    color: white;
}

.toast-nrt639.toast-info {
    border-left: 4px solid #2196F3;
}

.toast-nrt639.toast-info .toast-icon-nrt639 {
    background: #2196F3;
    color: white;
}

.toast-message-nrt639 {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.toast-close-nrt639 {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    transition: color 0.3s ease;
}

.toast-close-nrt639:hover {
    color: #333;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .seo-manager-wrapper-nrt639 {
        padding: 15px;
    }
    
    .seo-title-nrt639 {
        font-size: 20px;
    }
    
    .section-title-nrt639 {
        font-size: 16px;
    }
    
    .google-preview-nrt639 {
        padding: 15px;
    }
    
    .preview-title {
        font-size: 18px;
    }
    
    .related-tours-grid-nrt639 {
        grid-template-columns: 1fr;
    }
    
    .toast-container-nrt639 {
        left: 10px;
        right: 10px;
    }
    
    .toast-nrt639 {
        min-width: auto;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .related-tour-card-nrt639 {
        flex-direction: row;
    }
    
    .related-tour-card-nrt639 .tour-thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .related-tour-card-nrt639 .tour-info {
        padding: 10px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .btn-save-seo-nrt639,
    .btn-remove-related,
    .tour-tags-select-nrt639,
    .related-tours-select-nrt639,
    .toast-container-nrt639,
    .edit-mode-badge-nrt639 {
        display: none !important;
    }
    
    .seo-field-group-nrt639 input,
    .seo-field-group-nrt639 textarea {
        border: none;
        padding: 0;
        background: none;
    }
}

/* ========================================
   Loading States
   ======================================== */
.seo-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.seo-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   Accessibility
   ======================================== */
.seo-manager-wrapper-nrt639:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .seo-field-group-nrt639 input,
    .seo-field-group-nrt639 textarea,
    .related-tour-card-nrt639 {
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .toast-nrt639,
    button,
    .related-tour-card-nrt639 {
        transition: none;
    }
    
    @keyframes spin {
        to { transform: none; }
    }
}