/* Screenwriting Dropdown Menu Styles */

.screenwriting-dropdown-container {
    position: relative;
    display: inline-block;
}

/* Toggle button styling to match existing buttons */
.screenwriting-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.screenwriting-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.screenwriting-toggle svg {
    width: 16px;
    height: 16px;
}

/* Dropdown menu */
.screenwriting-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    min-width: 320px;
    background: linear-gradient(135deg, #2a1a3e 0%, #1a0f2e 100%);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(147, 51, 234, 0.2);
    z-index: 1000;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.screenwriting-dropdown.hidden {
    display: none;
}

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

/* Dropdown items */
.screenwriting-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.screenwriting-item:hover {
    background: rgba(147, 51, 234, 0.1);
}

.screenwriting-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #9333ea, transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.screenwriting-item:hover::before {
    opacity: 1;
}

/* Icon styling */
.screenwriting-icon {
    font-size: 24px;
    width: 32px;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Content area */
.screenwriting-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.screenwriting-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.screenwriting-description {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

/* Divider */
.screenwriting-divider {
    height: 1px;
    background: linear-gradient(90deg, 
                                transparent, 
                                rgba(147, 51, 234, 0.3), 
                                transparent);
    margin: 8px 0;
}

/* Special styling for new project */
.screenwriting-item:last-child {
    background: rgba(147, 51, 234, 0.05);
    border-top: 1px solid rgba(147, 51, 234, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .screenwriting-dropdown {
        min-width: 280px;
        left: auto;
        right: 0;
    }
    
    .screenwriting-item {
        padding: 10px 12px;
    }
    
    .screenwriting-icon {
        font-size: 20px;
        width: 28px;
    }
    
    .screenwriting-label {
        font-size: 13px;
    }
    
    .screenwriting-description {
        font-size: 10px;
    }
}

/* Animation for tool selection */
@keyframes toolPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.screenwriting-item:active {
    animation: toolPulse 0.3s ease;
}

/* Glow effect on hover */
.screenwriting-dropdown {
    position: relative;
}

.screenwriting-dropdown::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #9333ea, #c084fc, #9333ea);
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.screenwriting-dropdown:hover::before {
    opacity: 0.5;
    animation: glowRotate 3s linear infinite;
}

@keyframes glowRotate {
    0% {
        background: linear-gradient(45deg, #9333ea, #c084fc, #9333ea);
    }
    50% {
        background: linear-gradient(225deg, #9333ea, #c084fc, #9333ea);
    }
    100% {
        background: linear-gradient(45deg, #9333ea, #c084fc, #9333ea);
    }
}