/* Composer */
.scdev-composer {
    max-width: 100%;
    margin: 20px auto;
    /* background: #fff; */
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Tabs */
.scdev-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.scdev-tab {
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666 !important;
}

.scdev-tab.active {
    color: #0073aa !important;
    border-bottom: 2px solid #0073aa;
    margin-bottom: -2px;
}

.scdev-tab-content {
    display: none;
}

.scdev-tab-content.active {
    display: block;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group label:has(input[type="checkbox"]) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.form-group label input[type="checkbox"] {
    margin: 0;
}

.form-group label .comment-label {
    display: inline-block;
}

.required {
    color: red;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.scdev-upload-btn {
    padding: 10px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.scdev-btn-primary {
    padding: 10px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.scdev-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Notice */
.scdev-notice {
    display: none;
    padding: 10px;
    margin-top: 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.scdev-notice.success {
    background: #d4edda;
    color: #155724;
}

.scdev-notice.error {
    background: #f8d7da;
    color: #721c24;
}

/* My Posts */
.post-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 10px;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #e0e0e0;
}

.filter-btn.active {
    background: #28a745;
    color: #fff;
    font-weight: 600;
    border-bottom: 3px solid #1e7e34;
}

.scdev-my-post-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    /* background: #fff; */
}

.scdev-my-post-card .post-thumbnail {
    flex-shrink: 0;
}

.scdev-my-post-card .post-thumbnail img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.scdev-my-post-card .post-info {
    flex-grow: 1;
}

.scdev-my-post-card .post-info h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.post-status {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    text-transform: capitalize;
}

.post-status.publish {
    background: #d4edda;
    color: #155724;
}

.post-status.draft {
    background: #fff3cd;
    color: #856404;
}

.scdev-my-post-card .post-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scdev-btn-view-public,
.scdev-btn-view,
.scdev-btn-edit,
.scdev-btn-delete {
    padding: 8px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    min-width: 80px;
    transition: all 0.2s;
}

.scdev-btn-view-public {
    background: #7a9ca8;
    color: #fff;
}

.scdev-btn-view-public:hover {
    background: #6a8c98;
}

.scdev-btn-view {
    background: #8a9d8a;
    color: #fff;
}

.scdev-btn-view:hover {
    background: #7a8d7a;
}

.scdev-btn-edit {
    background: #a89a7a;
    color: #fff;
}

.scdev-btn-edit:hover {
    background: #988a6a;
}

.scdev-btn-delete {
    background: #a88080;
    color: #fff;
}

.scdev-btn-delete:hover {
    background: #987070;
}

/* Archive */
.scdev-archive {
    max-width: 100%;
    margin: 20px auto;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.archive-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.archive-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.archive-card h3 {
    padding: 10px;
    margin: 0;
    font-size: 18px;
}

.archive-card p {
    padding: 0 15px 15px;
    margin: 0;
    color: #666;
}


/* Gallery */
.gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.gallery-item {
    position: relative;
    display: inline-block;
}

.gallery-item img {
    display: block;
}

.field-description {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
    font-weight: normal;
}

.remove-gallery-item {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    line-height: 1;
    font-size: 16px;
}

.remove-gallery-item:hover {
    background: #c82333;
}

.product-fields h3 {
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
}


/* Preview Modal */
.scdev-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    max-width: 100%;
    max-height: 90vh;
    margin: 5vh auto;
    background: #fff;
    border-radius: 8px;
    overflow-y: auto;
    z-index: 10000;
}

.modal-close {
    position: sticky;
    top: 10px;
    right: 10px;
    float: right;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
}

.modal-body {
    padding: 10px;
    clear: both;
}

/* Preview Post Styles */
.preview-post h1 {
    font-size: 32px;
    margin: 0 0 20px 0;
    color: #333;
}

.preview-meta {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.preview-author,
.preview-date {
    color: #666;
    font-size: 14px;
}

.preview-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: capitalize;
}

.preview-status.publish {
    background: #d4edda;
    color: #155724;
}

.preview-status.draft {
    background: #fff3cd;
    color: #856404;
}

.preview-image {
    margin: 20px 0;
}

.preview-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.preview-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 20px 0;
}

.preview-content img {
    max-width: 100%;
    height: auto;
}

.preview-product-details {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-top: 20px;
}

.preview-price {
    font-size: 24px;
    color: #28a745;
    margin-bottom: 10px;
}

.preview-type {
    font-size: 16px;
    margin-bottom: 10px;
}

.preview-gallery h3 {
    margin: 20px 0 10px 0;
}

.preview-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.preview-gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}


/* Delete Confirmation Modal */
.scdev-delete-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.scdev-delete-modal .modal-content {
    max-width: 450px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.scdev-delete-modal .modal-content.delete-confirm {
    text-align: center;
}

.delete-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.scdev-delete-modal h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
}

.scdev-delete-modal p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 16px;
}

.delete-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-cancel,
.btn-confirm-delete {
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
}

.btn-cancel {
    background: #f0f0f0;
    color: #333;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-confirm-delete {
    background: #dc3545;
    color: #fff;
}

.btn-confirm-delete:hover {
    background: #c82333;
}


.scdev-btn-confirm-delete,
.scdev-btn-cancel-delete {
    padding: 8px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    min-width: 80px;
}

.scdev-btn-confirm-delete {
    background: #dc3545;
    color: #fff;
    font-weight: 600;
}

.scdev-btn-cancel-delete {
    background: #6c757d;
    color: #fff;
}


/* TinyMCE Editor Styling - Transparent background, grey text */
.mce-toolbar .mce-btn,
.mce-toolbar .mce-btn-group .mce-btn {
    background: transparent !important;
    color: #666 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.mce-toolbar .mce-btn:hover,
.mce-toolbar .mce-btn-group .mce-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.mce-toolbar .mce-btn.mce-active,
.mce-toolbar .mce-btn-group .mce-btn.mce-active {
    background: rgba(0, 0, 0, 0.1) !important;
}

.mce-panel {
    background: transparent !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.mce-toolbar-grp {
    background: transparent !important;
}

.mce-menubar {
    background: transparent !important;
}

.mce-ico {
    color: #666 !important;
}

.mce-btn button,
.mce-btn span {
    color: #666 !important;
}

.mce-caret {
    border-top-color: #666 !important;
}

.mce-text {
    color: #666 !important;
}

/* Dropdown menus - solid background to prevent text showing through */
.mce-container,
.mce-container *,
.mce-widget,
.mce-widget *,
.mce-reset,
.mce-floatpanel,
.mce-menu {
    background: #fff !important;
}

body.night-mode .mce-container,
body.night-mode .mce-container *,
body.night-mode .mce-widget,
body.night-mode .mce-widget *,
body.night-mode .mce-reset,
body.night-mode .mce-floatpanel,
body.night-mode .mce-menu {
    background: #2a2a2a !important;
}

/* Night mode - lighter grey for better visibility */
body.night-mode .mce-toolbar .mce-btn,
body.night-mode .mce-toolbar .mce-btn-group .mce-btn,
body.night-mode .mce-ico,
body.night-mode .mce-btn button,
body.night-mode .mce-btn span,
body.night-mode .mce-text {
    color: #999 !important;
}

body.night-mode .mce-toolbar .mce-btn,
body.night-mode .mce-toolbar .mce-btn-group .mce-btn {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

body.night-mode .mce-toolbar .mce-btn:hover,
body.night-mode .mce-toolbar .mce-btn-group .mce-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

body.night-mode .mce-caret {
    border-top-color: #999 !important;
}

/* WordPress Editor Buttons - Add Media, Visual, Code */
.wp-editor-tabs button,
.wp-switch-editor {
    color: #666 !important;
    background: transparent !important;
}

.wp-editor-tabs button:hover,
.wp-switch-editor:hover {
    color: #333 !important;
}

.wp-editor-tabs button.active,
.wp-switch-editor.switch-tmce,
.wp-switch-editor.switch-html {
    color: #666 !important;
}

body.night-mode .wp-editor-tabs button,
body.night-mode .wp-switch-editor {
    color: #999 !important;
}

body.night-mode .wp-editor-tabs button:hover,
body.night-mode .wp-switch-editor:hover {
    color: #ccc !important;
}

/* Add Media Button */
.wp-media-buttons .button,
.wp-media-buttons .insert-media {
    color: #666 !important;
    background: transparent !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.wp-media-buttons .button:hover,
.wp-media-buttons .insert-media:hover {
    color: #333 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

body.night-mode .wp-media-buttons .button,
body.night-mode .wp-media-buttons .insert-media {
    color: #999 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

body.night-mode .wp-media-buttons .button:hover,
body.night-mode .wp-media-buttons .insert-media:hover {
    color: #ccc !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* TinyMCE Editor Canvas - Day/Night Mode */
#wp-composer_content-wrap iframe,
.mce-edit-area iframe,
.mce-content-body {
    background: #fff !important;
    color: #000 !important;
}

body.night-mode #wp-composer_content-wrap iframe,
body.night-mode .mce-edit-area iframe,
body.night-mode .mce-content-body {
    background: #2a2a2a !important;
    color: #e0e0e0 !important;
}

/* TinyMCE Editor Container */
.mce-container,
.mce-panel,
.mce-edit-area {
    background: transparent !important;
}

body.night-mode .mce-container,
body.night-mode .mce-panel,
body.night-mode .mce-edit-area {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* WordPress Quicktags (Code View Buttons) - Hide completely */
.quicktags-toolbar {
    display: none !important;
}


/* Hide custom block buttons in Code/HTML view */
.html-active .mce-btn[aria-label*="Col"],
.html-active .mce-btn[aria-label*="Button"],
#wp-composer_content-wrap.html-active .mce-toolbar .mce-btn-group:has(.mce-btn[aria-label*="Col"]) {
    display: none !important;
}

/* Alternative: Hide by button text content */
.html-active #mceu_23,
.html-active #mceu_24,
.html-active #mceu_25,
.html-active #mceu_26 {
    display: none !important;
}

/* TinyMCE Tooltips - Fix color for day mode */
.mce-tooltip-inner {
    color: #666 !important;
    /* background: transparent !important; */
}

body.night-mode .mce-tooltip-inner {
    color: #fff !important;
}

/* Global thin scrollbars for all composer elements */
.scdev-composer *::-webkit-scrollbar,
.scdev-preview-modal *::-webkit-scrollbar,
.scdev-archive *::-webkit-scrollbar,
.scdev-product-archive *::-webkit-scrollbar {
    width: 2px;
    height: 2px;
}

.scdev-composer *::-webkit-scrollbar-track,
.scdev-preview-modal *::-webkit-scrollbar-track,
.scdev-archive *::-webkit-scrollbar-track,
.scdev-product-archive *::-webkit-scrollbar-track {
    background: transparent;
}

.scdev-composer *::-webkit-scrollbar-thumb,
.scdev-preview-modal *::-webkit-scrollbar-thumb,
.scdev-archive *::-webkit-scrollbar-thumb,
.scdev-product-archive *::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1px;
}

.scdev-composer *::-webkit-scrollbar-thumb:hover,
.scdev-preview-modal *::-webkit-scrollbar-thumb:hover,
.scdev-archive *::-webkit-scrollbar-thumb:hover,
.scdev-product-archive *::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Firefox thin scrollbar */
.scdev-composer *,
.scdev-preview-modal *,
.scdev-archive *,
.scdev-product-archive * {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Night mode scrollbars */
body.night-mode .scdev-composer *::-webkit-scrollbar-thumb,
body.night-mode .scdev-preview-modal *::-webkit-scrollbar-thumb,
body.night-mode .scdev-archive *::-webkit-scrollbar-thumb,
body.night-mode .scdev-product-archive *::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

body.night-mode .scdev-composer *::-webkit-scrollbar-thumb:hover,
body.night-mode .scdev-preview-modal *::-webkit-scrollbar-thumb:hover,
body.night-mode .scdev-archive *::-webkit-scrollbar-thumb:hover,
body.night-mode .scdev-product-archive *::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

body.night-mode .scdev-composer *,
body.night-mode .scdev-preview-modal *,
body.night-mode .scdev-archive *,
body.night-mode .scdev-product-archive * {
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Composer Heading Sizes - All 16px */
.scdev-composer h1,
.scdev-composer h2,
.scdev-composer h3,
.scdev-composer h4,
.scdev-composer h5,
.scdev-composer h6,
.scdev-post-content h1,
.scdev-post-content h2,
.scdev-post-content h3,
.scdev-post-content h4,
.scdev-post-content h5,
.scdev-post-content h6,
.composer-content h1,
.composer-content h2,
.composer-content h3,
.composer-content h4,
.composer-content h5,
.composer-content h6,
article h1,
article h2,
article h3,
article h4,
article h5,
article h6,
/* COMMENTED OUT - Was overriding TinyMCE heading sizes
 * This forced all headings to 16px, breaking user formatting
 * Use custom classes for specific styling needs instead
 */
/*
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-size: 16px !important;
    line-height: 1.4 !important;
}
*/

/* TinyMCE Columns - Frontend Styles */
.scdev-columns {
    display: flex;
    gap: 0; /* No gaps between columns */
    margin: 0; /* No top/bottom margin - use single column for spacing */
}

/* Single column - centered with resizable width */
.scdev-cols-1 {
    justify-content: center;
    gap: 0;
}

.scdev-cols-1 .scdev-col {
    width: 100%; /* Full width */
    resize: both;
    overflow: auto;
    min-width: 200px;
    min-height: 10px; /* Minimum 10px height */
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-2 .scdev-col {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-3 .scdev-col {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-25-75 .scdev-col:first-child {
    flex: 0 0 25%;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-25-75 .scdev-col:last-child {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-75-25 .scdev-col:first-child {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-75-25 .scdev-col:last-child {
    flex: 0 0 25%;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-col {
    padding: 10px;
}

/* Responsive columns - stack on mobile */
@media (max-width: 768px) {
    .scdev-columns {
        flex-direction: column;
    }
    
    .scdev-cols-25-75 .scdev-col:first-child,
    .scdev-cols-75-25 .scdev-col:last-child {
        flex: 1;
    }
}

/* TinyMCE Buttons - Frontend Styles */
.scdev-button {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
}

.scdev-btn-primary {
    background: #0073aa;
    color: white;
}

.scdev-btn-primary:hover {
    background: #005a87;
    color: white;
}

.scdev-btn-secondary {
    background: #6c757d;
    color: white;
}

.scdev-btn-secondary:hover {
    background: #545b62;
    color: white;
}

.scdev-btn-success {
    background: #28a745;
    color: white;
}

.scdev-btn-success:hover {
    background: #218838;
    color: white;
}

.scdev-btn-danger {
    background: #dc3545;
    color: white;
}

.scdev-btn-danger:hover {
    background: #c82333;
    color: white;
}

.scdev-btn-warning {
    background: #ffc107;
    color: #333;
}

.scdev-btn-warning:hover {
    background: #e0a800;
    color: #333;
}

.scdev-btn-info {
    background: #17a2b8;
    color: white;
}

.scdev-btn-info:hover {
    background: #138496;
    color: white;
}

.scdev-btn-small {
    padding: 5px 15px;
    font-size: 14px;
}

.scdev-btn-medium {
    padding: 10px 20px;
    font-size: 16px;
}

.scdev-btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* New Column Layouts - Tall + Short combinations */
.scdev-cols-tall-left,
.scdev-cols-tall-right {
    gap: 0;
}

.scdev-col-tall {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd;
}

.scdev-col-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.scdev-col-short {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd;
}

/* Column Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.scdev-animate-fadeIn { animation: fadeIn 0.8s ease-in-out; }
.scdev-animate-slideUp { animation: slideUp 0.8s ease-out; }
.scdev-animate-slideDown { animation: slideDown 0.8s ease-out; }
.scdev-animate-slideLeft { animation: slideLeft 0.8s ease-out; }
.scdev-animate-slideRight { animation: slideRight 0.8s ease-out; }
.scdev-animate-zoomIn { animation: zoomIn 0.8s ease-out; }
.scdev-animate-bounce { animation: bounce 1s ease-in-out; }
.scdev-animate-pulse { animation: pulse 1.5s ease-in-out infinite; }

/* Text FX Animations */
.scdev-textfx {
    display: inline-block;
}

.scdev-textfx .scdev-letter {
    display: inline-block;
    opacity: 0;
}

/* Speed variations */
.scdev-textfx-slow .scdev-letter { animation-duration: 1.5s !important; }
.scdev-textfx-normal .scdev-letter { animation-duration: 0.8s !important; }
.scdev-textfx-fast .scdev-letter { animation-duration: 0.4s !important; }

/* Split from Sides */
@keyframes splitLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes splitRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.scdev-textfx-split .scdev-split-left {
    animation: splitLeft forwards;
}

.scdev-textfx-split .scdev-split-right {
    animation: splitRight forwards;
}

/* Typewriter */
@keyframes typewriter {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scdev-textfx-typewriter .scdev-letter {
    animation: typewriter forwards;
}

/* Wave Bounce */
@keyframes waveBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-20px); }
}

.scdev-textfx-wave .scdev-letter {
    animation: waveBounce forwards;
    opacity: 1;
}

/* Glitch */
@keyframes glitch {
    0% { transform: translate(0); opacity: 0; }
    20% { transform: translate(-2px, 2px); opacity: 0.5; }
    40% { transform: translate(2px, -2px); opacity: 0.7; }
    60% { transform: translate(-1px, 1px); opacity: 0.9; }
    80% { transform: translate(1px, -1px); opacity: 1; }
    100% { transform: translate(0); opacity: 1; }
}

.scdev-textfx-glitch .scdev-letter {
    animation: glitch forwards;
}

/* Fade In Letters */
@keyframes fadeInLetter {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scdev-textfx-fadeletters .scdev-letter {
    animation: fadeInLetter forwards;
}

/* Rotate In */
@keyframes rotateIn {
    from { transform: rotate(-180deg) scale(0); opacity: 0; }
    to { transform: rotate(0) scale(1); opacity: 1; }
}

.scdev-textfx-rotate .scdev-letter {
    animation: rotateIn forwards;
}

/* Scale Up */
@keyframes scaleUp {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.scdev-textfx-scale .scdev-letter {
    animation: scaleUp forwards;
}

/* Color Shift */
@keyframes colorShift {
    0% { color: #ff0000; opacity: 0; }
    25% { color: #00ff00; opacity: 0.5; }
    50% { color: #0000ff; opacity: 0.75; }
    75% { color: #ff00ff; opacity: 0.9; }
    100% { color: inherit; opacity: 1; }
}

.scdev-textfx-colorshift .scdev-letter {
    animation: colorShift forwards;
}

/* Blur In */
@keyframes blurIn {
    from { filter: blur(10px); opacity: 0; }
    to { filter: blur(0); opacity: 1; }
}

.scdev-textfx-blur .scdev-letter {
    animation: blurIn forwards;
}

/* Flip In */
@keyframes flipIn {
    from { transform: rotateY(90deg); opacity: 0; }
    to { transform: rotateY(0); opacity: 1; }
}

.scdev-textfx-flip .scdev-letter {
    animation: flipIn forwards;
    transform-style: preserve-3d;
}

/* Responsive Embed Styles */
.scdev-embed {
    margin: 20px auto;
}

.scdev-embed-center {
    margin-left: auto;
    margin-right: auto;
}

.scdev-embed-left {
    margin-right: auto;
}

.scdev-embed-right {
    margin-left: auto;
}

.scdev-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.scdev-embed-container iframe,
.scdev-embed-container object,
.scdev-embed-container embed,
.scdev-embed-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive - stack on mobile */
@media (max-width: 768px) {
    .scdev-embed {
        width: 100% !important;
    }
}
