/* Social Integration & Editor Styling */

/* Social Integration Modal */
.social-modal {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.social-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Share Preview */
.share-preview {
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
}

#share-preview-video {
    width: 200px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
}

.preview-info h3 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 20px;
}

.preview-info p {
    color: #bbb;
    margin: 0;
    font-size: 14px;
}

/* Connected Accounts */
.connected-accounts {
    padding: 0 30px 30px;
}

.connected-accounts h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 18px;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.account-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.account-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.account-card.connected {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.account-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.account-info {
    flex: 1;
}

.platform-name {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 5px;
}

.connection-status {
    display: block;
    color: #bbb;
    font-size: 12px;
}

.connect-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.connect-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.connect-btn.connected {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

/* Share Options */
.share-options {
    padding: 0 30px 30px;
}

.share-options h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 18px;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.share-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.share-btn.instagram-story { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.share-btn.instagram-post { background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%); }
.share-btn.facebook-post { background: linear-gradient(135deg, #3b5998 0%, #8b9dc3 100%); }
.share-btn.whatsapp-status { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }
.share-btn.youtube-short { background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%); }

/* Quick Share Panel */
.quick-share-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.quick-share-panel.slide-up {
    transform: translateY(0);
}

.quick-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quick-share-header h4 {
    color: #fff;
    margin: 0;
    font-size: 18px;
}

#close-quick-share {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.quick-share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.quick-share-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    color: #fff;
}

.quick-share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.platform-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.quick-share-btn span {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

#more-share-options {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Editor Modal */
.editor-modal {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
}

.editor-content {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    border-radius: 20px;
    max-width: 1200px;
    width: 95%;
    max-height: 95vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.editor-controls {
    display: flex;
    gap: 10px;
}

.editor-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.editor-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.editor-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Editor Workspace */
.editor-workspace {
    display: flex;
    height: calc(95vh - 140px);
}

.video-preview-section {
    flex: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.video-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#editor-canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
}

.playback-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.video-container:hover .playback-overlay {
    opacity: 1;
}

.play-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.play-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Timeline */
.timeline-section {
    margin-top: 20px;
}

.timeline-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.timeline-controls span {
    color: #fff;
    font-size: 14px;
    min-width: 40px;
}

#timeline-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
}

#timeline-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.trim-controls {
    display: flex;
    gap: 10px;
}

.trim-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.trim-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Editing Panels */
.editing-panels {
    flex: 1;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.panel-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #bbb;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.editing-panel {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: none;
}

.editing-panel.active {
    display: block;
}

.editing-panel h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
}

/* Control Groups */
.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.control-group input[type="range"] {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.value-display {
    color: #667eea;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

/* Presets and Effects */
.filter-presets, .audio-presets, .effect-buttons {
    margin-top: 20px;
}

.filter-presets h4, .audio-presets h4 {
    color: #fff;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.preset-buttons, .effect-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.preset-btn, .effect-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.preset-btn:hover, .effect-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Text Panel */
#text-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
}

#text-input::placeholder {
    color: #bbb;
}

#add-text-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 20px;
}

.text-styling {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.text-styling input, .text-styling select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px;
    color: #fff;
    font-size: 12px;
}

/* Stickers */
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.sticker-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.sticker-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Editor Footer */
.editor-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.export-options {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.preview-btn, .save-btn, .export-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.preview-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.save-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.export-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.preview-btn:hover, .save-btn:hover, .export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 300px;
    font-size: 14px;
}

.toast.show {
    transform: translateX(0);
}

.toast.toast-success {
    border-left-color: #4CAF50;
}

.toast.toast-error {
    border-left-color: #f44336;
}

.toast.toast-info {
    border-left-color: #2196F3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .editor-workspace {
        flex-direction: column;
    }
    
    .video-preview-section {
        flex: none;
        height: 300px;
    }
    
    .editing-panels {
        flex: 1;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-share-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hidden utility */
.hidden {
    display: none !important;
}
