/* Hope Expanders CMS - Admin Styles */

/* Admin Bar */
.admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #fff;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #FFD700;
}

.admin-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.admin-bar-left,
.admin-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-welcome {
    color: #FFD700;
    font-weight: 600;
    font-size: 14px;
}

.admin-btn {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #FFD700;
    color: #FFD700;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.admin-btn:hover {
    background: #FFD700;
    color: #000;
    transform: translateY(-1px);
}

.admin-btn i {
    font-size: 12px;
}

/* Edit Mode Styles */
.edit-mode .editable {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px dashed transparent;
    padding: 5px;
    border-radius: 5px;
}

.edit-mode .editable:hover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.edit-mode .editable::after {
    content: '✏️';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #FFD700;
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.edit-mode .editable:hover::after {
    opacity: 1;
}

.edit-mode .editable-image {
    position: relative;
    cursor: pointer;
    border: 2px dashed transparent;
    transition: all 0.3s ease;
}

.edit-mode .editable-image:hover {
    border-color: #FFD700;
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close {
    color: #000;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.close:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Media Manager */
.media-upload {
    background: #f8f9fa;
    border: 2px dashed #FFD700;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.media-upload:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: #FFA500;
}

.upload-area {
    margin-bottom: 15px;
}

.upload-area h3 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.upload-area p {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 1rem;
}

.upload-area .btn {
    margin: 0 5px;
}

.upload-info {
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.upload-info small {
    color: #666;
    font-size: 0.85rem;
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    position: relative;
}

.media-gallery.drag-over {
    border-color: var(--primary-color, #FFD700);
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.02);
}

.media-gallery.drag-over::before {
    content: "Drop images here to upload";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color, #FFD700);
    color: #000;
    padding: 20px 40px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 10;
    pointer-events: none;
}

.no-media-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-media-message i {
    display: block;
    margin-bottom: 16px;
}

.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.media-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.media-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.media-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-item:hover .media-item-overlay {
    opacity: 1;
}

.media-item-actions {
    display: flex;
    gap: 10px;
}

.media-action-btn {
    background: #FFD700;
    color: #000;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-action-btn:hover {
    background: #FFA500;
    transform: scale(1.1);
}

/* Menu Builder */
.menu-builder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.menu-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.menu-form h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.menu-list {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
}

.menu-list h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.menu-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.menu-item:hover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.05);
}

.menu-item-info {
    flex: 1;
}

.menu-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.menu-item-url {
    font-size: 12px;
    color: #666;
}

.menu-item-actions {
    display: flex;
    gap: 5px;
}

.menu-action-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-action-btn:hover {
    background: #FFD700;
    color: #000;
}

/* Page Manager */
.page-manager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.page-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.page-form h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.page-list {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    max-height: 500px;
    overflow-y: auto;
}

.page-list h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.page-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.page-item:hover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.05);
}

.page-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.page-item-slug {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.page-item-actions {
    display: flex;
    gap: 10px;
}

.page-action-btn {
    background: #FFD700;
    color: #000;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-action-btn:hover {
    background: #FFA500;
    transform: translateY(-1px);
}

.page-action-btn.delete {
    background: #dc3545;
    color: #fff;
}

.page-action-btn.delete:hover {
    background: #c82333;
}

/* Notifications */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #fff;
    border-left: 4px solid #FFD700;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    z-index: 15000;
    animation: slideInRight 0.3s ease;
    max-width: 350px;
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
}

.notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.notification-message {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.notification-close:hover {
    color: #333;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top: 4px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Admin Styles */
@media (max-width: 768px) {
    .admin-bar-content {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }

    .admin-bar-left,
    .admin-bar-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .menu-builder,
    .page-manager {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .media-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .form-actions {
        flex-direction: column;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .admin-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .admin-welcome {
        font-size: 12px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 15px;
    }

    .media-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .media-item img {
        height: 80px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background: #2d2d2d;
        color: #fff;
    }

    .form-group label {
        color: #fff;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        background: #3d3d3d;
        border-color: #555;
        color: #fff;
    }

    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        border-color: #FFD700;
        background: #4d4d4d;
    }

    .menu-form,
    .page-form {
        background: #3d3d3d;
    }

    .menu-list,
    .page-list {
        background: #2d2d2d;
        border-color: #555;
    }

    .menu-item,
    .page-item {
        background: #3d3d3d;
        border-color: #555;
    }

    .menu-item-title,
    .page-item-title {
        color: #fff;
    }

    .notification {
        background: #2d2d2d;
        color: #fff;
    }

    .notification-title {
        color: #fff;
    }

    .notification-message {
        color: #ccc;
    }
}

/* Enhanced CMS Features */

/* Drag and Drop Styles */
.drag-handle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: move;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.edit-mode section:hover .drag-handle {
    opacity: 1;
}

.drag-placeholder {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
    border: 2px dashed #FFD700;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    color: #FFD700;
    font-weight: 600;
    margin: 20px 0;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Advanced Image Editor */
.image-options {
    padding: 20px 0;
}

.media-item-mini {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.media-item-mini:hover {
    transform: scale(1.05);
    border-color: #FFD700;
}

.media-item-mini.selected {
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.media-item-mini img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.image-container {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.image-container.position-left {
    justify-content: flex-start;
}

.image-container.position-right {
    justify-content: flex-end;
}

.image-container.position-center {
    justify-content: center;
}

.image-left {
    float: left;
    margin: 0 20px 20px 0;
}

.image-right {
    float: right;
    margin: 0 0 20px 20px;
}

.image-center {
    display: block;
    margin: 20px auto;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    width: 100%;
    position: relative;
    z-index: 2;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slider-navigation {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-btn {
    background: rgba(255, 215, 0, 0.8);
    color: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #FFD700;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: #FFD700;
    transform: scale(1.2);
}

/* Slide Manager */
.slide-manager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.slide-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.slide-form h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.slides-list {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    max-height: 600px;
    overflow-y: auto;
}

.slides-list h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.slide-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.slide-item:hover {
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slide-preview {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: end;
}

.slide-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.slide-info {
    position: relative;
    z-index: 2;
    color: white;
    padding: 15px;
    width: 100%;
}

.slide-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000 !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.slide-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333 !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.slide-actions {
    padding: 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
}

/* Page Duplication */
.page-form .form-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.duplicate-btn {
    background: #17a2b8;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.duplicate-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

/* Enhanced Edit Mode Indicators */
.edit-mode section {
    position: relative;
    border: 2px dashed transparent;
    transition: all 0.3s ease;
}

.edit-mode section:hover {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.02);
}

.edit-mode .editable:hover::after {
    content: 'Click to edit';
    position: absolute;
    top: -25px;
    left: 0;
    background: #FFD700;
    color: #000;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1000;
}

.edit-mode img:hover::after {
    content: 'Right-click for options';
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1000;
}

/* Context Menu Styles */
.context-menu {
    position: fixed;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    min-width: 150px;
}

.context-menu-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.context-menu-item:hover {
    background: #f8f9fa;
}

.context-menu-item:last-child {
    border-bottom: none;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .slide-manager,
    .menu-builder,
    .page-manager {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .slider-navigation {
        bottom: 20px;
        gap: 15px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .drag-handle {
        position: static;
        display: block;
        margin: 10px 0;
        opacity: 1;
        text-align: center;
    }
    
    .slide-preview {
        height: 100px;
    }
    
    .slide-info h4 {
        font-size: 1rem;
    }
    
    .slide-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .slider-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .slider-dots {
        order: -1;
    }
    
    .slide-actions {
        flex-direction: column;
    }
    
    .slide-actions button {
        width: 100%;
    }
}

/* Column Layout System */
.layout-columns {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.layout-columns.cols-1 {
    grid-template-columns: 1fr;
}

.layout-columns.cols-2 {
    grid-template-columns: 1fr 1fr;
}

.layout-columns.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.layout-columns.cols-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.column-item {
    padding: 15px;
    border: 2px dashed transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.edit-mode .column-item {
    border-color: rgba(255, 215, 0, 0.3);
}

.edit-mode .column-item:hover {
    border-color: rgba(255, 215, 0, 0.6);
    background: rgba(255, 215, 0, 0.05);
}

/* Text Alignment Classes */
.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

/* Image Alignment Classes */
.img-left {
    float: left;
    margin: 0 20px 20px 0;
}

.img-center {
    display: block;
    margin: 20px auto;
}

.img-right {
    float: right;
    margin: 0 0 20px 20px;
}

/* Layout Builder Styles */
.layout-builder {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.layout-builder h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.layout-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.layout-btn {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.layout-btn:hover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.layout-btn.active {
    border-color: #FFD700;
    background: #FFD700;
    color: #000;
}

.alignment-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.alignment-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.alignment-btn:hover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.alignment-btn.active {
    border-color: #FFD700;
    background: #FFD700;
    color: #000;
}

/* Layout Controls in Edit Mode */
.edit-mode .layout-controls {
    position: absolute;
    top: -40px;
    right: 10px;
    background: rgba(255, 215, 0, 0.9);
    border-radius: 20px;
    padding: 5px 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.edit-mode .layout-columns:hover .layout-controls {
    opacity: 1;
}

.layout-control-btn {
    background: transparent;
    border: none;
    color: #000;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.layout-control-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Responsive Column Layouts */
@media (max-width: 768px) {
    .layout-columns.cols-3,
    .layout-columns.cols-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .layout-columns.cols-2,
    .layout-columns.cols-3,
    .layout-columns.cols-4 {
        grid-template-columns: 1fr;
    }
    
    .layout-options {
        justify-content: center;
    }
    
    .layout-btn {
        flex: 1;
        justify-content: center;
        min-width: 80px;
    }
}

/* Animation Enhancements */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-enter {
    animation: slideInFromRight 0.5s ease-out;
}

.slide-exit {
    animation: slideInFromLeft 0.5s ease-out;
}

/* Content Add Zones */
.content-add-zone {
    display: none;
    padding: 20px;
    margin: 20px 0;
    border: 2px dashed #FFD700;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.1);
    text-align: center;
}

.edit-mode .content-add-zone {
    display: block;
}

.add-content-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.add-content-btn {
    background: #FFD700;
    color: #1a1a1a;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-content-btn:hover {
    background: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Image Placeholders */
.image-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.05);
}

.placeholder-content i {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 15px;
    display: block;
}

.placeholder-content p {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 16px;
}

/* Text Placeholders */
.text-placeholder {
    background: rgba(255, 215, 0, 0.1);
    border: 1px dashed #FFD700;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    min-height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.text-placeholder:hover {
    background: rgba(255, 215, 0, 0.2);
}

/* Editable Image Highlights */
.edit-mode .editable-image-highlight {
    border: 2px solid #FFD700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
    position: relative;
}

.edit-mode .editable-image-highlight:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.edit-mode .editable-image-highlight::after {
    content: "Click to replace";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.edit-mode .editable-image-highlight:hover::after {
    opacity: 1;
}

/* Media Gallery Improvements */
.media-gallery .no-media {
    grid-column: 1 / -1;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
}

.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.media-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.media-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.media-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.media-name {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.delete-media {
    background: #dc3545;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    transition: all 0.3s ease;
}

.delete-media:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Print Styles */
@media print {
    .admin-bar,
    .admin-access,
    .modal,
    .drag-handle,
    .slider-navigation,
    .content-add-zone,
    .image-placeholder {
        display: none !important;
    }
}
