/** Euphrenic Player Lite for YouTube - Admin Styles */

.euphrenic-admin {
    max-width: 1200px;
    margin: 20px 0;
}

.euphrenic-admin * {
    box-sizing: border-box;
}

.euphrenic-admin h2 {
    font-size: 22px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.euphrenic-admin-header {
    flex-direction: column;
    align-items: flex-start;
}

.euphrenic-logo {
    margin-bottom: 15px;
    margin-right: 0;
}

.euphrenic-logo img {
    width: 300px;
    height: auto;
}

.euphrenic-header-content {
    width: 100%;
}

.euphrenic-header-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.euphrenic-upgrade-cta {
    text-align: center;
    padding: 15px;
    background: #f7faff;
    border-left: 1px solid #e5e5e5;
    width: 220px;
}

.euphrenic-upgrade-cta .button-primary {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.euphrenic-admin-tabs {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.euphrenic-tabs-nav {
    display: flex;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
}

.euphrenic-tabs-nav li {
    margin: 0;
    list-style: none;
}

.euphrenic-tabs-nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #444;
    font-weight: 500;
    border-right: 1px solid #e5e5e5;
    outline: none;
    box-shadow: none;
}

.euphrenic-tabs-nav li.active a {
    background: #fff;
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    margin-bottom: -1px;
}

.euphrenic-tabs-nav a:hover {
    background: #fafafa;
    color: #0073aa;
}

.euphrenic-tabs-content {
    padding: 20px;
}

.euphrenic-tab-content {
    display: none;
}

.euphrenic-tab-content.active {
    display: block;
}

.euphrenic-field-row {
    margin-bottom: 20px;
}

.euphrenic-field-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.euphrenic-field-row input[type="text"],
.euphrenic-field-row input[type="url"],
.euphrenic-field-row select {
    width: 100%;
    max-width: 400px;
}

.euphrenic-preview-area {
    margin: 30px 0;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px;
    background: #fafafa;
}

.euphrenic-preview-area h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

#euphrenic-preview-container {
    min-height: 200px;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

#euphrenic-preview-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.euphrenic-message-info {
    background: #e7f5fa;
    border: 0px solid #b5d2e1;
    color: #0c5460;
}

.euphrenic-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.euphrenic-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Gallery Preview */
.euphrenic-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.euphrenic-gallery.euphrenic-align-left {
    justify-content: flex-start;
}

.euphrenic-gallery.euphrenic-align-center {
    justify-content: flex-start;
}

.euphrenic-thumbnail {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.euphrenic-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.euphrenic-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.euphrenic-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    overflow: auto;
    opacity: 0;
    align-items: center;
    justify-content: center;
}

.euphrenic-modal-content {
    position: relative;
    background: #000;
    border-radius: 4px;
    width: 80%;
    max-width: 960px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.euphrenic-modal-close {
    position: absolute;
    top: -30px;
    right: -30px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    z-index: 1;
}

.euphrenic-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.euphrenic-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

body.euphrenic-modal-open {
    overflow: hidden;
}

.euphrenic-pro-feature {
    position: relative;
    padding: 15px;
    background: #f7faff;
    border: 1px solid #e5e5e5;
    border-left: 3px solid #00b30f;
    margin-bottom: 20px;
    opacity: 0.7;
}

.euphrenic-pro-badge {
    display: inline-block;
    background: #00b30f;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
    margin-left: 2px;
    margin-bottom: 8px;
    vertical-align: middle;
}

.euphrenic-galleries-list {
    margin-bottom: 30px;
}

.euphrenic-galleries-list table {
    border-collapse: collapse;
    width: 100%;
}

.euphrenic-galleries-list code {
    background: #f5f5f5;
    padding: 3px 5px;
    border-radius: 3px;
}

.euphrenic-copy-shortcode {
    margin-left: 5px !important;
}

.euphrenic-no-galleries {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border: 1px dashed #e5e5e5;
    margin-bottom: 30px;
}

.euphrenic-pro-callout {
    background: #f7faff;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #00b30f;
    padding: 20px;
    margin-top: 30px;
}

.euphrenic-pro-callout h3 {
    margin-top: 0;
    color: #00b30f;
}

.euphrenic-help-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.euphrenic-help-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.euphrenic-help-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.euphrenic-faq-item {
    margin-bottom: 20px;
}

.euphrenic-faq-item h4 {
    margin: 0 0 10px 0;
}

.euphrenic-settings {
    display: flex;
    flex-wrap: wrap;
}

.euphrenic-settings-container {
    flex: 1;
    min-width: 500px;
    margin-right: 20px;
}

.euphrenic-settings-sidebar {
    width: 280px;
}

.euphrenic-settings-section-title {
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
    margin-top: 30px;
}

.euphrenic-sidebar-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.euphrenic-sidebar-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.euphrenic-pro-features-section {
    background: #f7faff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px;
    margin: 30px 0;
}

.euphrenic-pro-title {
    color: #00b30f;
    border-bottom-color: #00b30f;
}

.euphrenic-pro-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.euphrenic-pro-features-grid .euphrenic-pro-feature {
    margin-bottom: 0;
    height: 100%;
}

.euphrenic-pro-cta {
    text-align: center;
    padding: 20px 0;
}

.euphrenic-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.euphrenic-popup.show {
    display: flex;
    opacity: 1;
}

.euphrenic-popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.euphrenic-popup.show .euphrenic-popup-content {
    transform: translateY(0);
}

.euphrenic-popup h3 {
    margin-top: 0;
    color: #2a9d2a;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.euphrenic-popup-shortcode {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 3px;
    margin: 15px 0;
    border: 1px solid #ddd;
    text-align: center;
}

.euphrenic-popup-shortcode code {
    font-size: 14px;
}

.euphrenic-popup-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
    .euphrenic-admin-header {
        flex-direction: column;
        text-align: center;
    }
    
    .euphrenic-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .euphrenic-upgrade-cta {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e5e5e5;
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .euphrenic-help-content {
        grid-template-columns: 1fr;
    }
    
    .euphrenic-pro-features-grid {
        grid-template-columns: 1fr;
    }
    
    .euphrenic-settings {
        flex-direction: column;
    }
    
    .euphrenic-settings-container {
        min-width: 100%;
        margin-right: 0;
    }
    
    .euphrenic-settings-sidebar {
        width: 100%;
        margin-top: 30px;
    }
}

.euphrenic-preview {
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    padding: 15px;
}

.euphrenic-preview .euphrenic-layout-overlay,
.euphrenic-preview .euphrenic-layout-standard,
.euphrenic-preview .euphrenic-layout-boxed {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.euphrenic-preview .euphrenic-thumbnail {
    width: 300px !important;
    max-width: 300px !important;
    position: relative;
}

.euphrenic-preview .euphrenic-thumbnail img {
    width: 300px !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 4px;
}

/* Layout-specific styles for preview */
/* Overlay layout */
.euphrenic-preview .euphrenic-layout-overlay .euphrenic-thumbnail .euphrenic-thumbnail-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    font-size: 14px;
    line-height: 1.4;
}

/* Standard layout */
.euphrenic-preview .euphrenic-layout-standard .euphrenic-thumbnail {
    display: flex;
    flex-direction: column;
}

.euphrenic-preview .euphrenic-layout-standard .euphrenic-thumbnail-title {
    position: static;
    background: none;
    color: inherit;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Boxed layout */
.euphrenic-preview .euphrenic-layout-boxed .euphrenic-thumbnail {
    background: #e8e8e8;
    border: 1px solid #c6c5c5;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.euphrenic-preview .euphrenic-layout-boxed .euphrenic-thumbnail img {
    border-radius: 2px;
    margin-bottom: 8px;
    max-width: 100%;
    height: auto;
    width: auto;
}

.euphrenic-preview .euphrenic-layout-boxed .euphrenic-thumbnail-title {
    position: static;
    background: none;
    color: inherit;
    text-align: center;
    padding: 0 5px 5px;
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
    word-wrap: break-word;
}

.euphrenic-preview-note {
    background: #f7f7f7;
    border-left: 4px solid #00a0d2;
    padding: 8px 12px;
    margin-bottom: 15px;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .euphrenic-preview .euphrenic-thumbnail {
        max-width: 45%;
    }
}

@media (max-width: 480px) {
    .euphrenic-preview .euphrenic-thumbnail {
        max-width: 100%;
    }
}
