/* AR Filters & Content Creation System Styles */

.ar-editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ar-editor-modal.active {
    opacity: 1;
}

.ar-editor-container {
    width: 95vw;
    max-width: 1400px;
    height: 90vh;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0FFF0 50%, #FFFFFF 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 255, 0, 0.3);
    animation: slideUpScale 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUpScale {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Header */
.ar-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 255, 0, 0.05));
    border-bottom: 2px solid rgba(0, 255, 0, 0.3);
}

.ar-editor-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #00FF00, #00CC00);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ar-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF0000;
}

.ar-close-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: rotate(90deg) scale(1.1);
}

/* Body */
.ar-editor-body {
    flex: 1;
    display: flex;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
}

/* Preview Area */
.ar-preview-area {
    flex: 1;
    background: #000;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.ar-canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
}

.ar-video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
}

/* Controls Sidebar */
.ar-controls-sidebar {
    width: 350px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ar-controls-sidebar::-webkit-scrollbar {
    width: 8px;
}

.ar-controls-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00FF00, #00CC00);
    border-radius: 10px;
}

/* Mode Selector */
.ar-mode-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.ar-mode-btn {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ar-mode-btn:hover {
    background: rgba(0, 255, 0, 0.1);
}

.ar-mode-btn.active {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 255, 0, 0.1));
    border-color: #00FF00;
    color: #00AA00;
}

/* Tab Section */
.ar-tab-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.ar-tab-btn {
    padding: 10px 8px;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.ar-tab-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateY(-2px);
}

.ar-tab-btn.active {
    background: linear-gradient(135deg, #00FF00, #00CC00);
    color: white;
    border-color: #00FF00;
}

/* Tab Content */
.ar-tab-content {
    min-height: 300px;
}

.ar-tab-panel {
    display: none;
}

.ar-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ar-tab-panel h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: bold;
    color: #00AA00;
}

/* Filters Grid */
.ar-filters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ar-filter-btn {
    padding: 12px;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.ar-filter-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: scale(1.05);
}

.ar-filter-btn.active {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 255, 0, 0.1));
    border-color: #00FF00;
    color: #00AA00;
}

.filter-preview {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ddd, #fff);
    border-radius: 8px;
    margin: 0 auto 8px;
}

/* Effects Grid */
.ar-effects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ar-effect-btn {
    padding: 15px 10px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 255, 0, 0.05));
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.ar-effect-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 255, 0, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}

.ar-effect-btn.active {
    background: linear-gradient(135deg, #00FF00, #00CC00);
    color: white;
}

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

.ar-sticker-btn {
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 32px;
    text-align: center;
}

.ar-sticker-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: scale(1.2);
    border-color: #00FF00;
}

/* Frames Grid */
.ar-frames-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ar-frame-btn {
    padding: 15px 10px;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.ar-frame-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: scale(1.05);
}

.ar-frame-btn.active {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 255, 0, 0.1));
    border-color: #00FF00;
    color: #00AA00;
}

/* Text Options */
.ar-text-input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.9);
}

.ar-text-options {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ar-text-options input[type="color"] {
    width: 50px;
    height: 40px;
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    cursor: pointer;
}

.ar-text-options input[type="range"] {
    flex: 1;
}

.ar-text-options button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #00FF00, #00CC00);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ar-text-options button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.4);
}

/* Draw Options */
.ar-draw-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ar-draw-options input[type="color"] {
    width: 100%;
    height: 50px;
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 10px;
    cursor: pointer;
}

.ar-draw-options input[type="range"] {
    width: 100%;
}

.ar-draw-options button {
    padding: 12px;
    background: linear-gradient(135deg, #00FF00, #00CC00);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.ar-draw-options button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.4);
}

/* Footer */
.ar-editor-footer {
    display: flex;
    gap: 15px;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 255, 0, 0.05));
    border-top: 2px solid rgba(0, 255, 0, 0.3);
}

.ar-action-btn {
    flex: 1;
    padding: 15px 30px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 255, 0, 0.1));
    border: 2px solid rgba(0, 255, 0, 0.5);
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #00AA00;
}

.ar-action-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.3), rgba(0, 255, 0, 0.15));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.4);
}

.ar-action-btn.primary {
    background: linear-gradient(135deg, #00FF00, #00CC00);
    color: white;
    border-color: #00FF00;
}

.ar-action-btn.primary:hover {
    background: linear-gradient(135deg, #00CC00, #00AA00);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.5);
}

/* Notification */
.ar-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    animation: slideInRight 0.4s ease-out;
    font-weight: 600;
    font-size: 16px;
}

.ar-notification.success {
    background: linear-gradient(135deg, #E6FFE6, #CCFFCC);
    border-left: 5px solid #00FF00;
}

.ar-notification.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .ar-controls-sidebar {
        width: 300px;
    }
    
    .ar-tab-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ar-editor-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    .ar-editor-body {
        flex-direction: column;
    }
    
    .ar-controls-sidebar {
        width: 100%;
        max-height: 300px;
    }
    
    .ar-filters-grid,
    .ar-effects-grid,
    .ar-frames-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ar-stickers-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
